2011-01-04 14:04:55 +00: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>
|
|
|
|
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#>
|
|
|
|
|
2011-01-05 22:15:59 +00:00
|
|
|
SELECT DISTINCT ?subclass ?position (afn:localname(?position) AS ?positionName)
|
2011-01-07 20:34:30 +00:00
|
|
|
?positionTitle ?person ?personName ?dateTimeStart ?dateTimeEnd WHERE {
|
2011-01-04 14:04:55 +00:00
|
|
|
GRAPH ?g1 { ?subject ?property ?position }
|
|
|
|
OPTIONAL { GRAPH ?g2 { ?position core:positionForPerson ?person }
|
2011-01-05 22:15:59 +00:00
|
|
|
GRAPH ?g3 { ?person rdfs:label ?personName }
|
|
|
|
}
|
|
|
|
OPTIONAL { GRAPH ?g4 { ?position a ?subclass }
|
|
|
|
GRAPH ?g5 { ?subclass rdfs:subClassOf core:Position }
|
|
|
|
FILTER (?g5 != <http://vitro.mannlib.cornell.edu/default/inferred-tbox> &&
|
|
|
|
?g5 != <http://vitro.mannlib.cornell.edu/default/vitro-kb-inf> )
|
|
|
|
}
|
|
|
|
OPTIONAL { GRAPH ?g6 { ?position rdfs:label ?positionTitle } }
|
|
|
|
OPTIONAL { GRAPH ?g7 { ?position core:dateTimeInterval ?dateTimeInterval }
|
|
|
|
OPTIONAL { GRAPH ?g8 { ?dateTimeInterval core:start ?dateTimeStartValue .
|
2011-01-05 21:45:57 +00:00
|
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart }
|
|
|
|
}
|
2011-01-06 14:04:34 +00:00
|
|
|
OPTIONAL { GRAPH ?g9 { ?dateTimeInterval core:end ?dateTimeEndValue .
|
2011-01-05 21:45:57 +00:00
|
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
|
|
|
}
|
|
|
|
}
|
2011-01-05 22:15:59 +00:00
|
|
|
} ORDER BY ?subclass ?personName
|
2011-01-04 14:04:55 +00:00
|
|
|
</query>
|
|
|
|
|
|
|
|
<template>propStatement-organizationForPosition.ftl</template>
|
|
|
|
</list-view-config>
|