A set of SPARQL examples that are used in different SIB resources
entry, type and sequence
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?entry ?type ?sequence
WHERE {
?entry rdf:type ?type.
?entry up:sequence ?sequence.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
v3("?sequence"):::projected
v2("?type"):::projected
v1 --"a"--> v2
v1 --"up:sequence"--> v3