query-293610f7c13718617b93fd7ded7ecb3c

rq turtle/ttl

Make items with schema:description "hazardous chemical exposure" that is subclass of chemical hazard (Q21167512) subclasses of hazardous chemical exposure (Q68182219) . (Q7189713)physiological condition of (P31)instance of or (P279)subclass of . These should be (P780)symptoms and signs Currently there are some items with description "hazardous chemical exposure" that have Example items: (Q21173314)boron trifluoride exposure (Q21173097)boron tribromide exposure (Q21173315)bromacil exposure Query to find items: Make items with schema:description "hazardous chemical exposure" that is subclass of chemical hazard (Q21167512) subclasses of hazardous chemical exposure (Q68182219) Items that will be updated:

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?condition ?conditionLabel ?conditionDescrption WHERE {
  ?condition wdt:P279+ wd:Q21167512.
  ?condition schema:description ?conditionDescrption.
  FILTER(LANG(?conditionDescrption) = "en").
  FILTER(STRSTARTS(?conditionDescrption, "hazardous chemical exposure"))
  OPTIONAL { ?condition rdfs:label ?conditionLabel FILTER(LANG(?conditionLabel) = "en") }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?condition"):::projected v1("?conditionDescrption"):::projected v2("?conditionLabel"):::projected c4(["wd:Q21167512"]):::iri f0[["starts-with(?conditionDescrption,'hazardous chemical exposure')"]] f0 --> v1 f1[["?conditionDescrption = 'en'"]] f1 --> v1 v3 --"wdt:P279"--> c4 v3 --"schema:description"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v2 end