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
|
?subject ?property ?dateTimeInterval
|
||||||
|
|
||||||
OPTIONAL { ?dateTimeInterval core:start ?valueStart
|
OPTIONAL { ?dateTimeInterval core:start ?valueStart
|
||||||
LET (?valueStartName := afn:localname(?valueStart))
|
LET (?valueStartName := afn:localname(?valueStart))
|
||||||
OPTIONAL { ?valueStart core:dateTime ?dateTimeStart }
|
OPTIONAL { ?valueStart core:dateTime ?dateTimeStart }
|
||||||
OPTIONAL { ?valueStart core:dateTimePrecision ?dateTimePrecisionStart
|
OPTIONAL { ?valueStart core:dateTimePrecision ?dateTimePrecisionStart
|
||||||
LET (?precisionStart := afn:localname(?dateTimePrecisionStart))
|
LET (?precisionStart := afn:localname(?dateTimePrecisionStart))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OPTIONAL { ?dateTimeInterval core:end ?valueEnd
|
OPTIONAL { ?dateTimeInterval core:end ?valueEnd
|
||||||
LET (?valueEndName := afn:localname(?valueEnd))
|
LET (?valueEndName := afn:localname(?valueEnd))
|
||||||
OPTIONAL { ?valueEnd core:dateTime ?dateTimeEnd }
|
OPTIONAL { ?valueEnd core:dateTime ?dateTimeEnd }
|
||||||
OPTIONAL { ?valueEnd core:dateTimePrecision ?dateTimePrecisionEnd
|
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>
|
</query-select>
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
?subject ?property ?dateTimeValue
|
?subject ?property ?dateTimeValue
|
||||||
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime }
|
OPTIONAL { ?dateTimeValue core:dateTime ?dateTime }
|
||||||
OPTIONAL { ?dateTimeValue core:dateTimePrecision ?dateTimePrecision }
|
OPTIONAL { ?dateTimeValue core:dateTimePrecision ?dateTimePrecision }
|
||||||
|
<linked-individual-required>
|
||||||
|
FILTER ( bound(?dateTime) )
|
||||||
|
</linked-individual-required>
|
||||||
}
|
}
|
||||||
</query-select>
|
</query-select>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue