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,17 @@
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 {
?presentation ?property ?object .
?presentation rdfs:label ?presentationTitle .
?presenterRole rdfs:label ?roleLabel .
} WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole .
PERSON_URI vivo:hasPresenterRole ?presenterRole .
optional {?presenterRole rdfs:label ?roleLabel}
{?presenterRole vivo:roleRealizedIn ?presentation}
union
{?presenterRole vivo:roleIn ?presentation}
?presenterRole core:roleRealizedIn ?presentation .
?presentation ?property ?object .
?presentation rdfs:label ?presentationTitle .
}