sparql-examples

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

View the Project on GitHub sib-swiss/sparql-examples

Query_153

rq turtle/ttl

Direct and indirect parent cell lines from which some cell line originates

Use at


PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX cvcl: <https://purl.expasy.org/cellosaurus/rdf/cvcl/>
select ?cl ?cl_name ?parent_cl ?parent_cl_name where {
  values ?cl {	cvcl:CVCL_D5AX }
  ?cl cello:recommendedName ?cl_name .
  ?cl cello:hasParentCellLine+ ?parent_cl .
  ?parent_cl cello:recommendedName ?parent_cl_name .
}
order by ?cl
limit 100
    
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?cl"):::projected 
  v2("?cl_name"):::projected 
  v3("?parent_cl"):::projected 
  v4("?parent_cl_name"):::projected 
  bind0[/VALUES ?cl/]
  bind0-->v2
  bind00([https://purl.expasy.org/cellosaurus/rdf/cvcl/CVCL_D5AX])
  bind00 --> bind0
  v2 --"cello:recommendedName"-->  v2
  v2 --"cello:hasParentCellLine"-->  v3
  v3 --"cello:recommendedName"-->  v4