fixes bug in list view support for domain-side qualification

This commit is contained in:
brianjlowe 2013-08-27 15:46:15 -04:00
parent 6869cda316
commit 43c47d0a55
3 changed files with 6 additions and 2 deletions

View file

@ -902,7 +902,7 @@ public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectProp
protected static final String LIST_VIEW_CONFIG_FILE_QUERY_STRING =
"PREFIX display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> \n" +
"PREFIX config: <http://vitro.mannlib.cornell.edu/ns/vitro/ApplicationConfiguration#> \n" +
"SELECT ?property ?range ?filename WHERE { \n" +
"SELECT ?property ?range ?domain ?filename WHERE { \n" +
" { ?property display:listViewConfigFile ?filename \n" +
" } UNION { \n" +
" ?configuration config:listViewConfigFile ?filename . \n " +

View file

@ -279,6 +279,10 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
Model constructedModel = constructModelForSelectQueries(
subjectUri, propertyUri, constructQueryStrings);
if(log.isDebugEnabled()) {
log.debug("Constructed model has " + constructedModel.size() + " statements.");
}
if("desc".equalsIgnoreCase( sortDirection ) ){
queryString = queryString.replaceAll(" ASC\\(", " DESC(");
}

View file

@ -80,7 +80,7 @@ public class GroupedPropertyList extends BaseTemplateModel {
populatedObjectPropertyList, subject, vreq);
if (log.isDebugEnabled()) {
for (ObjectProperty t : additions) {
log.debug(t.getDomainPublic() + " " + t.getGroupURI());
log.debug(t.getDomainPublic() + " " + t.getGroupURI() + " domain " + t.getDomainVClassURI());
}
log.debug("Added " + additions.size() +
" properties due to application configuration ontology");