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_00148

Variants with normal "ubiquitin-protein transferase activity" and decreased or increased binding to UBE2D1 (example: BRCA1-p.Ile89Thr)

Use at

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

SELECT distinct ?pfname ?impact_on_ubi_trsfrt_activity ?impact_on_binding_UBE2D1 WHERE {
 values (?ubi_trsfrt_activity ?no_impact ?UBE2D1 ?impact)
 { (nextprot_cv:GO_0004842 nextprot_cv:ME_0000003 nextprot:NX_P51668 nextprot_cv:ME_0000002) }
 ?pf a :Proteoform .
 ?pf rdfs:label ?pfname .
 ?pf :phenotypicVariation ?pv1 .
 ?pv1 :impactedObject / :term ?ubi_trsfrt_activity .
 ?pv1 :term ?no_impact .
 ?no_impact rdfs:label ?impact_on_ubi_trsfrt_activity .
 ?pf :phenotypicVariation ?pv2 .
 ?pv2 :impactedObject / :interactant ?UBE2D1 .
 ?pv2 :term ?sub_impact .
 ?sub_impact :childOf ?impact .
 ?sub_impact rdfs:label ?impact_on_binding_UBE2D1 .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v3("?UBE2D1")
  v4("?impact")
  v11("?impact_on_binding_UBE2D1"):::projected 
  v8("?impact_on_ubi_trsfrt_activity"):::projected 
  v2("?no_impact")
  v5("?pf")
  v6("?pfname"):::projected 
  v7("?pv1")
  v9("?pv2")
  v10("?sub_impact")
  v1("?ubi_trsfrt_activity")
  a1((" "))
  a2((" "))
  c2([":Proteoform"]):::iri 
  bind0[/VALUES ?UBE2D1 ?impact ?no_impact ?ubi_trsfrt_activity/]
  bind0-->v1
  bind0-->v2
  bind0-->v3
  bind0-->v4
  bind00([":terminology/GO_0004842"])
  bind00 --> bind0
  bind01([":terminology/ME_0000003"])
  bind01 --> bind0
  bind02([":entry/NX_P51668"])
  bind02 --> bind0
  bind03([":terminology/ME_0000002"])
  bind03 --> bind0
  v5 --"a"-->  c2
  v5 --"rdfs:label"-->  v6
  v5 --":phenotypicVariation"-->  v7
  v7 --":impactedObject"-->  a1
  a1 --":term"-->  v1
  v7 --":term"-->  v2
  v2 --"rdfs:label"-->  v8
  v5 --":phenotypicVariation"-->  v9
  v9 --":impactedObject"-->  a2
  a2 --":interactant"-->  v3
  v9 --":term"-->  v10
  v10 --":childOf"-->  v4
  v10 --"rdfs:label"-->  v11