NIHVIVO-1510 Collation of properties using default list view. NIHVIVO-1569 Fixed a bug in BaseObjectPropertyDataPostProcessor.removeDuplicates()
This commit is contained in:
parent
587e83f6b1
commit
25a818efa9
6 changed files with 90 additions and 70 deletions
39
webapp/web/config/listViewConfig-default-uncollated.xml
Normal file
39
webapp/web/config/listViewConfig-default-uncollated.xml
Normal file
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<!--
|
||||
Default list view config file for uncollated object properties
|
||||
|
||||
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 ?object, with the variables
|
||||
?subject and ?property named as such. The object 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.
|
||||
- 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.
|
||||
-->
|
||||
|
||||
<list-view-config>
|
||||
<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 {
|
||||
GRAPH ?g1 { ?subject ?property ?object }
|
||||
OPTIONAL { GRAPH ?g2 { ?object rdfs:label ?name } }
|
||||
OPTIONAL { GRAPH ?g3 { ?object vitro:moniker ?moniker } }
|
||||
}
|
||||
</query>
|
||||
|
||||
<postprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.DefaultListViewDataPostProcessor</postprocessor>
|
||||
|
||||
<template>propStatement-default.ftl</template>
|
||||
</list-view-config>
|
Loading…
Add table
Add a link
Reference in a new issue