Skip to content

Commit

Permalink
Merge pull request #187 from geopython/schema-updates
Browse files Browse the repository at this point in the history
relax language/charset requirements, fix keywords model
  • Loading branch information
tomkralidis authored Nov 6, 2022
2 parents 4b81457 + f154a81 commit b19eb75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
6 changes: 3 additions & 3 deletions docs/content/reference/mcf.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ charset|Mandatory|full name of the character coding standard used for the metada
parentidentifier|Optional|file identifier of the metadata to which this metadata is a subset|11800c2c-e6b9-11df-b9ae-0014c2c33ebe|ISO 19115:2003 Section B.2.1
hierarchylevel|Mandatory|level to which the metadata applies (must be one of 'series', 'software', 'featureType', 'model', 'collectionHardware', 'collectionSession', 'nonGeographicDataset', 'propertyType', 'fieldSession', 'dataset', 'service', 'attribute', 'attributeType', 'tile', 'feature', 'dimensionGroup'|dataset|ISO 19115:2003 Section B.2.1
datestamp|Mandatory|date that the metadata was created, pygeometa supports specifying the $date$ or $datetime$ variable to update the date value at run time|2000-11-11 or 2000-01-12T11:11:11Z|ISO 19115:2003 Section B.2.1
dataseturi|Mandatory|Uniformed Resource Identifier (URI) of the dataset to which the metadata applies|`urn:x-wmo:md:int.wmo.wis::http://geo.woudc.org/def/data/uv-radiation/uv-irradiance`|ISO 19115:2003 Section B.2.1
dataseturi|Optional|Uniformed Resource Identifier (URI) of the dataset to which the metadata applies|`urn:x-wmo:md:int.wmo.wis::http://geo.woudc.org/def/data/uv-radiation/uv-irradiance`|ISO 19115:2003 Section B.2.1

### `spatial`

Expand All @@ -135,8 +135,8 @@ geomtype|Mandatory|name of point or vector objects used to locate zero-, one-, t
Property Name|Mandatory/Optional|Description|Example|Reference
-------------|------------------|-----------|-------|---------:
doi|Optional|Digital Object Identifier (DOI)|12345|ISO 19115:2003 Section B.3.2.1
language|Mandatory|language(s) used within the dataset. If the dataset is made of numerical values, the dataset language can be set to 'missing', 'withheld', 'inapplicable', 'unknown' or 'template'|eng; CAN|ISO 19115:2003 Section B.2.2.1
charset|Mandatory|full name of the character coding standard used for the dataset|eng; CAN|ISO 19115:2003 Section B.2.1
language|Optional|language(s) used within the dataset. If the dataset is made of numerical values, the dataset language can be set to 'missing', 'withheld', 'inapplicable', 'unknown' or 'template'|eng; CAN|ISO 19115:2003 Section B.2.2.1
charset|Optional|full name of the character coding standard used for the dataset|eng; CAN|ISO 19115:2003 Section B.2.1
title|Mandatory|name by which the cited resource is known|Important Bird Areas|ISO 19115:2003 Section B.3.2.1
edition|Optional|version of the cited resource|1.8.0|ISO 19115:2003 Section B.3.2.1
abstract|Mandatory|brief narrative summary of the content of the resource(s)|Birds in important areas...|ISO 19115:2003 Section B.2.2.1
Expand Down
5 changes: 1 addition & 4 deletions pygeometa/schemas/mcf/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ properties:
- charset
- hierarchylevel
- datestamp
- dataseturi
spatial:
type: object
properties:
Expand Down Expand Up @@ -293,8 +292,6 @@ properties:
required:
- name
required:
- language
- charset
- title
- abstract
- topiccategory
Expand Down Expand Up @@ -676,7 +673,7 @@ definitions:
- boolean
i18n_array:
oneOf:
- type: string
- type: array
- type: object
patternProperties: # e.g. keywords_en, keywords_fr
'.*_\w{2}$':
Expand Down

0 comments on commit b19eb75

Please sign in to comment.