NIHVIVO-1859, NIHVIVO-1881 Comments and documentation on subclass collation of list views

This commit is contained in:
rjy7 2011-01-24 20:12:53 +00:00
parent 799abb68c2
commit 6139bf24ef

View file

@ -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
</query-collated>
<!--
<postprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.RelatedRoleDataPostProcessor</postprocessor>
-->
<template>propStatement-relatedRole.ftl</template>
</list-view-config>