query-2b6db8ae90de69bc720de56c94d62ed7
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?HDS_ID ?sitelink where
{
{ SELECT ?item ?sitelink ?HDS_ID
WHERE
{
?item wdt:P902 ?HDS_ID.
?sitelink ^schema:name ?article .
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> .
} } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr". }
} order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?HDS_ID"):::projected
v4("?article")
v2("?item"):::projected
v1("?itemLabel"):::projected
v5("?sitelink"):::projected
c9(["#91;AUTO_LANGUAGE#93;,en,de,fr"]):::literal
c5([https://en.wikipedia.org/]):::iri
c7(["bd:serviceParam"]):::iri
v2 --"wdt:P902"--> v3
v4 --"schema:name"--> v5
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end