-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query for druggable 2nd order interactors
- Loading branch information
1 parent
ce9ebe8
commit 6ec3a75
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
queries/sparql/query-04-druggable-sars-cov-2-interactors_2nd_order.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
title: | ||
"Get druggable 2nd order interactors" | ||
description: | ||
"Get druggable (Tclind) human proteins that interact human proteins that interact with SARS-CoV-2 proteins, along with the relevant drugs" | ||
endpoint: | ||
"http://kg-hub-rdf.berkeleybop.io/blazegraph/sparql" | ||
query: > | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
prefix owl: <http://www.w3.org/2002/07/owl#> | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
prefix bl: <https://w3id.org/biolink/vocab/> | ||
SELECT ?covp ?covplab ?humanp ?humanplab ?humanp2 ?humanp2lab ?drug ?druglab | ||
WHERE { | ||
VALUES ?covtaxon {"2697049"^^xsd:string } | ||
VALUES ?humantaxon { "9606"^^xsd:string } | ||
?humanp bl:interacts_with ?covp . | ||
?humanp bl:interacts_with ?humanp2 . | ||
?covp bl:category bl:Protein; <https://www.example.org/UNKNOWN/ncbi_taxid> ?covtaxon . | ||
?humanp bl:category bl:Protein; <https://www.example.org/UNKNOWN/ncbi_taxid> ?humantaxon . | ||
?humanp2 bl:category bl:Protein; <https://www.example.org/UNKNOWN/ncbi_taxid> ?humantaxon . | ||
?humanp2 <https://www.example.org/UNKNOWN/TDL> "Tclin"^^<http://www.w3.org/2001/XMLSchema#string> . | ||
?drug bl:category bl:Drug; bl:interacts_with ?humanp2 . | ||
OPTIONAL { ?covp rdfs:label ?covplab } . | ||
OPTIONAL { ?humanp rdfs:label ?humanplab } . | ||
OPTIONAL { ?humanp2 rdfs:label ?humanp2lab } . | ||
OPTIONAL { ?drug rdfs:label ?druglab } . | ||
} |