NIHVIVO-2186 Filter out incomplete object property statements for non-editing users.
This commit is contained in:
parent
044964176c
commit
b9b6c50e87
5 changed files with 9 additions and 23 deletions
|
@ -13,12 +13,16 @@
|
|||
|
||||
SELECT <collated> ?subclass </collated>
|
||||
?object ?name ?moniker WHERE {
|
||||
|
||||
?subject ?property ?object
|
||||
<collated> OPTIONAL { ?object a ?subclass }
|
||||
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||
</collated>
|
||||
OPTIONAL { ?object rdfs:label ?name }
|
||||
OPTIONAL { ?object vitro:moniker ?moniker }
|
||||
OPTIONAL { ?object vitro:moniker ?moniker }
|
||||
<linked-individual-required>
|
||||
FILTER ( bound(?name) )
|
||||
</linked-individual-required>
|
||||
} ORDER BY <collated> ?subclass </collated> ?name ?object
|
||||
</query-select>
|
||||
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
OPTIONAL { ?link vitro:linkAnchor ?anchor }
|
||||
OPTIONAL { ?link vitro:linkURL ?url }
|
||||
OPTIONAL { ?link vitro:linkDisplayRank ?rank }
|
||||
<linked-individual-required>
|
||||
FILTER ( bound(?anchor) && bound(?url) )
|
||||
</linked-individual-required>
|
||||
} ORDER BY ?rank
|
||||
</query-select>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue