query-cae8168dfa5c8cd3bcde9556a0653cf5

rq turtle/ttl

osh-hazards-chemical-with-exposure-itemsdata refresh rate: 3600 preferred output format: Table query title: Chemical articles with exposure items

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?article ?exposure ?exposureLabel
WHERE {
  ?item wdt:P31 wd:Q113145171;
    wdt:P1542 ?exposure.
  {
    ?exposure wdt:P279* wd:Q21167512 .
  } UNION {
    ?exposure wdt:P279* wd:Q68182219 .
  }
  OPTIONAL {
    ?article schema:about ?item;
     schema:isPartOf <https://en.wikipedia.org/>.
  }
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en".
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article"):::projected v2("?exposure"):::projected v1("?item"):::projected c2(["wd:Q113145171"]):::iri c13(["en"]):::literal c9([https://en.wikipedia.org/]):::iri c11(["bd:serviceParam"]):::iri c5(["wd:Q21167512"]):::iri c6(["wd:Q68182219"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P1542"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c6 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> c5 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:about".-> v1 v3 --"schema:isPartOf"--> c9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end