A set of SPARQL examples that are used in different SIB resources
Retrieve UniProtKB entries with sequences that are composed of fragments
PREFIX up: <http://purl.uniprot.org/core/>
SELECT DISTINCT
?protein
WHERE {
?protein a up:Protein ;
up:sequence ?sequence .
MINUS { ?sequence up:fragment [] }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?protein"):::projected
v2("?sequence")
a1((" "))
c2(["up:Protein"]):::iri
v1 --"a"--> c2
v1 --"up:sequence"--> v2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"up:fragment"--> a1
end