sparql-examples

A set of SPARQL examples for tutorials at SWAT4HCLS

View the Project on GitHub dnanad/sparql-examples

NXQ_00079

rq turtle/ttl

Proteins with at least one 3D structure and that are phosphorylated

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :uniprotKeyword / :term nextprot_cv:KW-0597. # Phosphoprotein
 ?iso :pdbMapping ?map.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v2("?iso")
  v3("?map")
  a1((" "))
  c4([":terminology/KW-0597"]):::iri 
  v1 --":isoform"-->  v2
  v2 --":uniprotKeyword"-->  a1
  a1 --":term"-->  c4
  v2 --":pdbMapping"-->  v3