NIHVIVO-1879 Fix default list view query for uncollated property

This commit is contained in:
rjy7 2011-03-03 15:15:47 +00:00
parent 896c6f157c
commit e687c25568
2 changed files with 4 additions and 5 deletions

View file

@ -25,8 +25,6 @@ public abstract class BaseIndividualTemplateModel extends BaseTemplateModel {
private static final Log log = LogFactory.getLog(BaseIndividualTemplateModel.class);
private static final String PATH = Route.INDIVIDUAL.path();
protected Individual individual;
protected VitroRequest vreq;
protected UrlBuilder urlBuilder;

View file

@ -14,10 +14,11 @@
SELECT <collation-fragment> ?subclass </collation-fragment>
?object ?name ?moniker {
?subject ?property ?object
<collation-fragment> OPTIONAL { ?object a ?subclass } </collation-fragment>
<collation-fragment> OPTIONAL { ?object a ?subclass }
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
</collation-fragment>
OPTIONAL { ?object rdfs:label ?name }
OPTIONAL { ?object vitro:moniker ?moniker }
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
} ORDER BY <collation-fragment> ?subclass </collation-fragment> ?name ?object
</query-select>