SARS-CoV-2-Queries

virusProteins.rq

Code examples: curl

SPARQL

SELECT ?protein ?proteinLabel ?refseq ?uniprot ?guideToPharma WHERE {
  ?protein wdt:P703 wd:Q82069695 ; wdt:P31 wd:Q8054 .
  OPTIONAL { ?protein wdt:P637 ?refseq }
  OPTIONAL { ?protein wdt:P352 ?uniprot }
  OPTIONAL { ?protein wdt:P5458 ?guideToPharma }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
}

run or edit

Output

protein refseq uniprot guideToPharma
Non-structural protein 10 [SARS CoV-2] (edit)
non-structural protein 15 [SARS-CoV-2] (edit)
non-structural protein 16 [SARS-CoV-2] (edit)
Papain-like proteinase [SARS-CoV-2] (edit) YP_009725299.1
non-structural protein 5 [SARS-CoV-2] (edit) YP_009725301 3111
nucleocapsid protein [SARS-CoV-2] (edit) YP_009724397.2 P0DTC9 3121
spike glycoprotein (edit) YP_009724390.1 P0DTC2 3114
orf1ab polyprotein [SARS-Cov 2] (edit) QHD43415 P0DTD1 3125
Viroporin 3a [SARS-CoV-2] (edit) YP_009724391.1 P0DTC3 3115
envelope protein [SARS-CoV-2] (edit) YP_009724392.1 P0DTC4 3116
membrane protein [SARS-CoV-2] (edit) YP_009724393.1 P0DTC5 3117
Non-structural protein 6 [SARS-CoV-2] (edit) P0DTC6 3118
ORF1a polyprotein (edit) P0DTC1 3124
Protein 7a [SARS-CoV-2] (edit) YP_009724395.1 P0DTC7 3119
Protein non-structural 7b [SARS-CoV-2] (edit) YP_009725318.1 P0DTD8 3123
Non-structural protein 8 [SARS-CoV-2] (edit) P0DTC8 3120
Non-structural protein 2 [SARS CoV-2] (edit)
ORF8 protein (edit) YP_009724396.1
ORF6 protein (edit) YP_009724394.1
ORF10 protein [SARS-CoV-2] (edit) YP_009725255.1 A0A663DJA2
Protein 9b (edit) P0DTD2 3122
Non-structural protein 9 [SARS-CoV-2] (edit)
Host translation inhibitor nsp1 [SARS-CoV-2] (edit)
Non-structural protein 4 [SARS-CoV-2] (edit)
Non-structural protein 7 [SARS-CoV-2] (edit)
Non-structural protein 14 [SARS-CoV-2] (edit)
Non-structural protein 12 [SARS CoV-2] (edit)
Non-structural protein 13 [SARS CoV-2] (edit)
Uncharacterized protein 14 (edit) P0DTD3
ORF7a protein (edit) YP_009724395.1
surface glycoprotein (edit) YP_009724390.1
ORF7b (edit) YP_009725318.1
envelope protein (edit) YP_009724392.1
nucleocapsid phosphoprotein (edit) YP_009724397.2
ORF10 protein (edit) YP_009725255.1
membrane glycoprotein (edit) YP_009724393.1
ORF6 protein (edit) YP_009724394.1

Code examples

curl

curl -o virusProteins.rq https://raw.githubusercontent.com/egonw/SARS-CoV-2-Queries/master/sparql/virusProteins.rq
curl -H "Accept: text/tab-separated-values" -G https://query.wikidata.org/bigdata/namespace/wdq/sparql --data-urlencode query@virusProteins.rq

This SPARQL query is available under CCZero.