A set of SPARQL examples that are used in different SIB resources
Find URI and some properties of the orthologous group 6400at314295 by its short text label
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX : <http://purl.orthodb.org/>
SELECT *
WHERE {
?og a :OrthoGroup;
rdfs:label "6400at314295";
:name ?description;
:ogBuiltAt [up:scientificName ?clade] .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?clade"):::projected
v2("?description"):::projected
v1("?og"):::projected
a1((" "))
c2([":OrthoGroup"]):::iri
c4(["6400at314295"]):::literal
v1 --"a"--> c2
v1 --"rdfs:label"--> c4
v1 --":name"--> v2
a1 --"up:scientificName"--> v3
v1 --":ogBuiltAt"--> a1