Skip to content

Commit

Permalink
Add query for 2nd order interactors with SARS-CoV-2 proteins
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee committed Jul 14, 2020
1 parent 735eae1 commit 5d457db
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions queries/sparql/query-04-sars-cov-2-interactors_2nd_order.yaml
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 } .
}

0 comments on commit 5d457db

Please sign in to comment.