NIHVIVO-1338 Custom list view for core:personInPosition
This commit is contained in:
parent
854e28ea35
commit
e07a78d3a8
3 changed files with 79 additions and 0 deletions
29
productMods/config/listViewConfig-personInPosition.xml
Normal file
29
productMods/config/listViewConfig-personInPosition.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?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>
|
||||
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 ?position (afn:localname(?position) AS ?positionName)
|
||||
?positionTitle ?org ?orgName ?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE {
|
||||
GRAPH ?g1 { ?subject ?property ?position }
|
||||
OPTIONAL { GRAPH ?g2 { ?position core:positionInOrganization ?org }
|
||||
GRAPH ?g3 { ?org rdfs:label ?orgName }
|
||||
}
|
||||
OPTIONAL { GRAPH ?g4 { ?position rdfs:label ?positionTitle } }
|
||||
OPTIONAL { GRAPH ?g5 { ?position core:dateTimeInterval ?dateTimeInterval .
|
||||
?dateTimeInterval core:start ?dateTimeStartValue .
|
||||
?dateTimeStartValue core:dateTime ?dateTimeStart } }
|
||||
OPTIONAL { GRAPH ?g5 { ?position core:dateTimeInterval ?dateTimeInterval .
|
||||
?dateTimeInterval core:end ?dateTimeEndValue .
|
||||
?dateTimeEndValue core:dateTime ?dateTimeEnd } }
|
||||
} ORDER BY DESC(?dateTimeStart) DESC(?dateTimeEnd) ?orgName
|
||||
</query>
|
||||
|
||||
<template>propStatement-personInPosition.ftl</template>
|
||||
</list-view-config>
|
Loading…
Add table
Add a link
Reference in a new issue