Skip to content

Commit c7866e9

Browse files
add world-cities datapackage.json to /data for testing list data resources command and quick pick list display (#104)
sample datapackage.json config from: https://github.com/datasets/world-cities/blob/master/datapackage.json
1 parent 7d24c29 commit c7866e9

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

data/datapackage.json

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"name": "world-cities",
3+
"title": "Major cities of the world",
4+
"description": "List of the world's major cities (above 15,000 inhabitants)",
5+
"repository": {
6+
"type": "git",
7+
"url": "git://github.com/datasets/world-cities.git"
8+
},
9+
"sources": [
10+
{
11+
"name": "Geonames",
12+
"path": "http://www.geonames.org/",
13+
"title": "Geonames"
14+
}
15+
],
16+
"keywords": [
17+
"geodata",
18+
"city"
19+
],
20+
"licensces": [
21+
{
22+
"name": "ODC-PDDL-1.0",
23+
"path": "http://opendatacommons.org/licenses/pddl/",
24+
"title": "Open Data Commons Public Domain Dedication and License v1.0"
25+
}
26+
],
27+
"resources": [
28+
{
29+
"name": "world-cities",
30+
"path": "data/world-cities.csv",
31+
"format": "csv",
32+
"mediatype": "text/csv",
33+
"schema": {
34+
"fields": [
35+
{
36+
"name": "name",
37+
"description": "English name of the city",
38+
"type": "string"
39+
},
40+
{
41+
"name": "country",
42+
"description": "Common name of the country, in english",
43+
"type": "string"
44+
},
45+
{
46+
"name": "subcountry",
47+
"description": "Name of the major administrative area",
48+
"type": "string"
49+
},
50+
{
51+
"name": "geonameid",
52+
"description": "id from geonames",
53+
"type": "integer"
54+
}
55+
]
56+
},
57+
"primaryKey": "geonamesid"
58+
}
59+
],
60+
"homepage": "http://github.com/datasets/world-cities",
61+
"related": [
62+
{
63+
"title": "Country list",
64+
"path": "/core/country-list",
65+
"publisher": "core",
66+
"formats": [
67+
"CSV",
68+
"JSON"
69+
]
70+
},
71+
{
72+
"title": "Continent codes",
73+
"path": "/core/continent-codes",
74+
"publisher": "core",
75+
"formats": [
76+
"CSV",
77+
"JSON"
78+
]
79+
},
80+
{
81+
"title": "Airport codes",
82+
"path": "/core/airport-codes",
83+
"publisher": "core",
84+
"formats": [
85+
"CSV",
86+
"JSON"
87+
]
88+
},
89+
{
90+
"title": "Language codes",
91+
"path": "/core/language-codes",
92+
"publisher": "core",
93+
"formats": [
94+
"CSV",
95+
"JSON"
96+
]
97+
}
98+
]
99+
}

0 commit comments

Comments
 (0)