NIHVIVO-1859, NIHVIVO-1881 Comments and documentation on subclass collation of list views
This commit is contained in:
parent
799abb68c2
commit
6139bf24ef
1 changed files with 10 additions and 8 deletions
|
@ -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 } }
|
||||||
|
@ -41,17 +40,16 @@
|
||||||
PREFIX core: <http://vivoweb.org/ontology/core#>
|
PREFIX core: <http://vivoweb.org/ontology/core#>
|
||||||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||||
|
|
||||||
SELECT DISTINCT ?subclass
|
SELECT DISTINCT ?subclass
|
||||||
?role (afn:localname(?role) AS ?roleName)
|
?role (afn:localname(?role) AS ?roleName)
|
||||||
?roleLabel ?roleTypeLabel
|
?roleLabel ?roleTypeLabel
|
||||||
?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 } }
|
||||||
|
@ -71,6 +69,10 @@
|
||||||
}
|
}
|
||||||
} 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>
|
Loading…
Add table
Add a link
Reference in a new issue