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_00061

Proteins which have at least one 3D structure that spans the complete sequence of the mature protein

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso.
 ?iso :pdbMapping ?pdbmap.
 ?pdbmap :start ?pdbstart ; :end ?pdbend.
 ?iso :matureProtein [ :start ?mstart ; :end ?mend]
 filter (?mend-?mstart > 0)
 filter ((?pdbstart <= ?mstart) && (?pdbend >= ?mend))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?entry"):::projected 
  v6("?iso")
  v4("?mend")
  v2("?mstart")
  v3("?pdbend")
  v7("?pdbmap")
  v1("?pdbstart")
  a1((" "))
  f0[["?pdbstart <= ?mstart?pdbend >= ?mend"]]
  f0 --> v1
  f0 --> v2
  f0 --> v3
  f0 --> v4
  f1[["?mend - ?mstart > '0^^xsd:integer'"]]
  f1 --> v4
  f1 --> v2
  v5 --":isoform"-->  v6
  v6 --":pdbMapping"-->  v7
  v7 --":start"-->  v1
  v7 --":end"-->  v3
  a1 --":start"-->  v2
  a1 --":end"-->  v4
  v6 --":matureProtein"-->  a1