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,12 +1,16 @@
PREFIX core: <http://vivoweb.org/ontology/core#> PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT { CONSTRUCT {
?location rdfs:label ?locationName . ?location rdfs:label ?locationName .
} WHERE { } WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole . PERSON_URI vivo:hasPresenterRole ?presenterRole .
?presenterRole core:roleRealizedIn ?presentation .
?presentation core:eventWithin ?containingEvent . {?presenterRole vivo:roleRealizedIn ?presentation}
?containingEvent core:hasGeographicLocation ?location . union
{?presenterRole vivo:roleIn ?presentation}
?presentation vivo:eventWithin ?containingEvent .
?containingEvent vivo:hasGeographicLocation ?location .
?location rdfs:label ?locationName . ?location rdfs:label ?locationName .
} }

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#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT { CONSTRUCT {
?containingEvent rdfs:label ?containingEventName ?containingEvent rdfs:label ?containingEventName
} WHERE { } WHERE {
PERSON_URI core:hasPresenterRole ?presenterRole . PERSON_URI vivo:hasPresenterRole ?presenterRole .
?presenterRole core:roleRealizedIn ?presentation .
?presentation core:eventWithin ?containingEvent . {?presenterRole vivo:roleRealizedIn ?presentation}
union
{?presenterRole vivo:roleIn ?presentation}
?presentation vivo:eventWithin ?containingEvent .
?containingEvent rdfs:label ?containingEventName ?containingEvent rdfs:label ?containingEventName
} }

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 { CONSTRUCT {
?presentation ?property ?object . ?presentation rdfs:label ?presentationTitle .
?presenterRole rdfs:label ?roleLabel .
} WHERE { } 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 rdfs:label ?presentationTitle .
?presentation ?property ?object .
} }