NIHVIVO-2480 Fix core:hasRole list view so an activity with no rdfs:label can be returned by the query

This commit is contained in:
ryounes 2011-04-13 16:14:49 +00:00
parent 44f4792df5
commit a98b77762c

View file

@ -16,12 +16,14 @@
?startDateOnly
?roleLabel
?activity ?activityName
?activityLabel
?dateTimeStart ?dateTimeEnd WHERE {
?subject ?property ?role
OPTIONAL { ?role core:roleIn ?activity .
?activity rdfs:label ?activityName
OPTIONAL { ?role core:roleIn ?activity
LET (?activityName := afn:localname(?activity))
OPTIONAL { ?activity rdfs:label ?activityLabel }
}
<collated>
OPTIONAL { ?role a ?subclass .