diff --git a/doc/list_view_configuration_guidelines.txt b/doc/list_view_configuration_guidelines.txt index 53e41002c..20ac1ce99 100644 --- a/doc/list_view_configuration_guidelines.txt +++ b/doc/list_view_configuration_guidelines.txt @@ -140,13 +140,25 @@ following elements: ?infoResource and core:InformationResource: - OPTIONAL { ?subclass rdfs:subClassOf core:InformationResource . - ?infoResource a ?subclass + OPTIONAL { ?infoResource a ?subclass + ?subclass rdfs:subClassOf core:InformationResource . } - Postprocessing removes all but the most specific subclass value from the query result set. +- Alternatively (and preferably): + + OPTIONAL { ?infoResource vitro:mostSpecificType ?subclass + ?subclass rdfs:subClassOf core:InformationResource . + } + + + Automatic postprocessing to filter out all but the most specific subclass will be removed + in favor of this implementation in the future. + +- Both collated and uncollated versions of the query should be tested, since the collation value + is user-configurable via the ontology editor. ---------------------- Datetimes in the query diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/ObjectPropertyStatementDaoJena.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/ObjectPropertyStatementDaoJena.java index 00af6c1a2..446f80706 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/ObjectPropertyStatementDaoJena.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/ObjectPropertyStatementDaoJena.java @@ -293,8 +293,6 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec return Collections.emptyList(); } - // RY One oddity here is that SDB adds the bound variables to the query select terms, - // even if they're not included in the query. QuerySolutionMap initialBindings = new QuerySolutionMap(); initialBindings.add("subject", ResourceFactory.createResource(subjectUri)); initialBindings.add("property", ResourceFactory.createResource(propertyUri));