sparql-examples

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

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

Query_165

rq turtle/ttl

Cross-references of a chosen cell line

Use at


PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX cvcl: <https://purl.expasy.org/cellosaurus/rdf/cvcl/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?cl ?cl_name ?xref_db ?xref_ac where {
values ?cl { cvcl:CVCL_1100 }
  ?cl a / rdfs:subClassOf cello:CellLine .
  ?cl cello:recommendedName ?cl_name .
  ?cl cello:seeAlsoXref ?xref .
  ?xref cello:database ?xref_db.
  ?xref cello:accession ?xref_ac.
}
order by ?xref_db ?xref_ac
    
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?cl"):::projected 
  v4("?cl_name"):::projected 
  v5("?xref")
  v2("?xref_ac"):::projected 
  v1("?xref_db"):::projected 
  a1((" "))
  c3(["cello:CellLine"]):::iri 
  bind0[/VALUES ?cl/]
  bind0-->v3
  bind00([https://purl.expasy.org/cellosaurus/rdf/cvcl/CVCL_1100])
  bind00 --> bind0
  v3 --"a"-->  a1
  a1 --"rdfs:subClassOf"-->  c3
  v3 --"cello:recommendedName"-->  v4
  v3 --"cello:seeAlsoXref"-->  v5
  v5 --"cello:database"-->  v1
  v5 --"cello:accession"-->  v2