NIHVIVO-2186 Filter out incomplete object property statements for non-editing users.
This commit is contained in:
parent
30388b7b6e
commit
a04c736b37
2 changed files with 10 additions and 4 deletions
|
@ -19,19 +19,22 @@
|
|||
?subject ?property ?dateTimeInterval
|
||||
|
||||
OPTIONAL { ?dateTimeInterval core:start ?valueStart
|
||||
LET (?valueStartName := afn:localname(?valueStart))
|
||||
LET (?valueStartName := afn:localname(?valueStart))
|
||||
OPTIONAL { ?valueStart core:dateTime ?dateTimeStart }
|
||||
OPTIONAL { ?valueStart core:dateTimePrecision ?dateTimePrecisionStart
|
||||
LET (?precisionStart := afn:localname(?dateTimePrecisionStart))
|
||||
LET (?precisionStart := afn:localname(?dateTimePrecisionStart))
|
||||
}
|
||||
}
|
||||
OPTIONAL { ?dateTimeInterval core:end ?valueEnd
|
||||
LET (?valueEndName := afn:localname(?valueEnd))
|
||||
LET (?valueEndName := afn:localname(?valueEnd))
|
||||
OPTIONAL { ?valueEnd core:dateTime ?dateTimeEnd }
|
||||
OPTIONAL { ?valueEnd core:dateTimePrecision ?dateTimePrecisionEnd
|
||||
LET (?precisionEnd := afn:localname(?dateTimePrecisionEnd))
|
||||
LET (?precisionEnd := afn:localname(?dateTimePrecisionEnd))
|
||||
}
|
||||
}
|
||||
<linked-individual-required>
|
||||
FILTER ( bound(?dateTimeStart) || bound(?dateTimeEnd) )
|
||||
</linked-individual-required>
|
||||
}
|
||||
</query-select>
|
||||
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
?subject ?property ?dateTimeValue
|
||||
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime }
|
||||
OPTIONAL { ?dateTimeValue core:dateTimePrecision ?dateTimePrecision }
|
||||
<linked-individual-required>
|
||||
FILTER ( bound(?dateTime) )
|
||||
</linked-individual-required>
|
||||
}
|
||||
</query-select>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue