Skip to content

Commit

Permalink
Remove 30k or so CORD19 hits from query for SARS-CoV-2 proteins
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee committed Jun 12, 2020
1 parent 86dbb34 commit 395dc04
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions queries/sparql/query-02-sars-cov-2-prot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ query: >
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/>
prefix ex: <https://www.example.org/UNKNOWN/>
SELECT ?protein ?p ?v WHERE
{
?protein bl:category bl:Protein; <https://www.example.org/UNKNOWN/ncbi_taxid> ?ncbitaxonid;
?p ?v .
FILTER(?ncbitaxonid="2697049")
}
{
?protein bl:category bl:Protein;
ex:ncbi_taxid ?ncbitaxonid;
?p ?v .
FILTER NOT EXISTS {
?v bl:category bl:Publication .
?v ex:provided_by ?scibitecord
. FILTER(?scibitecord="SciBite-CORD-19")}
FILTER(?ncbitaxonid="2697049")
}

0 comments on commit 395dc04

Please sign in to comment.