NIHVIVO-2883 Add vivo-specific default list view config to generate a preferred title. Display most specific type for people only, if no preferred title.
This commit is contained in:
parent
6c0e438a36
commit
094e6010dd
1 changed files with 18 additions and 15 deletions
|
@ -7,25 +7,31 @@
|
||||||
|
|
||||||
<list-view-config>
|
<list-view-config>
|
||||||
<query-select>
|
<query-select>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
SELECT <collated> ?subclass </collated>
|
SELECT <collated> ?subclass </collated>
|
||||||
?object ?label ?localName WHERE {
|
?object
|
||||||
|
?label
|
||||||
|
?localName WHERE {
|
||||||
|
|
||||||
?subject ?property ?object
|
?subject ?property ?object
|
||||||
LET (?localName := afn:localname(?object))
|
LET (?localName := afn:localname(?object))
|
||||||
<collated> OPTIONAL { ?object a ?subclass }
|
|
||||||
|
OPTIONAL { ?object rdfs:label ?label }
|
||||||
|
|
||||||
|
<collated>
|
||||||
|
OPTIONAL { ?object a ?subclass }
|
||||||
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||||
</collated>
|
</collated>
|
||||||
OPTIONAL { ?object rdfs:label ?label }
|
|
||||||
} ORDER BY <collated> ?subclass </collated> ?label ?label ?localName
|
} ORDER BY <collated> ?subclass </collated> ?label ?label ?localName
|
||||||
</query-select>
|
</query-select>
|
||||||
|
|
||||||
<query-construct>
|
<query-construct>
|
||||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
||||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
CONSTRUCT {
|
CONSTRUCT {
|
||||||
?subject ?property ?object .
|
?subject ?property ?object .
|
||||||
|
@ -34,16 +40,13 @@
|
||||||
} WHERE {
|
} WHERE {
|
||||||
{
|
{
|
||||||
?subject ?property ?object
|
?subject ?property ?object
|
||||||
}
|
} UNION {
|
||||||
UNION {
|
|
||||||
?subject ?property ?object .
|
?subject ?property ?object .
|
||||||
?object a ?subclass .
|
?object a ?subclass .
|
||||||
}
|
} UNION {
|
||||||
UNION {
|
|
||||||
?subject ?property ?object .
|
?subject ?property ?object .
|
||||||
?object rdfs:label ?label .
|
?object rdfs:label ?label .
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</query-construct>
|
</query-construct>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue