NIHVIVO-1341 Added notes to list view config files on required and optional elements and how to structure the query. Removed edit-object since this can be derived from the ?subject ?property ?object statement in the query where clause.

This commit is contained in:
rjy7 2010-12-21 13:41:11 +00:00
parent 8645e2af51
commit 2a7defb04c
2 changed files with 34 additions and 4 deletions

View file

@ -1,5 +1,22 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<!--
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:
postprocessor: a Java class that postprocesses the data retrieved from the query before
sending it to the template
Query requirements:
- WHERE clause must contain a statement ?subject ?property ?objectvariable, with the variables
?subject and ?property named as such. The objectvariable can be given any name, but it must be
included in the SELECT terms retrieved by the query. This is the statement that will be edited
from the edit links.
-->
<list-view-config> <list-view-config>
<query> <query>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
@ -20,7 +37,5 @@
} ORDER BY DESC(?dateTime) } ORDER BY DESC(?dateTime)
</query> </query>
<edit-object>edTraining</edit-object>
<template>propStatement-authorInAuthorship.ftl</template> <template>propStatement-authorInAuthorship.ftl</template>
</list-view-config> </list-view-config>

View file

@ -1,5 +1,22 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ --> <!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<!--
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:
postprocessor: a Java class that postprocesses the data retrieved from the query before
sending it to the template
Query requirements:
- WHERE clause must contain a statement ?subject ?property ?objectvariable, with the variables
?subject and ?property named as such. The objectvariable can be given any name, but it must be
included in the SELECT terms retrieved by the query. This is the statement that will be edited
from the edit links.
-->
<list-view-config> <list-view-config>
<query> <query>
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt; PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
@ -20,7 +37,5 @@
} ORDER BY DESC(?dateTime) } ORDER BY DESC(?dateTime)
</query> </query>
<edit-object>edTraining</edit-object>
<template>propStatement-educationalTraining.ftl</template> <template>propStatement-educationalTraining.ftl</template>
</list-view-config> </list-view-config>