NIHVIVO-2926 rewrote hasPresenterRole list view queries to avoid nested unions

This commit is contained in:
brianjlowe 2011-07-15 18:14:58 +00:00
parent 8eccf61dbf
commit 7d5ce28f07

View file

@ -77,12 +77,15 @@
?subclass rdfs:subClassOf core:Presentation .
?subclass owl:equivalentClass core:Presentation .
} WHERE {
?subject ?property ?role .
?role core:roleIn ?presentation .
?presentation vitro:mostSpecificType ?subclass .
{
?subject ?property ?role .
?role core:roleIn ?presentation .
?presentation vitro:mostSpecificType ?subclass .
?subclass rdfs:subClassOf core:Presentation
} UNION {
?subject ?property ?role .
?role core:roleIn ?presentation .
?presentation vitro:mostSpecificType ?subclass .
?subclass owl:equivalentClass core:Presentation
}
}
@ -121,18 +124,27 @@
?conference core:includesEvent ?presentation .
?conference rdfs:label ?conferenceLabel
} WHERE {
?subject ?property ?role .
?role core:roleIn ?presentation .
?conference a bibo:Conference .
{
?subject ?property ?role .
?role core:roleIn ?presentation .
?conference a bibo:Conference .
?presentation core:eventWithin ?conference
} UNION {
?subject ?property ?role .
?role core:roleIn ?presentation .
?conference a bibo:Conference .
?presentation core:eventWithin ?conference .
?conference rdfs:label ?conferenceLabel
} UNION {
?subject ?property ?role .
?role core:roleIn ?presentation .
?conference a bibo:Conference .
?conference core:includesEvent ?presentation
} UNION {
?subject ?property ?role .
?role core:roleIn ?presentation .
?conference a bibo:Conference .
?conference core:includesEvent ?presentation .
?conference rdfs:label ?conferenceLabel
}
@ -155,4 +167,4 @@
</query-construct>
<template>propStatement-hasPresenterRole.ftl</template>
</list-view-config>
</list-view-config>