sparql-examples

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

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

Query_154

rq turtle/ttl

Cell lines originating from same individual as a given cell line (sister cell lines)

Use at


PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX cvcl: <https://purl.expasy.org/cellosaurus/rdf/cvcl/>
select ?cl ?cl_name ?sister_cl ?sister_cl_name where
{
  values ?cl { cvcl:CVCL_X038 } # the IRI of the cell line which we look the sisters for
  ?cl cello:derivedFromSameIndividualAs ?sister_cl .
  ?cl cello:recommendedName ?cl_name .
  ?sister_cl cello:recommendedName ?sister_cl_name .
}
limit 1000
    
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?cl"):::projected 
  v3("?cl_name"):::projected 
  v2("?sister_cl"):::projected 
  v4("?sister_cl_name"):::projected 
  bind0[/VALUES ?cl/]
  bind0-->v1
  bind00([https://purl.expasy.org/cellosaurus/rdf/cvcl/CVCL_X038])
  bind00 --> bind0
  v1 --"cello:derivedFromSameIndividualAs"-->  v2
  v1 --"cello:recommendedName"-->  v3
  v2 --"cello:recommendedName"-->  v4