2011-01-06 14:10:37 +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-01-19 20:46:39 +00:00
|
|
|
<query-base>
|
2011-01-06 14:10:37 +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#>
|
|
|
|
|
|
|
|
SELECT DISTINCT ?role (afn:localname(?role) AS ?roleName)
|
2011-01-19 20:46:39 +00:00
|
|
|
?roleLabel
|
|
|
|
?activity ?activityName
|
|
|
|
?dateTimeStart ?dateTimeEnd WHERE {
|
2011-01-06 14:10:37 +00:00
|
|
|
GRAPH ?g1 { ?subject ?property ?role }
|
|
|
|
OPTIONAL { GRAPH ?g2 { ?role core:roleIn ?activity }
|
|
|
|
GRAPH ?g3 { ?activity rdfs:label ?activityName }
|
|
|
|
}
|
2011-01-07 20:34:30 +00:00
|
|
|
OPTIONAL { GRAPH ?g4 { ?role rdfs:label ?roleLabel } }
|
2011-01-06 14:10:37 +00:00
|
|
|
OPTIONAL { GRAPH ?g5 { ?role core:dateTimeInterval ?dateTimeInterval }
|
2011-01-19 20:46:39 +00:00
|
|
|
OPTIONAL { GRAPH ?g6 { ?dateTimeInterval core:start ?dateTimeStartValue }
|
|
|
|
GRAPH ?g7 { ?dateTimeStartValue core:dateTime ?dateTimeStart }
|
2011-01-06 14:10:37 +00:00
|
|
|
}
|
2011-01-19 20:46:39 +00:00
|
|
|
OPTIONAL { GRAPH ?g8 { ?dateTimeInterval core:end ?dateTimeEndValue }
|
|
|
|
GRAPH ?g9 { ?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
2011-01-06 14:10:37 +00:00
|
|
|
}
|
|
|
|
}
|
2011-01-07 17:13:46 +00:00
|
|
|
} ORDER BY DESC(?dateTimeEnd) DESC(?dateTimeStart) ?personName
|
2011-01-19 20:46:39 +00:00
|
|
|
</query-base>
|
|
|
|
|
|
|
|
<query-collated>
|
|
|
|
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#>
|
|
|
|
|
|
|
|
SELECT DISTINCT ?subclass
|
|
|
|
?role (afn:localname(?role) AS ?roleName)
|
|
|
|
?roleLabel
|
|
|
|
?activity ?activityName
|
|
|
|
?dateTimeStart ?dateTimeEnd WHERE {
|
|
|
|
GRAPH ?g1 { ?subject ?property ?role }
|
|
|
|
OPTIONAL { GRAPH ?g2 { ?role core:roleIn ?activity }
|
|
|
|
GRAPH ?g3 { ?activity rdfs:label ?activityName }
|
|
|
|
}
|
|
|
|
OPTIONAL { GRAPH ?g4 { ?role a ?subclass }
|
|
|
|
GRAPH ?g5 { ?subclass rdfs:subClassOf core:Role }
|
|
|
|
}
|
|
|
|
OPTIONAL { GRAPH ?g6 { ?role rdfs:label ?roleLabel } }
|
|
|
|
OPTIONAL { GRAPH ?g7 { ?role core:dateTimeInterval ?dateTimeInterval }
|
|
|
|
OPTIONAL { GRAPH ?g8 { ?dateTimeInterval core:start ?dateTimeStartValue }
|
|
|
|
GRAPH ?g9 { ?dateTimeStartValue core:dateTime ?dateTimeStart }
|
|
|
|
}
|
|
|
|
OPTIONAL { GRAPH ?g10 { ?dateTimeInterval core:end ?dateTimeEndValue }
|
|
|
|
GRAPH ?g11 { ?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} ORDER BY ?subclass DESC(?dateTimeEnd) DESC(?dateTimeStart) ?personName
|
|
|
|
</query-collated>
|
2011-01-06 14:10:37 +00:00
|
|
|
|
|
|
|
<template>propStatement-hasRole.ftl</template>
|
|
|
|
</list-view-config>
|