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>
|
||||
<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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
SELECT <collated> ?subclass </collated>
|
||||
?object ?label ?localName WHERE {
|
||||
?object
|
||||
?label
|
||||
?localName WHERE {
|
||||
|
||||
?subject ?property ?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#" )
|
||||
</collated>
|
||||
OPTIONAL { ?object rdfs:label ?label }
|
||||
|
||||
} ORDER BY <collated> ?subclass </collated> ?label ?label ?localName
|
||||
</query-select>
|
||||
|
||||
<query-construct>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||
|
||||
CONSTRUCT {
|
||||
?subject ?property ?object .
|
||||
|
@ -34,16 +40,13 @@
|
|||
} WHERE {
|
||||
{
|
||||
?subject ?property ?object
|
||||
}
|
||||
UNION {
|
||||
} UNION {
|
||||
?subject ?property ?object .
|
||||
?object a ?subclass .
|
||||
}
|
||||
UNION {
|
||||
} UNION {
|
||||
?subject ?property ?object .
|
||||
?object rdfs:label ?label .
|
||||
}
|
||||
|
||||
}
|
||||
</query-construct>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue