query-b16f512ca626e2d865c345923611c268

rq turtle/ttl

TODO

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 ?item ?itemLabel ?article ?badgeLabel 
WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  ?item wdt:P131 wd:Q18424.
  ?article schema:about ?item .
  ?article schema:isPartOf <https://en.wikipedia.org/> .
  optional { ?article wikibase:badge ?badge . }
}
ORDER BY (?itemLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article"):::projected v4("?badge") v2("?item"):::projected v1("?itemLabel"):::projected c9([https://en.wikipedia.org/]):::iri c2(["bd:serviceParam"]):::iri c4(["en"]):::literal c6(["wd:Q18424"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"wdt:P131"--> c6 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c9 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wikibase:badge".-> v4 end