vivo/productMods/config/listViewConfig-dateTimeValue.xml

41 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-select>
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(?dateTimePrecision) AS ?precision)
?dateTime WHERE {
2011-01-31 22:52:40 +00:00
?subject ?property ?dateTimeValue
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime }
OPTIONAL { ?dateTimeValue core:dateTimePrecision ?dateTimePrecision }
<critical-data-required>
FILTER ( bound(?dateTime) )
</critical-data-required>
}
</query-select>
2011-01-31 22:52:40 +00:00
<query-construct>
CONSTRUCT {
?subject ?property ?dateTimeValue .
?dateTimeValue ?p ?o .
} WHERE {
{
?subject ?property ?dateTimeValue
}
UNION {
?subject ?property ?dateTimeValue .
?dateTimeValue ?p ?o .
}
}
</query-construct>
<template>propStatement-dateTimeValue.ftl</template>
2011-01-31 22:52:40 +00:00
</list-view-config>