From 6139bf24ef1202b428bb2c5875a8b359bdb956ea Mon Sep 17 00:00:00 2001 From: rjy7 Date: Mon, 24 Jan 2011 20:12:53 +0000 Subject: [PATCH] NIHVIVO-1859, NIHVIVO-1881 Comments and documentation on subclass collation of list views --- .../config/listViewConfig-relatedRole.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/productMods/config/listViewConfig-relatedRole.xml b/productMods/config/listViewConfig-relatedRole.xml index 5e55dc80..f073955b 100644 --- a/productMods/config/listViewConfig-relatedRole.xml +++ b/productMods/config/listViewConfig-relatedRole.xml @@ -14,11 +14,10 @@ ?indivInRole ?indivName ?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE { GRAPH ?g1 { ?subject ?property ?role } + # Works because we don't do inferencing on subclasses, so the only ?roleProp + # returned will be the asserted one. OPTIONAL { GRAPH ?g2 { ?roleProp rdfs:subPropertyOf core:roleOf } GRAPH ?g3 { ?role ?roleProp ?indivInRole } - # TO DO: Implement this filtering in Java postprocessing - # FILTER (?g3 != <http://vitro.mannlib.cornell.edu/default/inferred-tbox> && - # ?g3 != <http://vitro.mannlib.cornell.edu/default/vitro-kb-inf> ) GRAPH ?g4 { ?indivInRole rdfs:label ?indivName } } OPTIONAL { GRAPH ?g5 { ?role rdfs:label ?roleLabel } } @@ -41,17 +40,16 @@ PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#> - SELECT DISTINCT ?subclass + SELECT DISTINCT ?subclass ?role (afn:localname(?role) AS ?roleName) ?roleLabel ?roleTypeLabel ?indivInRole ?indivName ?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE { GRAPH ?g1 { ?subject ?property ?role } + # Works because we don't do inferencing on subclasses, so the only ?roleProp + # returned will be the asserted one. OPTIONAL { GRAPH ?g2 { ?roleProp rdfs:subPropertyOf core:roleOf } GRAPH ?g3 { ?role ?roleProp ?indivInRole } - # TO DO: Implement this filtering in Java postprocessing - # FILTER (?g3 != <http://vitro.mannlib.cornell.edu/default/inferred-tbox> && - # ?g3 != <http://vitro.mannlib.cornell.edu/default/vitro-kb-inf> ) GRAPH ?g4 { ?indivInRole rdfs:label ?indivName } } OPTIONAL { GRAPH ?g5 { ?role rdfs:label ?roleLabel } } @@ -71,6 +69,10 @@ } } ORDER BY ?subclass ?indivName ?roleLabel ?roleTypeLabel - + + + \ No newline at end of file