NIHVIVO-1590 dateTimeValue custom list view finished; dateTimeInterval custom list view in progress.
This commit is contained in:
parent
ea78774a2d
commit
11dd397799
3 changed files with 74 additions and 18 deletions
|
@ -114,7 +114,7 @@ public class FreemarkerConfigurationLoader {
|
|||
|
||||
String dateFormat = "M/d/yyyy";
|
||||
config.setDateFormat(dateFormat);
|
||||
String timeFormat = "hh:mm a";
|
||||
String timeFormat = "h:mm a";
|
||||
config.setTimeFormat(timeFormat);
|
||||
config.setDateTimeFormat(dateFormat + " " + timeFormat);
|
||||
|
||||
|
|
|
@ -256,13 +256,13 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
|||
*/
|
||||
public List<Map<String, String>> getObjectPropertyStatementsForIndividualByProperty(String subjectUri, String propertyUri, String queryString) {
|
||||
|
||||
log.debug("Object property query string: " + queryString);
|
||||
log.debug("Query string for object property " + propertyUri + ": " + queryString);
|
||||
|
||||
Query query = null;
|
||||
try {
|
||||
query = QueryFactory.create(queryString, Syntax.syntaxARQ);
|
||||
} catch(Throwable th){
|
||||
log.error("could not create SPARQL query for query string " + th.getMessage());
|
||||
log.error("Could not create SPARQL query for query string. " + th.getMessage());
|
||||
log.error(queryString);
|
||||
}
|
||||
|
||||
|
@ -280,7 +280,7 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
|||
QueryExecution qexec = QueryExecutionFactory.create(
|
||||
query, dataset, bindings);
|
||||
ResultSet results = qexec.execSelect();
|
||||
|
||||
|
||||
while (results.hasNext()) {
|
||||
QuerySolution soln = results.nextSolution();
|
||||
list.add(QueryUtils.querySolutionToStringValueMap(soln));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue