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 ?indivInRole ?indivName
?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE { ?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE {
GRAPH ?g1 { ?subject ?property ?role } 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 } OPTIONAL { GRAPH ?g2 { ?roleProp rdfs:subPropertyOf core:roleOf }
GRAPH ?g3 { ?role ?roleProp ?indivInRole } 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 } GRAPH ?g4 { ?indivInRole rdfs:label ?indivName }
} }
OPTIONAL { GRAPH ?g5 { ?role rdfs:label ?roleLabel } } OPTIONAL { GRAPH ?g5 { ?role rdfs:label ?roleLabel } }
@ -47,11 +46,10 @@
?indivInRole ?indivName ?indivInRole ?indivName
?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE { ?dateTimeInterval ?dateTimeStart ?dateTimeEnd WHERE {
GRAPH ?g1 { ?subject ?property ?role } 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 } OPTIONAL { GRAPH ?g2 { ?roleProp rdfs:subPropertyOf core:roleOf }
GRAPH ?g3 { ?role ?roleProp ?indivInRole } 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 } GRAPH ?g4 { ?indivInRole rdfs:label ?indivName }
} }
OPTIONAL { GRAPH ?g5 { ?role rdfs:label ?roleLabel } } OPTIONAL { GRAPH ?g5 { ?role rdfs:label ?roleLabel } }
@ -72,5 +70,9 @@
} ORDER BY ?subclass ?indivName ?roleLabel ?roleTypeLabel } ORDER BY ?subclass ?indivName ?roleLabel ?roleTypeLabel
</query-collated> </query-collated>
<!--
<postprocessor>edu.cornell.mannlib.vitro.webapp.web.templatemodels.individual.RelatedRoleDataPostProcessor</postprocessor>
-->
<template>propStatement-relatedRole.ftl</template> <template>propStatement-relatedRole.ftl</template>
</list-view-config> </list-view-config>