A set of SPARQL examples that are used in different SIB resources
Find all genes with their name and description in the orthologous group 6400at314295
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX odbgroup: <http://purl.orthodb.org/odbgroup/>
PREFIX : <http://purl.orthodb.org/>
SELECT *
WHERE {
?gene a :Gene.
?gene :name ?gene_name.
?gene :description ?description.
?gene up:organism/a ?taxon.
?taxon up:scientificName ?org_name.
?gene :memberOf odbgroup:6400at314295.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?description"):::projected
v1("?gene"):::projected
v2("?gene_name"):::projected
v5("?org_name"):::projected
v4("?taxon"):::projected
a1((" "))
c2([":Gene"]):::iri
c8([":odbgroup/6400at314295"]):::iri
v1 --"a"--> c2
v1 --":name"--> v2
v1 --":description"--> v3
v1 --"up:organism"--> a1
a1 --"a"--> v4
v4 --"up:scientificName"--> v5
v1 --":memberOf"--> c8