2013-10-01 16:46:13 -04:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<!-- See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
|
|
|
|
|
|
|
|
<list-view-config>
|
|
|
|
<query-select>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
2014-08-27 13:18:53 -04:00
|
|
|
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
|
|
|
|
|
2013-10-01 16:46:13 -04:00
|
|
|
SELECT DISTINCT <collated> ?subclass </collated>
|
|
|
|
?editorship
|
|
|
|
?person ?personName
|
|
|
|
WHERE {
|
|
|
|
?subject ?property ?editorship .
|
|
|
|
OPTIONAL { ?editorship core:rank ?rank }
|
|
|
|
OPTIONAL { ?editorship core:relates ?person .
|
2013-10-29 14:47:41 -04:00
|
|
|
?person a foaf:Person .
|
|
|
|
?person rdfs:label ?personName
|
|
|
|
}
|
|
|
|
<collated>
|
|
|
|
OPTIONAL { ?editorship core:relates ?person .
|
|
|
|
?person a foaf:Person .
|
|
|
|
?person vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf foaf:Person
|
|
|
|
}
|
|
|
|
</collated>
|
2013-10-01 16:46:13 -04:00
|
|
|
<critical-data-required>
|
|
|
|
FILTER ( bound(?person) )
|
|
|
|
</critical-data-required>
|
2014-08-27 13:18:53 -04:00
|
|
|
} ORDER BY <collated> ?subclass </collated> ?rank (fn:lower-case(?personName))
|
2013-10-01 16:46:13 -04:00
|
|
|
</query-select>
|
|
|
|
|
|
|
|
<query-construct>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
|
|
|
CONSTRUCT {
|
|
|
|
?subject ?property ?editorship .
|
|
|
|
?editorship a core:Editorship .
|
|
|
|
?editorship ?editorshipProperty ?editorshipValue .
|
|
|
|
?editorship core:relates ?person .
|
|
|
|
?person a foaf:Person .
|
|
|
|
?person rdfs:label ?personName .
|
2013-10-29 14:47:41 -04:00
|
|
|
?person vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf foaf:Person
|
2013-10-01 16:46:13 -04:00
|
|
|
} WHERE {
|
|
|
|
{
|
|
|
|
?subject ?property ?editorship .
|
|
|
|
?editorship a core:Editorship
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?editorship .
|
|
|
|
?editorship a core:Editorship .
|
|
|
|
?editorship ?editorshipProperty ?editorshipValue
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?editorship .
|
|
|
|
?editorship a core:Editorship .
|
|
|
|
?editorship core:relates ?person .
|
|
|
|
?person a foaf:Person .
|
|
|
|
?person rdfs:label ?personName
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?editorship .
|
|
|
|
?editorship a core:Editorship .
|
|
|
|
?editorship core:relates ?person .
|
|
|
|
?person a foaf:Person .
|
|
|
|
?person rdfs:label ?personName .
|
2013-10-29 14:47:41 -04:00
|
|
|
?person vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:subClassOf foaf:Person
|
2013-10-01 16:46:13 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</query-construct>
|
|
|
|
|
|
|
|
<template>propStatement-informationResourceInEditorship.ftl</template>
|
|
|
|
</list-view-config>
|