sparql-examples

A set of SPARQL examples that are used in different TGX resources

View the Project on GitHub BiGCAT-UM/sparql-examples

002

rq turtle/ttl

List all taxonomies.

Use at

PREFIX chembl: <http://rdf.ebi.ac.uk/terms/chembl#>
PREFIX dcterms: <http://purl.org/dc/terms/>

select distinct ?o WHERE{
  
  ?s a chembl:Assay .
  ?s chembl:taxonomy ?o .
}

graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?o"):::projected 
  v1("?s")
  c2([http://rdf.ebi.ac.uk/terms/chembl#Assay]):::iri 
  v1 --"a"-->  c2
  v1 --http://rdf.ebi.ac.uk/terms/chembl#taxonomy-->  v2