query-079feefe1ceeea328a67b94b124eda03
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 ?partof ?article ?badgeLabel WHERE
{
VALUES ?item { wd:Q462 wd:Q25169 wd:Q848517 }
?article schema:about ?item ;
schema:isPartOf ?partof ;
schema:name ?sitelink ;
schema:inLanguage ?lang .
OPTIONAL {?article wikibase:badge ?badge .}
?partof wikibase:wikiGroup "wikipedia" .
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
v6("?badge")
v1("?item"):::projected
v5("?lang")
v3("?partof"):::projected
v4("?sitelink"):::projected
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wikipedia"]):::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"--> v3
v2 --"schema:name"--> v4
v2 --"schema:inLanguage"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wikibase:badge".-> v6
end
v3 --"wikibase:wikiGroup"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end