sparql-examples

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

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

076

rq turtle/ttl

Lists all metabolite data nodes with their labels.

Use at

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wp: <http://vocabularies.wikipathways.org/wp#>

SELECT DISTINCT ?mb ?label WHERE {
  ?mb a wp:Metabolite ;
     rdfs:label ?label .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?label"):::projected 
  v1("?mb"):::projected 
  c2(["wp:Metabolite"]):::iri 
  v1 --"a"-->  c2
  v1 --"rdfs:label"-->  v2