query-736f3f21d452a05385bf78d3794480e5

rq turtle/ttl

osh-hazards-chemical-exposure-articlesdata refresh rate: 3600 preferred output format: Table query title: Chemical exposures with Wikipedia articles

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
WHERE {
  ?chemical wdt:P31 wd:Q113145171;
    wdt:P1542 ?item.
  {
    ?item wdt:P279* wd:Q21167512 .
  } UNION {
    ?item 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 v1("?chemical") v2("?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".-> v2 v3 --"schema:isPartOf"--> c9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end