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:
parent
8645e2af51
commit
2a7defb04c
2 changed files with 34 additions and 4 deletions
|
@ -1,5 +1,22 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- $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>
|
||||
<query>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
@ -20,7 +37,5 @@
|
|||
} ORDER BY DESC(?dateTime)
|
||||
</query>
|
||||
|
||||
<edit-object>edTraining</edit-object>
|
||||
|
||||
<template>propStatement-authorInAuthorship.ftl</template>
|
||||
</list-view-config>
|
|
@ -1,5 +1,22 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- $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>
|
||||
<query>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
@ -20,7 +37,5 @@
|
|||
} ORDER BY DESC(?dateTime)
|
||||
</query>
|
||||
|
||||
<edit-object>edTraining</edit-object>
|
||||
|
||||
<template>propStatement-educationalTraining.ftl</template>
|
||||
</list-view-config>
|
Loading…
Add table
Reference in a new issue