rewritten list view queries with UNIONs plus various and sundry other bugfixes and improvements; also probably new bugs
This commit is contained in:
parent
881c3ca4fa
commit
b5777a60ad
14 changed files with 238 additions and 61 deletions
|
@ -11,9 +11,21 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
||||
SELECT ?object ?name ?moniker {
|
||||
GRAPH ?g1 { ?subject ?property ?object }
|
||||
OPTIONAL { GRAPH ?g2 { ?object rdfs:label ?name } }
|
||||
OPTIONAL { GRAPH ?g3 { ?object vitro:moniker ?moniker } }
|
||||
{
|
||||
?subject ?property ?object .
|
||||
}
|
||||
UNION {
|
||||
?subject ?property ?object .
|
||||
?object rdfs:label ?name
|
||||
}
|
||||
UNION {
|
||||
?subject ?property ?object .
|
||||
?object vitro:moniker ?moniker
|
||||
} UNION {
|
||||
?subject ?property ?object .
|
||||
?object rdfs:label ?name .
|
||||
?object vitro:moniker ?moniker .
|
||||
}
|
||||
}
|
||||
</query-base>
|
||||
|
||||
|
@ -22,11 +34,28 @@
|
|||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
||||
SELECT ?subclass ?object ?name ?moniker {
|
||||
GRAPH ?g1 { ?subject ?property ?object
|
||||
OPTIONAL { ?object a ?subclass }
|
||||
|
||||
{
|
||||
?subject ?property ?object .
|
||||
?object a ?subclass .
|
||||
}
|
||||
OPTIONAL { GRAPH ?g2 { ?object rdfs:label ?name } }
|
||||
OPTIONAL { GRAPH ?g3 { ?object vitro:moniker ?moniker } }
|
||||
UNION {
|
||||
?subject ?property ?object .
|
||||
?object a ?subclass .
|
||||
?object rdfs:label ?name
|
||||
}
|
||||
UNION {
|
||||
?subject ?property ?object .
|
||||
?object a ?subclass .
|
||||
?object vitro:moniker ?moniker
|
||||
} UNION {
|
||||
?subject ?property ?object .
|
||||
?object a ?subclass .
|
||||
?object rdfs:label ?name .
|
||||
?object vitro:moniker ?moniker .
|
||||
}
|
||||
|
||||
|
||||
} ORDER BY ?subclass
|
||||
</query-collated>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue