Skip to content

Commit cae60dd

Browse files
committed
add pygeometa validate command to metadata Section
1 parent cdf1478 commit cae60dd

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

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

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"cell_type": "markdown",
7070
"metadata": {},
7171
"source": [
72-
"Let's start with the CLI below."
72+
"Let's start with the CLI below"
7373
]
7474
},
7575
{
@@ -81,6 +81,13 @@
8181
"!pygeometa"
8282
]
8383
},
84+
{
85+
"cell_type": "markdown",
86+
"metadata": {},
87+
"source": [
88+
"Let's take a look at our sample metadata control file (MCF)"
89+
]
90+
},
8491
{
8592
"cell_type": "code",
8693
"execution_count": null,
@@ -90,6 +97,22 @@
9097
"!cat ../data/countries.yml"
9198
]
9299
},
100+
{
101+
"cell_type": "markdown",
102+
"metadata": {},
103+
"source": [
104+
"pygeometa allows a user to validate the MCF file against it's format/schema. Let's make sure our MCF file is valid:"
105+
]
106+
},
107+
{
108+
"cell_type": "code",
109+
"execution_count": null,
110+
"metadata": {},
111+
"outputs": [],
112+
"source": [
113+
"!pygeometa metadata validate ../data/countries.yml"
114+
]
115+
},
93116
{
94117
"cell_type": "code",
95118
"execution_count": null,
@@ -196,9 +219,7 @@
196219
{
197220
"cell_type": "code",
198221
"execution_count": null,
199-
"metadata": {
200-
"scrolled": false
201-
},
222+
"metadata": {},
202223
"outputs": [],
203224
"source": [
204225
"print(xml_string)"
@@ -231,9 +252,9 @@
231252
"name": "python",
232253
"nbconvert_exporter": "python",
233254
"pygments_lexer": "ipython3",
234-
"version": "3.8.10"
255+
"version": "3.10.12"
235256
}
236257
},
237258
"nbformat": 4,
238-
"nbformat_minor": 2
259+
"nbformat_minor": 4
239260
}

0 commit comments

Comments
 (0)