2010-12-07 21:30:13 +00:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
2010-12-21 13:41:09 +00:00
|
|
|
|
2011-01-05 19:48:50 +00:00
|
|
|
<!--
|
|
|
|
Default list view config file for uncollated object properties
|
|
|
|
|
2010-12-21 13:41:09 +00:00
|
|
|
Required elements:
|
|
|
|
- query: the sparql query used to retrieve the data
|
|
|
|
- template: the name of the template used to display a single property statement
|
|
|
|
|
|
|
|
Optional elements:
|
2011-01-03 16:00:41 +00:00
|
|
|
- postprocessor: a Java class that postprocesses the data retrieved from the query before
|
2010-12-21 13:41:09 +00:00
|
|
|
sending it to the template
|
|
|
|
|
|
|
|
Query requirements:
|
2010-12-21 20:30:13 +00:00
|
|
|
- WHERE clause must contain a statement ?subject ?property ?object, with the variables
|
|
|
|
?subject and ?property named as such. The object can be given any name, but it must be
|
2010-12-21 13:41:09 +00:00
|
|
|
included in the SELECT terms retrieved by the query. This is the statement that will be edited
|
|
|
|
from the edit links.
|
2010-12-22 22:17:07 +00:00
|
|
|
- Each assertion or set of optional assertions must reference a different graph variable, so that
|
|
|
|
we do not impose a requirement about which assertions are in the same graph.
|
2010-12-21 13:41:09 +00:00
|
|
|
-->
|
|
|
|
|
2010-12-17 22:11:02 +00:00
|
|
|
<list-view-config>
|
2010-12-16 14:57:04 +00:00
|
|
|
<query>
|
|
|
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
|
|
|
|
SELECT ?object ?name ?moniker {
|
2010-12-22 20:11:01 +00:00
|
|
|
GRAPH ?g1 { ?subject ?property ?object }
|
|
|
|
OPTIONAL { GRAPH ?g2 { ?object rdfs:label ?name } }
|
|
|
|
OPTIONAL { GRAPH ?g3 { ?object vitro:moniker ?moniker } }
|
2010-12-07 21:30:13 +00:00
|
|
|
}
|
|
|
|
</query>
|
2010-12-21 13:41:09 +00:00
|
|
|
|
2011-01-05 16:24:25 +00:00
|
|
|
<postprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.DefaultListViewDataPostProcessor</postprocessor>
|
2010-12-16 14:57:04 +00:00
|
|
|
|
2010-12-17 22:11:02 +00:00
|
|
|
<template>propStatement-default.ftl</template>
|
2010-12-22 20:11:01 +00:00
|
|
|
</list-view-config>
|