Wikibase Sample Data: Difference between revisions
Appearance
Wikibase sample data page (auto-generated) |
Wikibase sample data page (auto-generated) |
||
| Line 1: | Line 1: | ||
== Wikibase Sample Data == | == Wikibase Sample Data == | ||
Data fetched from [https://wd.hxmn.dev Wikibase (wd.hxmn.dev)] via SPARQL. | |||
=== Countries === | === Countries === | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Country !! Capital !! Population !! Founded !! Continent !! Wikibase Item | ! Country !! Capital !! Population !! Founded !! Continent !! Wikibase Item | ||
|} | |} | ||
| Line 18: | Line 10: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! City !! Country !! Population !! Founded !! Wikibase Item | ! City !! Country !! Population !! Founded !! Wikibase Item | ||
|} | |} | ||
=== SPARQL | === SPARQL Queries === | ||
Run queries at [https://wd.hxmn.dev/query/ WDQS Query Service]. | |||
Countries with capitals: | |||
<pre> | <pre> | ||
SELECT ?country ?countryLabel ?capital ?capitalLabel ?population WHERE { | SELECT ?country ?countryLabel ?capital ?capitalLabel ?population WHERE { | ||
?country wdt: | ?country wdt: wd: . | ||
?country wdt: | ?country wdt: ?capital . | ||
?country wdt: | ?country wdt: ?population . | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } | SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } | ||
} | } | ||
Revision as of 21:32, 4 April 2026
Wikibase Sample Data
Data fetched from Wikibase (wd.hxmn.dev) via SPARQL.
Countries
| Country | Capital | Population | Founded | Continent | Wikibase Item |
|---|
Cities
| City | Country | Population | Founded | Wikibase Item |
|---|
SPARQL Queries
Run queries at WDQS Query Service.
Countries with capitals:
SELECT ?country ?countryLabel ?capital ?capitalLabel ?population WHERE {
?country wdt: wd: .
?country wdt: ?capital .
?country wdt: ?population .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
ORDER BY DESC(?population)