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 ?startDateOnly
?roleLabel ?roleLabel
?activity ?activityName ?activity ?activityName
?activityLabel
?dateTimeStart ?dateTimeEnd WHERE { ?dateTimeStart ?dateTimeEnd WHERE {
?subject ?property ?role ?subject ?property ?role
OPTIONAL { ?role core:roleIn ?activity . OPTIONAL { ?role core:roleIn ?activity
?activity rdfs:label ?activityName LET (?activityName := afn:localname(?activity))
OPTIONAL { ?activity rdfs:label ?activityLabel }
} }
<collated> <collated>
OPTIONAL { ?role a ?subclass . OPTIONAL { ?role a ?subclass .