2011-01-06 14:44:04 +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 -->
|
|
|
|
|
2011-07-01 21:16:39 +00:00
|
|
|
|
2011-01-06 14:44:04 +00:00
|
|
|
<list-view-config>
|
2011-03-02 22:33:01 +00:00
|
|
|
<query-select>
|
2011-01-06 14:44:04 +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-06 14:44:04 +00:00
|
|
|
|
2011-03-21 22:24:37 +00:00
|
|
|
SELECT DISTINCT <collated>?subclass</collated>
|
2011-07-01 23:29:37 +00:00
|
|
|
# send the property to the template, since this view supports multiple role properties
|
2011-07-01 21:16:39 +00:00
|
|
|
?property
|
2011-03-02 22:33:01 +00:00
|
|
|
?role
|
2011-02-07 21:23:42 +00:00
|
|
|
?roleLabel ?roleTypeLabel
|
2011-01-31 20:04:46 +00:00
|
|
|
?indivInRole (afn:localname(?indivInRole) AS ?indivName)
|
|
|
|
?indivLabel
|
2013-09-23 09:04:22 -04:00
|
|
|
?dateTimeInterval ?dateTimeStart ?dateTimeEnd ?objectType
|
|
|
|
WHERE {
|
2011-01-31 20:04:46 +00:00
|
|
|
|
2013-09-23 09:04:22 -04:00
|
|
|
?subject ?property ?role .
|
|
|
|
?role a ?objectType
|
2011-02-07 21:23:42 +00:00
|
|
|
|
|
|
|
OPTIONAL { ?role rdfs:label ?roleLabel }
|
2011-03-02 22:33:01 +00:00
|
|
|
|
|
|
|
# We need ?subclass in the uncollated query to get the roleTypeLabel
|
2013-09-23 09:04:22 -04:00
|
|
|
# for roles that have no label.
|
2013-10-29 14:47:41 -04:00
|
|
|
OPTIONAL { ?role vitro:mostSpecificType ?subclass . }
|
|
|
|
OPTIONAL { ?role vitro:mostSpecificType ?subclass .
|
|
|
|
?subclass rdfs:label ?roleTypeLabel
|
|
|
|
}
|
|
|
|
OPTIONAL { ?role <http://purl.obolibrary.org/obo/RO_0000052> ?indivInRole }
|
|
|
|
OPTIONAL { ?role <http://purl.obolibrary.org/obo/RO_0000052> ?indivInRole .
|
|
|
|
?indivInRole rdfs:label ?indivLabel
|
|
|
|
}
|
2013-11-22 11:59:36 -05:00
|
|
|
OPTIONAL { ?role <http://purl.obolibrary.org/obo/BFO_0000054> ?indivInRole .
|
2013-10-29 14:47:41 -04:00
|
|
|
}
|
2013-11-22 11:59:36 -05:00
|
|
|
OPTIONAL { ?role <http://purl.obolibrary.org/obo/BFO_0000054> ?indivInRole .
|
2013-10-29 14:47:41 -04:00
|
|
|
?indivInRole rdfs:label ?indivLabel
|
2011-01-31 20:04:46 +00:00
|
|
|
}
|
|
|
|
|
2013-10-29 14:47:41 -04:00
|
|
|
OPTIONAL { ?role core:dateTimeInterval ?dateTimeInterval .
|
|
|
|
?dateTimeInterval core:start ?dateTimeStartValue .
|
|
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart
|
|
|
|
}
|
|
|
|
OPTIONAL { ?role core:dateTimeInterval ?dateTimeInterval .
|
|
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
2011-01-31 20:04:46 +00:00
|
|
|
}
|
2011-03-22 20:22:20 +00:00
|
|
|
<critical-data-required>
|
2011-03-21 22:24:37 +00:00
|
|
|
FILTER ( bound(?indivInRole) )
|
2011-03-22 20:22:20 +00:00
|
|
|
</critical-data-required>
|
2011-03-21 22:24:37 +00:00
|
|
|
} ORDER BY <collated>?subclass</collated> ?indivLabel ?roleLabel ?roleTypeLabel ?indivName
|
2011-03-02 22:33:01 +00:00
|
|
|
</query-select>
|
2011-02-07 21:23:42 +00:00
|
|
|
|
2011-01-31 22:52:40 +00:00
|
|
|
<query-construct>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
2011-10-25 20:45:13 +00:00
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
2011-01-31 22:52:40 +00:00
|
|
|
CONSTRUCT {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
2011-01-31 22:52:40 +00:00
|
|
|
?role ?roleProperty ?roleValue .
|
2011-10-25 20:45:13 +00:00
|
|
|
?role vitro:mostSpecificType ?subclass .
|
2011-01-31 22:52:40 +00:00
|
|
|
?subclass rdfs:label ?roleTypeLabel .
|
|
|
|
?indivInRole rdfs:label ?indivLabel
|
|
|
|
} WHERE {
|
|
|
|
{
|
2013-09-23 09:04:22 -04:00
|
|
|
?subject ?property ?role .
|
|
|
|
?role a ?objectType
|
2011-01-31 22:52:40 +00:00
|
|
|
} UNION {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
2011-10-25 20:45:13 +00:00
|
|
|
?role ?roleProperty ?roleValue
|
2011-01-31 22:52:40 +00:00
|
|
|
} UNION {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
2011-10-25 20:45:13 +00:00
|
|
|
?role vitro:mostSpecificType ?subclass
|
2011-01-31 22:52:40 +00:00
|
|
|
} UNION {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
2011-12-12 17:15:39 +00:00
|
|
|
?role vitro:mostSpecificType ?subclass .
|
2011-01-31 22:52:40 +00:00
|
|
|
?subclass rdfs:label ?roleTypeLabel
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
|
|
|
?role <http://purl.obolibrary.org/obo/RO_0000052> ?indivInRole .
|
|
|
|
?indivInRole rdfs:label ?indivLabel
|
|
|
|
} UNION {
|
|
|
|
?subject ?property ?role .
|
|
|
|
?role a ?objectType .
|
2013-11-22 11:59:36 -05:00
|
|
|
?role <http://purl.obolibrary.org/obo/BFO_0000054> ?indivInRole .
|
2011-01-31 22:52:40 +00:00
|
|
|
?indivInRole rdfs:label ?indivLabel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</query-construct>
|
|
|
|
|
|
|
|
<query-construct>
|
|
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
|
|
CONSTRUCT {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
2011-01-31 22:52:40 +00:00
|
|
|
?role core:dateTimeInterval ?dateTimeInterval .
|
|
|
|
?dateTimeInterval core:start ?dateTimeStartValue .
|
|
|
|
?dateTimeStartValue core:dateTime ?dateTimeStart
|
|
|
|
} WHERE {
|
|
|
|
?subject ?property ?role .
|
2013-09-23 09:04:22 -04:00
|
|
|
?role a ?objectType .
|
2011-01-31 22:52:40 +00:00
|
|
|
?role 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 ?role .
|
|
|
|
?role core:dateTimeInterval ?dateTimeInterval .
|
|
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
|
|
} WHERE {
|
|
|
|
?subject ?property ?role .
|
|
|
|
?role core:dateTimeInterval ?dateTimeInterval .
|
|
|
|
?dateTimeInterval core:end ?dateTimeEndValue .
|
|
|
|
?dateTimeEndValue core:dateTime ?dateTimeEnd
|
|
|
|
}
|
|
|
|
</query-construct>
|
2011-02-07 21:23:42 +00:00
|
|
|
|
2011-01-06 14:44:04 +00:00
|
|
|
<template>propStatement-relatedRole.ftl</template>
|
2011-01-31 22:52:40 +00:00
|
|
|
</list-view-config>
|