0

I want to query the "instance of P31" and "health specialty P115" for a disease name "left bundle branch hemiblock (Q2143688)"

I want an output like :

left bundle branch hemiblock (Q2143688)
instance of : thoracic disease
health specialty :cardiology

Also is it possible to query all disease information with its instance of and health specialty, so that I can store it and process each time I need an information.

A Developer
  • 1,001
  • 3
  • 12
  • 32
  • 1
    for given diseases: `select ?disease ?diseaseLabel ?type ?typeLabel ?specialty ?specialtyLabel where { VALUES ?disease {wd:Q2143688} ?disease wdt:P31 ?type ; wdt:P1995 ?specialty SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }` – UninformedUser Apr 30 '21 at 16:56
  • 1
    for all diseases: `select ?disease ?diseaseLabel ?type ?typeLabel ?specialty ?specialtyLabel where { ?disease wdt:P31* wd:Q12136 . ?disease wdt:P31 ?type ; wdt:P1995 ?specialty SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }` – UninformedUser Apr 30 '21 at 16:59
  • @UninformedUser - Any idea why I'm not able to get the same information for disease - asthma (Q35869) – A Developer May 03 '21 at 13:39

0 Answers0