2011-01-31 22:52:40 +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>
|
2011-03-02 22:33:01 +00:00
|
|
|
<query-select>
|
2011-01-31 22:52:40 +00:00
|
|
|
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-10-25 20:45:13 +00:00
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
2011-01-31 22:52:40 +00:00
|
|
|
|
2011-03-21 22:24:37 +00:00
|
|
|
SELECT DISTINCT <collated> ?subclass </collated>
|
2011-02-08 22:52:53 +00:00
|
|
|
?position
|
2011-01-31 22:52:40 +00:00
|
|
|
?positionTitle
|
|
|
|
?person ?personName
|
2012-08-07 19:37:11 +00:00
|
|
|
?dateTimeStart ?dateTimeEnd
|
|
|
|
?hideThis
|
|
|
|
WHERE {
|
2011-01-31 22:52:40 +00:00
|
|
|
?subject ?property ?position
|
|
|
|
OPTIONAL { ?position core:positionForPerson ?person .
|
|
|
|
?person rdfs:label ?personName
|
2011-03-02 22:33:01 +00:00
|
|
|
}
|
2011-03-21 22:24:37 +00:00
|
|
|
<collated>
|
2011-10-25 20:45:13 +00:00
|
|
|
OPTIONAL { ?position vitro:mostSpecificType ?subclass .
|
2011-01-31 22:52:40 +00:00
|
|
|
?subclass rdfs:subClassOf core:Position
|
2011-03-02 22:33:01 +00:00
|
|
|
}
|
2011-03-21 22:24:37 +00:00
|
|
|
</collated>
|
2011-01-31 22:52:40 +00:00
|
|
|
OPTIONAL { ?position rdfs:label ?positionTitle }
|
2012-08-07 19:37:11 +00:00
|
|
|
OPTIONAL { ?position core:hideFromDisplay ?hideThis }
|
2011-01-31 22:52:40 +00:00
|
|
|
OPTIONAL { ?position core:dateTimeInterval ?dateTimeInterval
|
|
|
|
OPTIONAL { ?dateTimeInterval core:start ?dateTimeStartValue .
|
|
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart
|
|
|
|
}
|
|
|
|
OPTIONAL { ?dateTimeInterval core:end ?dateTimeEndValue .
|
|
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
|
|
}
|
2011-03-21 22:24:37 +00:00
|
|
|
# Get current positions only: end date is either null or not in the past
|
2012-08-01 14:03:11 +00:00
|
|
|
}
|
2012-08-07 19:37:11 +00:00
|
|
|
# NOT EXISTS { ?position core:hideFromDisplay ?hideThis }
|
2012-08-01 14:03:11 +00:00
|
|
|
FILTER ( !bound(?dateTimeEnd) ||
|
2011-01-31 22:52:40 +00:00
|
|
|
afn:substring(str(?dateTimeEnd), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
2011-03-22 20:22:20 +00:00
|
|
|
<critical-data-required>
|
2011-03-21 22:24:37 +00:00
|
|
|
FILTER ( bound(?person) )
|
2011-03-22 20:22:20 +00:00
|
|
|
</critical-data-required>
|
2011-03-21 22:24:37 +00:00
|
|
|
} ORDER BY <collated> ?subclass </collated> ?personName
|
2011-03-02 22:33:01 +00:00
|
|
|
</query-select>
|
2011-01-31 22:52:40 +00:00
|
|
|
|
|
|
|
<query-construct>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
2011-10-25 20:45:13 +00:00
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
2011-01-31 22:52:40 +00:00
|
|
|
CONSTRUCT {
|
2011-10-25 20:45:13 +00:00
|
|
|
?subject ?property ?position .
|
|
|
|
?position vitro:mostSpecificType ?subclass .
|
2011-01-31 22:52:40 +00:00
|
|
|
?subclass rdfs:subClassOf core:Position
|
|
|
|
} WHERE {
|
2011-10-25 20:45:13 +00:00
|
|
|
?subject ?property ?position .
|
|
|
|
?position vitro:mostSpecificType ?subclass .
|
2011-01-31 22:52:40 +00:00
|
|
|
?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#>
|
|
|
|
CONSTRUCT {
|
|
|
|
?subject ?property ?position .
|
|
|
|
?position ?positionProperty ?positionValue .
|
|
|
|
?person rdfs:label ?personName
|
|
|
|
} WHERE {
|
|
|
|
{
|
|
|
|
?subject ?property ?position
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?position .
|
|
|
|
?position ?positionProperty ?positionValue
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?position .
|
|
|
|
?position core:positionForPerson ?person .
|
|
|
|
?person rdfs:label ?personName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</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 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 core:dateTimeInterval ?dateTimeInterval .
|
|
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
|
|
}
|
|
|
|
</query-construct>
|
|
|
|
|
|
|
|
<template>propStatement-organizationForPosition.ftl</template>
|
|
|
|
</list-view-config>
|