Open data is data that can be freely used, re-used and redistributed by anyone - subject only, at most, to the requirement to attribute and sharealike.
Source: http://opendefinition.org/
A community of interacting organizations and individuals that produce, use and reuse a set of data. The dataset is the keystone around which applications and services provide value and thereby become part of the data ecosystem.
Ecosystem members can have various roles. Common roles are contributor, supplier, aggregator, enabler, enricher, developer as well as the common user.
Source: Own definition
Source: Sunlight Foundation
Source: Sunlight Foundation
5 Principles agreed to at 2013 G8 Summit
Source: Open Data Charter
Wikidata offers copies of its database
Can load those dumps with Wikidata Toolkit
What are the 10 largest cities with a female mayor ?
SELECT DISTINCT ?cityLabel ?population ?mayorLabel
WHERE
{
?city wdt:P31/wdt:P279* wd:Q515 . # find instances of subclasses of city
?city p:P6 ?statement . # with a P6 (head of goverment) statement
?statement ps:P6 ?mayor . # ... that has the value ?mayor
?mayor wdt:P21 wd:Q6581072 . # ... where the ?mayor has P21 (sex or gender) female
FILTER NOT EXISTS { ?statement pq:P582 ?x } # ... but the statement has no P582 (end date) qualifier
# Now select the population value of the ?city
# (wdt: properties use only statements of "preferred" rank if any, usually meaning "current population")
?city wdt:P1082 ?population .
# Optionally, find English labels for city and mayor:
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
ORDER BY DESC(?population)
LIMIT 10
List of space probes with pictures.
SELECT ?link ?date ?picture
WHERE {
?link wdt:P31 wd:Q26529 ;
wdt:P18 ?picture ;
wdt:P619 ?date .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr,en" .
}
}
ORDER BY ?date
LIMIT 100
Map of Lighthouses in Norway
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?coor ?image
{
?item wdt:P31 wd:Q39715 .
?item wdt:P17 wd:Q20 .
OPTIONAL { ?item wdt:P625 ?coor }
OPTIONAL { ?item wdt:P18 ?image }
SERVICE wikibase:label
{
bd:serviceParam wikibase:language "nb,nn,en,fi" .}
}
ORDER BY ?itemLabel
Each OSM entity (node, way, relation) has:
Get location of Colombo.
SELECT name, place, ST_XMin(way), ST_YMin(way)
FROM planet_osm_point WHERE name='Colombo' AND place='city';
Get the road network.
SELECT ST_SimplifyPreserveTopology (way ,5000) , highway
FROM planet_osm_line
WHERE highway IN ('motorway ', 'trunk ', 'primary ', 'secondary ');
Metric | July 2016 | June 2017 |
---|---|---|
Users | 2,867,221 | 3,954,309 |
Nodes | 3,463,959,970 | 3,926,828,147 |
Ways | 360,469,340 | 416,654,804 |
Relations | 4,387,699 | 5,043,226 |
GPS traces | 5,280,183,660 | 5,715,425,150 |
Top user has contributed 326,511,847 (6%) GPS traces.
Example Query: Chinese Restaurants on the map
node
[amenity=restaurant]
[cuisine=chinese]
({{bbox}});
out;
way({{bbox}})
[highway]
[name];
out;