More accurate names for files, properties, and variables related to custom views.
This commit is contained in:
parent
b6b3499922
commit
c1ccfdc194
2 changed files with 9 additions and 8 deletions
|
@ -72,18 +72,19 @@ public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectProp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static protected String customListViewConfigFileQueryString =
|
static protected String listViewConfigFileQueryString =
|
||||||
"PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>" +
|
"PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#>" +
|
||||||
"SELECT ?property ?filename WHERE { \n" +
|
"SELECT ?property ?filename WHERE { \n" +
|
||||||
" ?property display:customListViewConfigurationFile ?filename . \n" +
|
" ?property display:listViewConfigurationFile ?filename . \n" +
|
||||||
"} LIMIT 1";
|
"} LIMIT 1";
|
||||||
static protected Query customListViewConfigFileQuery;
|
|
||||||
|
static protected Query listViewConfigFileQuery;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
customListViewConfigFileQuery = QueryFactory.create(customListViewConfigFileQueryString);
|
listViewConfigFileQuery = QueryFactory.create(listViewConfigFileQueryString);
|
||||||
} catch(Throwable th){
|
} catch(Throwable th){
|
||||||
log.error("could not create SPARQL query for customListViewConfigFileQueryString " + th.getMessage());
|
log.error("could not create SPARQL query for listViewConfigFileQueryString " + th.getMessage());
|
||||||
log.error(customListViewConfigFileQueryString);
|
log.error(listViewConfigFileQueryString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -894,7 +895,7 @@ public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectProp
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
QueryExecution qexec = QueryExecutionFactory.create(customListViewConfigFileQuery, displayModel);
|
QueryExecution qexec = QueryExecutionFactory.create(listViewConfigFileQuery, displayModel);
|
||||||
ResultSet results = qexec.execSelect();
|
ResultSet results = qexec.execSelect();
|
||||||
while (results.hasNext()) {
|
while (results.hasNext()) {
|
||||||
QuerySolution soln = results.next();
|
QuerySolution soln = results.next();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||||
|
|
||||||
<#-- Default object property statement template -->
|
<#-- Default object property statement short view template -->
|
||||||
|
|
||||||
<a href="${statement.objectUrl}">${statement.name!"object name here"}</a> ${statement.moniker!"moniker here"}
|
<a href="${statement.objectUrl}">${statement.name!"object name here"}</a> ${statement.moniker!"moniker here"}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue