222 lines
9.7 KiB
XML
222 lines
9.7 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 afn: <http://jena.hpl.hp.com/ARQ/function#>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
SELECT DISTINCT
|
|
?role
|
|
?activity ?activityName
|
|
?activityLabel
|
|
?awardedBy
|
|
?adminedBy
|
|
?awardedByLabel
|
|
?adminedByLabel
|
|
?dateTimeStartRole ?dateTimeEndRole
|
|
?dateTimeStartGrant ?dateTimeEndGrant
|
|
?hideThis
|
|
WHERE {
|
|
|
|
?subject ?property ?role
|
|
|
|
OPTIONAL { ?role core:roleRealizedIn ?activity
|
|
LET (?activityName := afn:localname(?activity))
|
|
OPTIONAL { ?activity rdfs:label ?activityLabel }
|
|
}
|
|
OPTIONAL { ?role core:roleContributesTo ?activity
|
|
LET (?activityName := afn:localname(?activity))
|
|
OPTIONAL { ?activity rdfs:label ?activityLabel }
|
|
}
|
|
OPTIONAL { ?activity core:grantAwardedBy ?awardedBy .
|
|
?awardedBy rdfs:label ?awardedByLabel
|
|
}
|
|
OPTIONAL { ?activity core:administeredBy ?adminedBy .
|
|
?adminedBy rdfs:label ?adminedByLabel
|
|
}
|
|
OPTIONAL { ?role core:dateTimeInterval ?dateTimeIntervalRole
|
|
OPTIONAL { ?dateTimeIntervalRole core:start ?dateTimeStartValueRole .
|
|
?dateTimeStartValueRole core:dateTime ?dateTimeStartRole
|
|
}
|
|
OPTIONAL { ?dateTimeIntervalRole core:end ?dateTimeEndValueRole .
|
|
?dateTimeEndValueRole core:dateTime ?dateTimeEndRole
|
|
}
|
|
}
|
|
OPTIONAL { ?role core:roleContributesTo ?grant .
|
|
?grant core:dateTimeInterval ?dateTimeIntervalGrant
|
|
OPTIONAL { ?dateTimeIntervalGrant core:start ?dateTimeStartValueGrant .
|
|
?dateTimeStartValueGrant core:dateTime ?dateTimeStartGrant
|
|
}
|
|
OPTIONAL { ?dateTimeIntervalGrant core:end ?dateTimeEndValueGrant .
|
|
?dateTimeEndValueGrant core:dateTime ?dateTimeEndGrant
|
|
}
|
|
}
|
|
OPTIONAL { ?role core:hideFromDisplay ?hideThis }
|
|
# NOT EXISTS { ?role core:hideFromDisplay ?hideThis }
|
|
<critical-data-required>
|
|
FILTER ( bound(?activity) )
|
|
</critical-data-required>
|
|
} ORDER BY DESC(?dateTimeEndRole) DESC(?dateTimeStartRole) DESC(?dateTimeEndGrant) DESC(?dateTimeStartGrant) ?activityLabel ?activityName
|
|
</query-select>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role core:roleRealizedIn ?activity .
|
|
?activity rdfs:label ?activityLabel
|
|
} WHERE {
|
|
{
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity
|
|
} UNION
|
|
{
|
|
?subject ?property ?role .
|
|
?role core:roleRealizedIn ?activity .
|
|
?activity rdfs:label ?activityLabel
|
|
}
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity rdfs:label ?activityLabel
|
|
} WHERE {
|
|
{
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity
|
|
} UNION
|
|
{
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity rdfs:label ?activityLabel
|
|
}
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role ?roleProperty ?roleValue .
|
|
?activity rdfs:label ?activityName .
|
|
?activity core:grantAwardedBy ?awardedBy .
|
|
?awardedBy rdfs:label ?awardedByLabel .
|
|
?activity core:administeredBy ?adminedBy .
|
|
?adminedBy rdfs:label ?adminedByLabel
|
|
} WHERE {
|
|
{
|
|
?subject ?property ?role
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role ?roleProperty ?roleValue
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity rdfs:label ?activityName
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role core:roleRealizedIn ?activity .
|
|
?activity rdfs:label ?activityName
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity core:grantAwardedBy ?awardedBy
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity core:grantAwardedBy ?awardedBy .
|
|
?awardedBy rdfs:label ?awardedByLabel
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity core:administeredBy ?adminedBy
|
|
} UNION {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?activity .
|
|
?activity core:administeredBy ?adminedBy .
|
|
?adminedBy rdfs:label ?adminedByLabel
|
|
}
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role core:dateTimeInterval ?dateTimeIntervalRole .
|
|
?dateTimeIntervalRole core:start ?dateTimeStartValueRole .
|
|
?dateTimeStartValueRole core:dateTime ?dateTimeStartRole
|
|
} WHERE {
|
|
?subject ?property ?role .
|
|
?role core:dateTimeInterval ?dateTimeIntervalRole .
|
|
?dateTimeIntervalRole core:start ?dateTimeStartValueRole .
|
|
?dateTimeStartValueRole core:dateTime ?dateTimeStartRole
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role core:dateTimeInterval ?dateTimeIntervalRole .
|
|
?dateTimeIntervalRole core:end ?dateTimeEndValueRole .
|
|
?dateTimeEndValueRole core:dateTime ?dateTimeEndRole
|
|
} WHERE {
|
|
?subject ?property ?role .
|
|
?role core:dateTimeInterval ?dateTimeIntervalRole .
|
|
?dateTimeIntervalRole core:end ?dateTimeEndValueRole .
|
|
?dateTimeEndValueRole core:dateTime ?dateTimeEndRole
|
|
}
|
|
</query-construct>
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?grant .
|
|
?grant core:dateTimeInterval ?dateTimeIntervalGrant .
|
|
?dateTimeIntervalGrant core:start ?dateTimeStartValueGrant .
|
|
?dateTimeStartValueGrant core:dateTime ?dateTimeStartGrant
|
|
} WHERE {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?grant .
|
|
?grant core:dateTimeInterval ?dateTimeIntervalGrant .
|
|
?dateTimeIntervalGrant core:start ?dateTimeStartValueGrant .
|
|
?dateTimeStartValueGrant core:dateTime ?dateTimeStartGrant
|
|
}
|
|
</query-construct>
|
|
|
|
<query-construct>
|
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
|
CONSTRUCT {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?grant .
|
|
?grant core:dateTimeInterval ?dateTimeIntervalGrant .
|
|
?dateTimeIntervalGrant core:end ?dateTimeEndValueGrant .
|
|
?dateTimeEndValueGrant core:dateTime ?dateTimeEndGrant
|
|
} WHERE {
|
|
?subject ?property ?role .
|
|
?role core:roleContributesTo ?grant .
|
|
?grant core:dateTimeInterval ?dateTimeIntervalGrant .
|
|
?dateTimeIntervalGrant core:end ?dateTimeEndValueGrant .
|
|
?dateTimeEndValueGrant core:dateTime ?dateTimeEndGrant
|
|
}
|
|
</query-construct>
|
|
|
|
<template>propStatement-hasInvestigatorRole.ftl</template>
|
|
</list-view-config>
|