updating sparql for rich-export of presentations

This commit is contained in:
stellamit 2012-06-21 13:56:07 +00:00
parent 5f026bb847
commit 5e69b3ac29
3 changed files with 29 additions and 15 deletions

View file

@ -1,11 +1,15 @@
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT {
?containingEvent rdfs:label ?containingEventName
} WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole .
?presenterRole core:roleRealizedIn ?presentation .
?presentation core:eventWithin ?containingEvent .
PERSON_URI vivo:hasPresenterRole ?presenterRole .
{?presenterRole vivo:roleRealizedIn ?presentation}
union
{?presenterRole vivo:roleIn ?presentation}
?presentation vivo:eventWithin ?containingEvent .
?containingEvent rdfs:label ?containingEventName
}