SARS-CoV-2-Queries

symptoms.rq

Code examples: curl

SPARQL

SELECT ?symptom ?symptomLabel WHERE {
  wd:Q84263196 wdt:P780 ?symptom .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
}

run or edit

Output

symptom
headache (edit)
anemia (edit)
fatigue (edit)
cough (edit)
fever (edit)
diarrhea (edit)
hypoxia (edit)
delirium (edit)
conjunctivitis (edit)
psychosis (edit)
abdominal pain (edit)
erectile dysfunction (edit)
nausea (edit)
dyspnea (edit)
encephalitis (edit)
anorexia (edit)
occupational burnout (edit)
anosmia (edit)
myalgia (edit)
lymphopenia (edit)
enanthem (edit)
ageusia (edit)
hemoptysis (edit)
brain damage (edit)
respiratory failure (edit)
chills (edit)
viral pneumonia (edit)
nasal congestion (edit)

Code examples

curl

curl -s https://raw.githubusercontent.com/egonw/SARS-CoV-2-Queries/master/sparql/symptoms.rq | sed 's+<lang/>+en+' > symptoms.rq

curl -H "Accept: text/tab-separated-values" -G https://query.wikidata.org/bigdata/namespace/wdq/sparql --data-urlencode query@symptoms.rq

This SPARQL query is available under CCZero.