A set of SPARQL examples that are used in different SIB resources
Monoclonal antibody isotype of two chosen cell lines
PREFIX cello: <https://purl.expasy.org/cellosaurus/rdf/ontology/>
PREFIX cvcl: <https://purl.expasy.org/cellosaurus/rdf/cvcl/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?cl ?cl_name ?hc_label ?lc_label
where {
values ?cl { cvcl:CVCL_B375 cvcl:CVCL_B0T9 }
?cl cello:hasMoAbIsotype ?annot .
?cl cello:recommendedName ?cl_name .
?annot a cello:MoAbIsotype .
?annot cello:hasAntibodyHeavyChain / rdfs:label ?hc_label .
?annot cello:hasAntibodyLightChain / rdfs:label ?lc_label .
}
order by ?cl
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?annot")
v2("?cl"):::projected
v3("?cl_name"):::projected
v4("?hc_label"):::projected
v5("?lc_label"):::projected
a1((" "))
a2((" "))
c4(["cello:MoAbIsotype"]):::iri
bind0[/VALUES ?cl/]
bind0-->v2
bind00([https://purl.expasy.org/cellosaurus/rdf/cvcl/CVCL_B375])
bind00 --> bind0
bind01([https://purl.expasy.org/cellosaurus/rdf/cvcl/CVCL_B0T9])
bind01 --> bind0
v2 --"cello:hasMoAbIsotype"--> v2
v2 --"cello:recommendedName"--> v3
v2 --"a"--> c4
v2 --"cello:hasAntibodyHeavyChain"--> a1
a1 --"rdfs:label"--> v4
v2 --"cello:hasAntibodyLightChain"--> a2
a2 --"rdfs:label"--> v5