sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

NXQ_00104

rq turtle/ttl

Proteins whose gene is on chromosome 21 with at least one disease annotation from Orphanet

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX source: <http://nextprot.org/rdf/source/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT DISTINCT ?entry (str(?disname) as ?disease) WHERE {
 ?entry :isoform ?iso; :gene / :chromosome "21"^^xsd:string .
 ?iso :disease ?medannot .
 ?medannot rdfs:comment ?disname; :evidence / :assignedBy source:Orphanet.
}
:isoform
:gene
:chromosome
:disease
rdfs:comment
:evidence
:assignedBy
as
?disease
?disname
?entry
?iso
?medannot
:source/Orphanet
21
str(?disname)