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_00247

Proteins with a molecular weight less than 25 kDa

Use at

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

SELECT DISTINCT ?entry ?mw WHERE {
 ?entry :isoform / :sequence / :molecularWeight ?mw.
 filter ( ?mw < 25000)
} order by ?mw
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v1("?mw"):::projected 
  a1((" "))
  a2((" "))
  f0[["?mw < '25000^^xsd:integer'"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":sequence"-->  a2
  a2 --":molecularWeight"-->  v1