sparql-examples

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

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

NXQ_00022

rq turtle/ttl

Proteins with no function annotated

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 filter not exists { ?iso :functionInfo ?_. }
 filter not exists { ?iso :catalyticActivity ?_ .}
 filter not exists { ?iso :transportActivity ?_ .}
 filter not exists { ?iso :pathway ?_. }
 filter not exists {
 ?iso :function / :term ?fterm .
			 filter(?fterm != nextprot_cv:GO_0005524 && ?fterm != nextprot_cv:GO_0000287 && ?fterm != nextprot_cv:GO_0005515 && ?fterm != nextprot_cv:GO_0042802
			 && ?fterm != nextprot_cv:GO_0008270 && ?fterm != nextprot_cv:GO_0051260 && ?fterm != nextprot_cv:GO_0005509
					 && ?fterm != nextprot_cv:GO_0003676 && ?fterm != nextprot_cv:GO_0003824 && ?fterm != nextprot_cv:GO_0007165 && ?fterm != nextprot_cv:GO_0035556
					 && ?fterm != nextprot_cv:GO_0046914 && ?fterm != nextprot_cv:GO_0046872)
 }
 filter not exists { ?entry :existence :Uncertain } # Remove PE5 proteins
}
:existence
:function
:term
:pathway
:transportActivity
:catalyticActivity
:functionInfo
:isoform
EXISTS
EXISTS
EXISTS
EXISTS
EXISTS
EXISTS
Exists Clause
:functionInfo
?_
?iso
Exists Clause
:catalyticActivity
?_
?iso
Exists Clause
:transportActivity
?_
?iso
Exists Clause
:pathway
?_
?iso
Exists Clause
:function
:term
?fterm != ':terminology/GO_0005524'?fterm != ':terminology/GO_0000287'?fterm != ':terminology/GO_0005515'?fterm != ':terminology/GO_0042802'?fterm != ':terminology/GO_0008270'?fterm != ':terminology/GO_0051260'?fterm != ':terminology/GO_0005509'?fterm != ':terminology/GO_0003676'?fterm != ':terminology/GO_0003824'?fterm != ':terminology/GO_0007165'?fterm != ':terminology/GO_0035556'?fterm != ':terminology/GO_0046914'?fterm != ':terminology/GO_0046872'
?fterm
?iso
Exists Clause
:existence
:Uncertain
?entry
?_
?entry
?fterm
?iso
:Uncertain
not
c1
not
c16
c17
?fterm != ':terminology/GO_0005524'?fterm != ':terminology/GO_0000287'?fterm != ':terminology/GO_0005515'?fterm != ':terminology/GO_0042802'?fterm != ':terminology/GO_0008270'?fterm != ':terminology/GO_0051260'?fterm != ':terminology/GO_0005509'?fterm != ':terminology/GO_0003676'?fterm != ':terminology/GO_0003824'?fterm != ':terminology/GO_0007165'?fterm != ':terminology/GO_0035556'?fterm != ':terminology/GO_0046914'?fterm != ':terminology/GO_0046872'
not
c18
not
c19
not
c20
not
c21