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_00064

Proteins which are enzymes and that have an incomplete EC number

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform/ :enzymeClassification ?ec.
 ?ec :term / rdfs:label ?eclabel.
 filter regex(?eclabel, '-'^^xsd:string)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?ec")
  v1("?eclabel")
  v2("?entry"):::projected 
  a1((" "))
  a2((" "))
  f0[["regex(?eclabel,'-')"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":enzymeClassification"-->  v3
  v3 --":term"-->  a2
  a2 --"rdfs:label"-->  v1