NIHVIVO-1868 Custom query for core:organizationForPosition shows only people in current positions
This commit is contained in:
parent
d3615b7105
commit
d736204bfc
1 changed files with 7 additions and 2 deletions
|
@ -24,8 +24,11 @@
|
||||||
}
|
}
|
||||||
OPTIONAL { GRAPH ?g8 { ?dateTimeInterval core:end ?dateTimeEndValue }
|
OPTIONAL { GRAPH ?g8 { ?dateTimeInterval core:end ?dateTimeEndValue }
|
||||||
GRAPH ?g9 { ?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
GRAPH ?g9 { ?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
# Current positions only: end date is either null or not in the past
|
||||||
|
} FILTER ( !bound(?dateTimeEnd) ||
|
||||||
|
afn:substring(str(?dateTimeEnd), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
||||||
} ORDER BY ?personName
|
} ORDER BY ?personName
|
||||||
</query-base>
|
</query-base>
|
||||||
|
|
||||||
|
@ -56,7 +59,9 @@
|
||||||
OPTIONAL { GRAPH ?g10 { ?dateTimeInterval core:end ?dateTimeEndValue }
|
OPTIONAL { GRAPH ?g10 { ?dateTimeInterval core:end ?dateTimeEndValue }
|
||||||
GRAPH ?g11 { ?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
GRAPH ?g11 { ?dateTimeEndValue core:dateTime ?dateTimeEnd }
|
||||||
}
|
}
|
||||||
}
|
# Current positions only: end date is either null or not in the past
|
||||||
|
} FILTER ( !bound(?dateTimeEnd) ||
|
||||||
|
afn:substring(str(?dateTimeEnd), 0, 4) >= afn:substring(str(afn:now()), 0, 4) )
|
||||||
} ORDER BY ?subclass ?personName
|
} ORDER BY ?subclass ?personName
|
||||||
</query-collated>
|
</query-collated>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue