Wikibase Sample Data: Difference between revisions
Appearance
Wikibase sample data page (auto-generated) |
Wikibase sample data page (auto-generated) |
||
| Line 17: | Line 17: | ||
Countries with capitals: | Countries with capitals: | ||
<pre> | <pre> | ||
PREFIX wd: <https://wd.hxmn.dev/entity/> | |||
PREFIX wdt: <https://wd.hxmn.dev/prop/direct/> | |||
PREFIX wikibase: <http://wikiba.se/ontology#> | |||
PREFIX bd: <http://www.bigdata.com/rdf#> | |||
SELECT ?country ?countryLabel ?capital ?capitalLabel ?population WHERE { | SELECT ?country ?countryLabel ?capital ?capitalLabel ?population WHERE { | ||
?country wdt: wd: . | ?country wdt: wd: . | ||
Revision as of 22:06, 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:
PREFIX wd: <https://wd.hxmn.dev/entity/>
PREFIX wdt: <https://wd.hxmn.dev/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
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)