A set of SPARQL examples that are used in different SIB resources
Some cell lines with an omics comment
PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <https://schema.org/>
select ?cl ?cl_name ?omics_category ?sub_category where {
?cl cello:hasOmicsInfo ?annot .
?cl cello:recommendedName ?cl_name .
?annot schema:category ?omics_category .
?annot rdfs:comment ?sub_category .
}
limit 100
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?annot")
v1("?cl"):::projected
v3("?cl_name"):::projected
v4("?omics_category"):::projected
v5("?sub_category"):::projected
v1 --"cello:hasOmicsInfo"--> v2
v1 --"cello:recommendedName"--> v3
v2 --https://schema.org/category--> v4
v2 --"rdfs:comment"--> v5