NIHVIVO-3426 query was not pulling in the end date

This commit is contained in:
tworrall 2011-12-05 15:52:54 +00:00
parent 935ce6c52b
commit c475c464fe
2 changed files with 22 additions and 4 deletions

View file

@ -19,7 +19,8 @@
?event2 ?event2Label ?event2 ?event2Label
?series ?seriesLabel ?series ?seriesLabel
?event3 ?event3
?dateTime ?dateTimeStart
?dateTimeEnd
WHERE { WHERE {
@ -88,7 +89,10 @@
OPTIONAL { ?role vivo:dateTimeInterval ?dateTimeInterval OPTIONAL { ?role vivo:dateTimeInterval ?dateTimeInterval
OPTIONAL { ?dateTimeInterval vivo:start ?dateTimeStartValue . OPTIONAL { ?dateTimeInterval vivo:start ?dateTimeStartValue .
?dateTimeStartValue vivo:dateTime ?dateTime ?dateTimeStartValue vivo:dateTime ?dateTimeStart
}
OPTIONAL { ?dateTimeInterval vivo:end ?dateTimeEndValue .
?dateTimeEndValue vivo:dateTime ?dateTimeEnd
} }
} }
@ -332,5 +336,19 @@
} }
</query-construct> </query-construct>
<query-construct>
PREFIX vivo: &lt;http://vivoweb.org/ontology/core#&gt;
CONSTRUCT {
?subject ?property ?role .
?role vivo:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval vivo:end ?dateTimeEndValue .
?dateTimeEndValue vivo:dateTime ?dateTimeEnd
} WHERE {
?subject ?property ?role .
?role vivo:dateTimeInterval ?dateTimeInterval .
?dateTimeInterval vivo:end ?dateTimeEndValue .
?dateTimeEndValue vivo:dateTime ?dateTimeEnd
}
</query-construct>
<template>propStatement-hasAttendeeRole.ftl</template> <template>propStatement-hasAttendeeRole.ftl</template>
</list-view-config> </list-view-config>

View file

@ -24,7 +24,7 @@
</#local> </#local>
<#local dateTime> <#local dateTime>
<@dt.yearSpan statement.dateTime! /> <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
</#local> </#local>
<#local attendedEvent> <#local attendedEvent>