Merging in NIHVIVO-3587 from 1.4 maintenence branch (data not showing when collated view is selected)
This commit is contained in:
parent
d37d976344
commit
8bbd0b740f
1 changed files with 65 additions and 0 deletions
65
webapp/web/config/listViewConfig-default.xml
Normal file
65
webapp/web/config/listViewConfig-default.xml
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
<?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 object properties
|
||||||
|
|
||||||
|
See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
|
||||||
|
|
||||||
|
<list-view-config>
|
||||||
|
<query-select>
|
||||||
|
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
|
SELECT <collated> ?subclass </collated>
|
||||||
|
?object
|
||||||
|
?label
|
||||||
|
?localName WHERE {
|
||||||
|
|
||||||
|
?subject ?property ?object
|
||||||
|
LET (?localName := afn:localname(?object))
|
||||||
|
|
||||||
|
OPTIONAL { ?object rdfs:label ?label }
|
||||||
|
|
||||||
|
<collated>
|
||||||
|
OPTIONAL {
|
||||||
|
?object a ?subclass.
|
||||||
|
# Require the subclasses retrieved to be in a classgroup, since others are not generally
|
||||||
|
# for display. See vivo-dev-all thread titled "Internal Entity and mostSpecificType,"
|
||||||
|
# Aug 9-10, 2011.
|
||||||
|
# ?subclass vitro:inClassGroup ?classgroup
|
||||||
|
}
|
||||||
|
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||||
|
</collated>
|
||||||
|
|
||||||
|
} ORDER BY <collated> ?subclass </collated> ?label ?label ?localName
|
||||||
|
</query-select>
|
||||||
|
|
||||||
|
<query-construct>
|
||||||
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||||
|
PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
|
||||||
|
|
||||||
|
CONSTRUCT {
|
||||||
|
?subject ?property ?object .
|
||||||
|
?object a ?subclass .
|
||||||
|
?subclass vitro:inClassGroup ?classgroup .
|
||||||
|
?object rdfs:label ?label .
|
||||||
|
} WHERE {
|
||||||
|
{
|
||||||
|
?subject ?property ?object
|
||||||
|
} UNION {
|
||||||
|
?subject ?property ?object .
|
||||||
|
?object a ?subclass .
|
||||||
|
} UNION {
|
||||||
|
?subject ?property ?object .
|
||||||
|
?object a ?subclass .
|
||||||
|
?subclass vitro:inClassGroup ?classgroup
|
||||||
|
} UNION {
|
||||||
|
?subject ?property ?object .
|
||||||
|
?object rdfs:label ?label .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</query-construct>
|
||||||
|
|
||||||
|
<template>propStatement-default.ftl</template>
|
||||||
|
</list-view-config>
|
Loading…
Add table
Add a link
Reference in a new issue