-
Notifications
You must be signed in to change notification settings - Fork 1
SPARQL queries for Annotation Graphs
Paolo Ciccarese edited this page Apr 7, 2016
·
8 revisions
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX oa: <http://www.w3.org/ns/oa#>
SELECT ?s ?p ?o {
GRAPH <GRAPH-URI>
{
?s ?p ?o .
}
}
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ao: <http://www.w3.org/ns/oa#>
SELECT DISTINCT ?g {
GRAPH ?g
{
<ANNOTATION-URI> rdfs:type ao:Annotation .
}
}
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ao: <http://www.w3.org/ns/oa#>
SELECT * {
GRAPH ?g
{
?s ?p ?o .
<ANNOTATION-URI> rdfs:type ao:Annotation .
}
}
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX oa: <http://www.w3.org/ns/oa#>
SELECT DISTINCT ?g {
GRAPH ?g
{
?a rdfs:type oa:Annotation .
?a oa:hasTarget ?target .
?target oa:hasSource ?source .
?source <http://purl.org/vocab/frbr/core#embodimentOf> ?e .
?e <http://purl.org/spar/fabio#hasPubMedId> '10679938'.
}
}