vivo/productMods/config/listViewConfig-dateTimeValue.xml

37 lines
1.4 KiB
XML
Raw Normal View History

<?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 ?dateTimeValue
(afn:localname(?dateTimeValue) AS ?dateTimeValueName)
(afn:localname(?dateTimePrecision) AS ?precision)
?dateTime WHERE {
{
?subject ?property ?dateTimeValue
}
UNION {
?subject ?property ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime .
}
UNION {
?subject ?property ?dateTimeValue .
?dateTimeValue core:dateTimePrecision ?dateTimePrecision .
}
UNION {
?subject ?property ?dateTimeValue .
?dateTimeValue core:dateTime ?dateTime .
?dateTimeValue core:dateTimePrecision ?dateTimePrecision .
}
}
</query-base>
<template>propStatement-dateTimeValue.ftl</template>
</list-view-config>