query-cbe32cb357a5f128afeefbe59cad7d05
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelink ?article ?badgeLabel WHERE
{
VALUES ?item { wd:Q462 wd:Q25169 wd:Q848517 }
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> ;
schema:name ?sitelink ;
schema:inLanguage ?lang .
OPTIONAL {?article wikibase:badge ?badge .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v5("?badge")
v1("?item"):::projected
v4("?lang")
v3("?sitelink"):::projected
c3([https://en.wikipedia.org/]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q462"])
bind00 --> bind0
bind01(["wd:Q25169"])
bind01 --> bind0
bind02(["wd:Q848517"])
bind02 --> bind0
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c3
v2 --"schema:name"--> v3
v2 --"schema:inLanguage"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wikibase:badge".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end