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_00298

Recommended isoform names for MSH6

Use at

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

SELECT DISTINCT ?iso ?name WHERE {
 nextprot:NX_P52701 :isoform ?iso. # MSH6 entry
 ?iso :recommendedName ?name_entity .
 ?name_entity a :IsoformName; rdfs:label ?name.
}
order by asc(?iso)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?iso"):::projected 
  v3("?name"):::projected 
  v2("?name_entity")
  c5([":IsoformName"]):::iri 
  c1([":entry/NX_P52701"]):::iri 
  c1 --":isoform"-->  v1
  v1 --":recommendedName"-->  v2
  v2 --"a"-->  c5
  v2 --"rdfs:label"-->  v3