diff --git a/webapp/web/config/listViewConfig-default.xml b/webapp/web/config/listViewConfig-default.xml new file mode 100644 index 000000000..7168fc8e3 --- /dev/null +++ b/webapp/web/config/listViewConfig-default.xml @@ -0,0 +1,65 @@ + + + + + + + + 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 { + + ?subject ?property ?object + LET (?localName := afn:localname(?object)) + + OPTIONAL { ?object rdfs:label ?label } + + + 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#" ) + + + } ORDER BY ?subclass ?label ?label ?localName + + + + 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 . + } + } + + + +