A set of SPARQL examples that are used in different SIB resources
Check there are no entries whose gene is on chromosome unknown with a variant annotation with evidence from gnomAD
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
select distinct ?entry where {
?entry :gene / :chromosome "unknown"^^xsd:string.
?entry :isoform ?iso.
?iso :variant /:evidence ?ev.
?ev :assignedBy source:gnomAD.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
v3("?ev")
v2("?iso")
a1((" "))
a2((" "))
c8([":source/gnomAD"]):::iri
c3(["unknown"]):::literal
v1 --":gene"--> a1
a1 --":chromosome"--> c3
v1 --":isoform"--> v2
v2 --":variant"--> a2
a2 --":evidence"--> v3
v3 --":assignedBy"--> c8