NIHVIVO-2186 Modify custom list view queries to filter out statements with no linked individual when user is not editing the page. Involves pruning the grouped property list of properties and groups which are thereby empty.
This commit is contained in:
parent
6ea23218c9
commit
f398183c94
6 changed files with 73 additions and 21 deletions
|
@ -11,15 +11,15 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT <collation-fragment> ?subclass </collation-fragment>
|
||||
SELECT <collated> ?subclass </collated>
|
||||
?object ?name ?moniker WHERE {
|
||||
?subject ?property ?object
|
||||
<collation-fragment> OPTIONAL { ?object a ?subclass }
|
||||
<collated> OPTIONAL { ?object a ?subclass }
|
||||
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||
</collation-fragment>
|
||||
</collated>
|
||||
OPTIONAL { ?object rdfs:label ?name }
|
||||
OPTIONAL { ?object vitro:moniker ?moniker }
|
||||
} ORDER BY <collation-fragment> ?subclass </collation-fragment> ?name ?object
|
||||
} ORDER BY <collated> ?subclass </collated> ?name ?object
|
||||
</query-select>
|
||||
|
||||
<query-construct>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue