NIHVIVO-1879 Fix default list view query for uncollated property
This commit is contained in:
parent
896c6f157c
commit
e687c25568
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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#" )
|
||||
OPTIONAL { ?object vitro:moniker ?moniker }
|
||||
} ORDER BY <collation-fragment> ?subclass </collation-fragment> ?name ?object
|
||||
</query-select>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue