#
# example SPARQL query 152
#

@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_152 a sh:SPARQLExecutable ;
    sh:prefixes _:sparql_examples_prefixes ;
    rdfs:comment """Detailed registered name record of some cell lines"""@en ; 
    schema:keywords "reg" , "registration" , "registeredName" ; 
    schema:target <https://sparql.cellosaurus.org/sparql> ; 
    sh:select """
PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
select ?cl ?cl_name ?registered_name ?organization_name  where {
        ?cl cello:hasRegistationRecord ?record .
    ?cl cello:recommendedName ?cl_name .
        ?record cello:registeredName ?registered_name .
  ?record cello:inRegister / cello:recommendedName ?organization_name .
}
order by ?cl
limit 100
    """
    .

