NIHVIVO-3426 query was not pulling in the end date
This commit is contained in:
parent
935ce6c52b
commit
c475c464fe
2 changed files with 22 additions and 4 deletions
|
@ -19,7 +19,8 @@
|
|||
?event2 ?event2Label
|
||||
?series ?seriesLabel
|
||||
?event3
|
||||
?dateTime
|
||||
?dateTimeStart
|
||||
?dateTimeEnd
|
||||
|
||||
WHERE {
|
||||
|
||||
|
@ -88,7 +89,10 @@
|
|||
|
||||
OPTIONAL { ?role vivo:dateTimeInterval ?dateTimeInterval
|
||||
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>
|
||||
PREFIX vivo: <http://vivoweb.org/ontology/core#>
|
||||
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>
|
||||
</list-view-config>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</#local>
|
||||
|
||||
<#local dateTime>
|
||||
<@dt.yearSpan statement.dateTime! />
|
||||
<@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" />
|
||||
</#local>
|
||||
|
||||
<#local attendedEvent>
|
||||
|
|
Loading…
Add table
Reference in a new issue