query-d49d90c95705f115100e75b1d33fe053
Select all human UniProt entries with a sequence variant that leads to a 'loss of function' and also physically interact with (P129) a drug with a qualifier of "use" (P366) of "enzyme inhibitor" (Q427492) uniprot endpointSubmit through
Use at
- https://query.wikidata.org/sparql
PREFIX keywords:<http://purl.uniprot.org/keywords/>
PREFIX uniprotkb:<http://purl.uniprot.org/uniprot/>
PREFIX ec:<http://purl.uniprot.org/enzyme/>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX bibo:<http://purl.org/ontology/bibo/>
PREFIX dc:<http://purl.org/dc/terms/>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX faldo:<http://biohackathon.org/resource/faldo#>
PREFIX up:<http://purl.uniprot.org/core/>
PREFIX taxon:<http://purl.uniprot.org/taxonomy/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?wd_item ?physically_interacts_with ?interactswithLabel ?typeLabel ?iri ?uniprot ?text WHERE {
{SELECT * WHERE { ?iri a up:Protein ;
up:organism taxon:9606 ;
up:annotation ?annotation .
?annotation a up:Natural_Variant_Annotation ;
rdfs:comment ?text .
FILTER (CONTAINS(?text, 'loss of function')) }
}
SERVICE <https://query.wikidata.org/bigdata/namespace/wdq/sparql> {
VALUES ?use {wd:Q427492}
?wd_item wdt:P352 ?uniprot ;
p:P129 ?physically_interacts_with_node ;
wdt:P2888 ?iri ;
wdt:P703 wd:Q15978631 .
?phys_interacts_with_node ps:P129 ?physically_interacts_with ;
pq:P366 ?use .
?physically_interacts_with wdt:P31 ?type ;
rdfs:label ?interactswithLabel .
?type rdfs:label ?typeLabel .
FILTER (lang(?interactswithLabel) = "en")
FILTER (lang(?typeLabel) = "en")
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?annotation")
v5("?interactswithLabel"):::projected
v2("?iri"):::projected
v10("?phys_interacts_with_node")
v11("?physically_interacts_with"):::projected
v9("?physically_interacts_with_node")
v1("?text"):::projected
v12("?type")
v4("?typeLabel"):::projected
v8("?uniprot"):::projected
v6("?use")
v7("?wd_item"):::projected
c5([http://purl.uniprot.org/taxonomy/9606]):::iri
c15(["wd:Q15978631"]):::iri
c7([http://purl.uniprot.org/core/Natural_Variant_Annotation]):::iri
c3([http://purl.uniprot.org/core/Protein]):::iri
f0[["contains(?text,'loss of function')"]]
f0 --> v1
v2 --"a"--> c3
v2 --http://purl.uniprot.org/core/organism--> c5
v2 --http://purl.uniprot.org/core/annotation--> v3
v3 --"a"--> c7
v3 --"rdfs:comment"--> v1
subgraph s1["https://query.wikidata.org/bigdata/namespace/wdq/sparql"]
style s1 stroke-width:4px;
f1[["?typeLabel = 'en'"]]
f1 --> v4
f2[["?interactswithLabel = 'en'"]]
f2 --> v5
bind3[/VALUES ?use/]
bind3-->v6
bind30(["wd:Q427492"])
bind30 --> bind3
v7 --"p:direct/P352"--> v8
v7 --"p:P129"--> v9
v7 --"p:direct/P2888"--> v2
v7 --"p:direct/P703"--> c15
v10 --"p:statement/P129"--> v11
v10 --"p:qualifier/P366"--> v6
v11 --"p:direct/P31"--> v12
v11 --"rdfs:label"--> v5
v12 --"rdfs:label"--> v4
end