From 094e6010dd06e06b24c97a7280c8fbad237fd019 Mon Sep 17 00:00:00 2001 From: ryounes Date: Thu, 14 Jul 2011 17:30:29 +0000 Subject: [PATCH] NIHVIVO-2883 Add vivo-specific default list view config to generate a preferred title. Display most specific type for people only, if no preferred title. --- webapp/web/config/listViewConfig-default.xml | 33 +++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/webapp/web/config/listViewConfig-default.xml b/webapp/web/config/listViewConfig-default.xml index 8aa6c35af..cc24795ec 100644 --- a/webapp/web/config/listViewConfig-default.xml +++ b/webapp/web/config/listViewConfig-default.xml @@ -7,25 +7,31 @@ - PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> - PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 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 ?subclass - ?object ?label ?localName WHERE { + ?object + ?label + ?localName WHERE { ?subject ?property ?object - LET (?localName := afn:localname(?object)) - OPTIONAL { ?object a ?subclass } + LET (?localName := afn:localname(?object)) + + OPTIONAL { ?object rdfs:label ?label } + + + OPTIONAL { ?object a ?subclass } FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" ) - - OPTIONAL { ?object rdfs:label ?label } + + } ORDER BY ?subclass ?label ?label ?localName - PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> 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 . @@ -34,16 +40,13 @@ } WHERE { { ?subject ?property ?object - } - UNION { + } UNION { ?subject ?property ?object . ?object a ?subclass . - } - UNION { + } UNION { ?subject ?property ?object . ?object rdfs:label ?label . - } - + } }