vivo/productMods/config/listViewConfig-informationResourceInAuthorship.xml

43 lines
2.1 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-base>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
SELECT DISTINCT ?authorship (afn:localname(?authorship) AS ?authorshipName)
?person ?personName WHERE {
GRAPH ?g1 { ?subject ?property ?authorship }
OPTIONAL { GRAPH ?g2 { ?authorship core:authorRank ?rank } }
OPTIONAL { GRAPH ?g3 { ?authorship core:linkedAuthor ?person }
GRAPH ?g4 { ?person rdfs:label ?personName }
}
} ORDER BY ?rank ?personName
</query-base>
<query-collated>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX core: &lt;http://vivoweb.org/ontology/core#&gt;
PREFIX afn: &lt;http://jena.hpl.hp.com/ARQ/function#&gt;
PREFIX foaf: &lt;http://xmlns.com/foaf/0.1/&gt;
SELECT DISTINCT ?subclass
?authorship (afn:localname(?authorship) AS ?authorshipName)
?person ?personName WHERE {
GRAPH ?g1 { ?subject ?property ?authorship }
OPTIONAL { GRAPH ?g2 { ?authorship core:authorRank ?rank } }
OPTIONAL { GRAPH ?g3 { ?authorship core:linkedAuthor ?person }
GRAPH ?g4 { ?person rdfs:label ?personName }
OPTIONAL { GRAPH ?g5 { ?person a ?subclass }
GRAPH ?g6 { ?subclass rdfs:subClassOf foaf:Person }
}
}
} ORDER BY ?subclass ?rank ?personName
</query-collated>
<template>propStatement-informationResourceInAuthorship.ftl</template>
</list-view-config>