sparql-examples

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

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

neXtProt/NXQ_00106

Proteins annotated as glycosylated but with no recorded glycosylation site

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-0325.
 filter not exists { ?entry :isoform /:glycosylationSite ?_. }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?_")
  v1("?entry"):::projected 
  v3("?iso")
  a2((" "))
  a1((" "))
  c5([":terminology/KW-0325"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":isoform"-->  e0a1
    e0a1 --":glycosylationSite"-->  e0v2
    e0v2("?_"):::projected 
    e0v1("?entry"):::projected 
    e0a1((" ")):::projected 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> a1
  f0 --> c2
  f0 --> v2
  v1 --":isoform"-->  a1
  a1 --":glycosylationSite"-->  v2
  v1 --":isoform"-->  v3
  v3 --":uniprotKeyword"-->  a2
  a2 --":term"-->  c5