SARS-CoV-2-Queries

effects.rq

Code examples: curl

SPARQL

SELECT ?effect ?effectLabel WHERE {
  wd:Q84263196 wdt:P1542 ?effect .
  MINUS { ?effect wdt:P31 wd:Q12184 }
  MINUS { ?effect wdt:P31 wd:Q3241045 }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
}

run or edit

Output

effect
blood coagulation (edit)
thrombosis (edit)
acute respiratory distress syndrome (edit)
cytokine storm (edit)
toxic shock syndrome (edit)
viral pneumonia (edit)
pediatric multisystem inflammatory syndrome (edit)
long COVID (edit)
COVID-19 mortality (edit)

Code examples

curl

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

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

This SPARQL query is available under CCZero.