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_00241

Interaction annotations from SwissProt

Use at

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

SELECT DISTINCT ?entry (str(?txt) as ?itinfo) WHERE {
 SELECT DISTINCT ?entry ?txt WHERE {
 ?entry :isoform ?iso.
 ?iso :interactionInfo / rdfs:comment ?txt.
 } order by ?entry
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v2("?iso")
  v4("?itinfo")
  v3("?txt"):::projected 
  a1((" "))
  v1 --":isoform"-->  v2
  v2 --":interactionInfo"-->  a1
  a1 --"rdfs:comment"-->  v3
  bind0[/"str(?txt)"/]
  v3 --o bind0
  bind0 --as--o v4