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_00250

Proteins that act as transporters and their TCDB numbers

Use at

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

SELECT DISTINCT ?entry (str(?trcom) as ?trannot) (str(?acc) as ?trac) {
 ?entry :isoform/ :transportActivity ?tr.
 ?tr rdfs:comment ?trcom; :evidence / :reference ?ref.
 ?ref a :Xref; :accession ?acc .
} order by ?acc
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?acc"):::projected 
  v2("?entry"):::projected 
  v5("?ref")
  v3("?tr")
  v7("?trac")
  v6("?trannot")
  v4("?trcom"):::projected 
  a1((" "))
  a2((" "))
  c7([":Xref"]):::iri 
  v2 --":isoform"-->  a1
  a1 --":transportActivity"-->  v3
  v3 --"rdfs:comment"-->  v4
  v3 --":evidence"-->  a2
  a2 --":reference"-->  v5
  v5 --"a"-->  c7
  v5 --":accession"-->  v1
  bind0[/"str(?trcom)"/]
  v4 --o bind0
  bind0 --as--o v6
  bind1[/"str(?acc)"/]
  v1 --o bind1
  bind1 --as--o v7