A set of SPARQL examples that are used in different SIB resources
faldo begin
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX faldo: <http://biohackathon.org/resource/faldo#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?entry ?faldoBegin ?faldoEnd ?beginPosition ?endPosition ?reference
WHERE {
?entry faldo:begin ?faldoBegin.
?faldoBegin faldo:position ?beginPosition.
?faldoBegin faldo:reference ?reference.
?entry faldo:end ?faldoEnd.
?faldoEnd faldo:position ?endPosition.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?beginPosition"):::projected
v6("?endPosition"):::projected
v1("?entry"):::projected
v2("?faldoBegin"):::projected
v5("?faldoEnd"):::projected
v4("?reference"):::projected
v1 --"faldo:begin"--> v2
v2 --"faldo:position"--> v3
v2 --"faldo:reference"--> v4
v1 --"faldo:end"--> v5
v5 --"faldo:position"--> v6