Skip to content

Commit 8ca63c9

Browse files
committed
update pygeometa MCF files (#224)
1 parent 14c27ba commit 8ca63c9

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

workshop/jupyter/content/data/countries.yml renamed to workshop/jupyter/content/data/countries.mcf.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
mcf:
2-
version: 1.0
2+
version: 2.0
33

44
metadata:
55
identifier: naturalearth-countries
66
language: en
77
charset: utf8
88
hierarchylevel: dataset
9-
datestamp: 2018-05-21
109
dataseturi: https://www.naturalearthdata.com/downloads/110m-cultural-vectors/110m-admin-0-countries
10+
dates:
11+
creation: 2018-05-21
1112

1213
spatial:
1314
datatype: vector

workshop/jupyter/content/data/woudc-stations.yml renamed to workshop/jupyter/content/data/woudc-stations.mcf.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
mcf:
2-
version: 1.0
2+
version: 2.0
33

44
metadata:
55
identifier: woudc-stations
66
language: en
77
charset: utf8
88
hierarchylevel: dataset
9-
datestamp: 2019-08-10
109
dataseturi: https://woudc.org/data/stations
10+
dates:
11+
creation: 2019-08-10
1112

1213
spatial:
1314
datatype: vector

workshop/jupyter/content/notebooks/08-metadata.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"metadata": {},
9595
"outputs": [],
9696
"source": [
97-
"!cat ../data/countries.yml"
97+
"!cat ../data/countries.mcf.yml"
9898
]
9999
},
100100
{
@@ -110,7 +110,7 @@
110110
"metadata": {},
111111
"outputs": [],
112112
"source": [
113-
"!pygeometa metadata validate ../data/countries.yml"
113+
"!pygeometa metadata validate ../data/countries.mcf.yml"
114114
]
115115
},
116116
{
@@ -119,7 +119,7 @@
119119
"metadata": {},
120120
"outputs": [],
121121
"source": [
122-
"!pygeometa metadata generate ../data/countries.yml --schema iso19139 --output /tmp/countries.xml"
122+
"!pygeometa metadata generate ../data/countries.mcf.yml --schema iso19139 --output /tmp/countries.xml"
123123
]
124124
},
125125
{
@@ -144,7 +144,7 @@
144144
"metadata": {},
145145
"outputs": [],
146146
"source": [
147-
"!pygeometa metadata generate ../data/countries.yml --schema oarec-record"
147+
"!pygeometa metadata generate ../data/countries.mcf.yml --schema oarec-record"
148148
]
149149
},
150150
{
@@ -161,7 +161,7 @@
161161
"outputs": [],
162162
"source": [
163163
"from pygeometa.core import read_mcf\n",
164-
"mdata = read_mcf('../data/countries.yml')\n",
164+
"mdata = read_mcf('../data/countries.mcf.yml')\n",
165165
"mdata"
166166
]
167167
},

workshop/jupyter/content/notebooks/09-publishing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
"metadata": {},
228228
"outputs": [],
229229
"source": [
230-
"!pygeometa metadata generate ../data/woudc-stations.yml --schema iso19139 --output ../data/woudc-stations.xml"
230+
"!pygeometa metadata generate ../data/woudc-stations.mcf.yml --schema iso19139 --output ../data/woudc-stations.xml"
231231
]
232232
},
233233
{

0 commit comments

Comments
 (0)