153 lines
6.5 KiB
XML
153 lines
6.5 KiB
XML
<?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 vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
|
|
|
SELECT DISTINCT <collated>?subclass</collated>
|
|
?position
|
|
?positionTitle
|
|
?hrJobTitle
|
|
?rank
|
|
?org ?orgName
|
|
?middleOrg ?middleOrgName
|
|
?outerOrg ?outerOrgName
|
|
?dateTimeStart ?dateTimeEnd
|
|
WHERE {
|
|
?subject ?property ?position .
|
|
OPTIONAL { ?position core:relates ?org .
|
|
?org rdfs:label ?orgName
|
|
}
|
|
OPTIONAL { ?position core:relates ?org .
|
|
?org rdfs:label ?orgName .
|
|
?org obo:BFO_0000050 ?middleOrg .
|
|
?middleOrg rdfs:label ?middleOrgName
|
|
}
|
|
OPTIONAL { ?position core:relates ?org .
|
|
?org rdfs:label ?orgName .
|
|
?org obo:BFO_0000050 ?middleOrg .
|
|
?middleOrg obo:BFO_0000050 ?outerOrg .
|
|
?outerOrg rdfs:label ?outerOrgName
|
|
}
|
|
OPTIONAL { ?position rdfs:label ?positionTitle }
|
|
OPTIONAL { ?position core:hrJobTitle ?hrJobTitle }
|
|
OPTIONAL { ?position core:rank ?rank }
|
|
OPTIONAL { ?position core:dateTimeInterval ?dateTimeInterval .
|
|
?dateTimeInterval core:start ?dateTimeStartValue .
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart
|
|
}
|
|
OPTIONAL { ?position core:dateTimeInterval ?dateTimeInterval .
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
}
|
|
<collated>
|
|
OPTIONAL { ?position vitro:mostSpecificType ?subclass .
|
|
?subclass rdfs:subClassOf core:Position
|
|
}
|
|
</collated>
|
|
<critical-data-required>
|
|
FILTER ( bound(?org) )
|
|
</critical-data-required>
|
|
} ORDER BY <collated>?subclass</collated> DESC(?dateTimeEnd) ?rank
|
|
</query-select>
|
|
|
|
<query-construct>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
CONSTRUCT {
|
|
?subject ?property ?position .
|
|
?position vitro:mostSpecificType ?subclass .
|
|
?subclass rdfs:subClassOf core:Position
|
|
} WHERE {
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position vitro:mostSpecificType ?subclass .
|
|
?subclass rdfs:subClassOf core:Position
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
|
PREFIX obo: <http://purl.obolibrary.org/obo/>
|
|
CONSTRUCT {
|
|
?subject ?property ?position .
|
|
?position ?positionProperty ?positionValue .
|
|
?org rdfs:label ?orgName .
|
|
?org obo:BFO_0000050 ?middleOrg .
|
|
?middleOrg rdfs:label ?middleOrgName .
|
|
?middleOrg obo:BFO_0000050 ?outerOrg .
|
|
?outerOrg rdfs:label ?outerOrgName
|
|
} WHERE {
|
|
{
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position ?positionProperty ?positionValue
|
|
} UNION {
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position core:relates ?org .
|
|
?org a foaf:Organization .
|
|
?org rdfs:label ?orgName
|
|
} UNION {
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position core:relates ?org .
|
|
?org a foaf:Organization .
|
|
?org obo:BFO_0000050 ?middleOrg .
|
|
?middleOrg rdfs:label ?middleOrgName
|
|
} UNION {
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position core:relates ?org .
|
|
?org a foaf:Organization .
|
|
?org obo:BFO_0000050 ?middleOrg .
|
|
?middleOrg obo:BFO_0000050 ?outerOrg .
|
|
?outerOrg rdfs:label ?outerOrgName
|
|
}
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
CONSTRUCT {
|
|
?subject ?property ?position .
|
|
?position core:dateTimeInterval ?dateTimeInterval .
|
|
?dateTimeInterval core:start ?dateTimeStartValue .
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart .
|
|
} WHERE {
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position core:dateTimeInterval ?dateTimeInterval .
|
|
?dateTimeInterval core:start ?dateTimeStartValue .
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart .
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
CONSTRUCT {
|
|
?subject ?property ?position .
|
|
?position core:dateTimeInterval ?dateTimeInterval .
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
} WHERE {
|
|
?subject ?property ?position .
|
|
?position a core:Position .
|
|
?position core:dateTimeInterval ?dateTimeInterval .
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
}
|
|
</query-construct>
|
|
|
|
<template>propStatement-personInPosition.ftl</template>
|
|
</list-view-config>
|