-
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.
Add query for 2nd order interactors with SARS-CoV-2 proteins
- Loading branch information
1 parent
735eae1
commit 5d457db
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
queries/sparql/query-04-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,25 @@ | ||
title: | ||
"Get 2nd order interactors" | ||
description: | ||
"Get human proteins that interact human proteins that interact with SARS-CoV-2 proteins" | ||
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 | ||
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 . | ||
OPTIONAL { ?covp rdfs:label ?covplab } . | ||
OPTIONAL { ?humanp rdfs:label ?humanplab } . | ||
OPTIONAL { ?humanp2 rdfs:label ?humanp2lab } . | ||
} |