#
# example SPARQL query 128
#

@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_128 a sh:SPARQLExecutable ;
    sh:prefixes _:sparql_examples_prefixes ;
    rdfs:comment """Top 100 agents used to transform cell lines"""@en ; 
    schema:keywords "tfor" , "transformant" , "stats" ; 
    schema:target <https://sparql.cellosaurus.org/sparql> ; 
    sh:select """
PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?transformant_name (count(distinct ?cl) as ?cl_count) where {
  ?cl cello:transformedBy ?annot.
  ?annot rdfs:label ?transformant_name .
}
group by ?transformant_name
order by desc(count(?annot))
limit 100
    """
    .

