A set of SPARQL examples that are used in different SIB resources
Some cell lines with a doubling time between 3 and 5 days
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
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cl"):::projected
v5("?cl_name"):::projected
v4("?duration")
v2("?max"):::projected
v1("?min"):::projected
v6("?unit"):::projected
f0[["?max <= '24^^xsd:integer' * '5^^xsd:integer'"]]
f0 --> v2
f1[["?min >= '24^^xsd:integer' * '3^^xsd:integer'"]]
f1 --> v1
v3 --"cello:hasDoublingTimeRange"--> v4
v3 --"cello:recommendedName"--> v5
v4 --https://schema.org/minValue--> v1
v4 --https://schema.org/maxValue--> v2
v4 --https://schema.org/unitCode--> v6