#
# example SPARQL query 134
#

@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_134 a sh:SPARQLExecutable ;
    sh:prefixes _:sparql_examples_prefixes ;
    rdfs:comment """Some cell lines with a doubling time between 3 and 5 days"""@en ; 
    schema:keywords "time" , "doubling time" ; 
    schema:target <https://sparql.cellosaurus.org/sparql> ; 
    sh:select """
PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX schema: <https://schema.org/>
select ?cl ?cl_name ?min ?max ?unit where  {
  ?cl cello:hasDoublingTimeRange ?duration .
  ?cl cello:recommendedName ?cl_name .
  ?duration schema:minValue ?min .
  ?duration schema:maxValue ?max .
  ?duration schema:unitCode ?unit . # ISO 4217 code for duration unit: HUR=hour(s)
  filter (?min >= 24 * 3) # 3 days in hours
  filter (?max <= 24 * 5) # 5 days in hours
}
order by asc(?min)
limit 1000
    """
    .

