A set of SPARQL examples that are used in different SIB resources
List all InterPro member database signature match start and end for a specific UniProtKB protein.
PREFIX faldo: <http://biohackathon.org/resource/faldo#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT
?protein ?interproMemberDatabaseXref ?matchStart ?matchEnd
WHERE{
GRAPH <http://sparql.uniprot.org/uniprot> {
VALUES ?protein {<http://purl.uniprot.org/uniprot/P05067>} .
?protein rdfs:seeAlso ?sa .
}
GRAPH <http://sparql.uniprot.org/uniparc> {
?uniparc up:sequenceFor ?protein ;
rdfs:seeAlso ?interproMemberDatabaseXref .
?interproDatabaseXref up:signatureSequenceMatch ?sam .
?sam faldo:begin ?sab ;
faldo:end ?sae .
?sab faldo:position ?matchStart ;
faldo:reference ?uniparc .
?sae faldo:position ?matchEnd ;
faldo:reference ?uniparc .
}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?interproDatabaseXref")
v4("?interproMemberDatabaseXref"):::projected
v10("?matchEnd"):::projected
v9("?matchStart"):::projected
v1("?protein"):::projected
v2("?sa")
v7("?sab")
v8("?sae")
v6("?sam")
v3("?uniparc")
bind0[/VALUES ?protein/]
bind0-->v1
bind00([http://purl.uniprot.org/uniprot/P05067])
bind00 --> bind0
v1 --"rdfs:seeAlso"--> v2
v3 --"up:sequenceFor"--> v1
v3 --"rdfs:seeAlso"--> v4
v5 --"up:signatureSequenceMatch"--> v6
v6 --"faldo:begin"--> v7
v6 --"faldo:end"--> v8
v7 --"faldo:position"--> v9
v7 --"faldo:reference"--> v3
v8 --"faldo:position"--> v10
v8 --"faldo:reference"--> v3