#
# example SPARQL query 154
#

@prefix schema: <https://schema.org/> . 
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 
@prefix sh: <http://www.w3.org/ns/shacl#> . 
@prefix cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/> .


cello:Query_154 a sh:SPARQLExecutable ;
    sh:prefixes _:sparql_examples_prefixes ;
    rdfs:comment """Cell lines originating from same individual as a given cell line (sister cell lines)"""@en ; 
    schema:keywords "oi" , "sister" , "derivedFromSameIndividualAs" ; 
    schema:target <https://sparql.cellosaurus.org/sparql> ; 
    sh:select """
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
    """
    .

