Skip to content

Commit b871780

Browse files
committed
add relations to metadata element
1 parent 982ae74 commit b871780

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

docs/content/reference/mcf.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ language|Mandatory|primary language used for documenting metadata, the metadata
130130
language_alternate|Optional|alternate language used for documenting metadata|en|ISO 19115:2003 Annex J
131131
charset|Mandatory|full name of the character coding standard used for the metadata set|utf8|ISO 19115:2003 Section B.2.1
132132
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
133+
relations|Optional|relations between this record and other records, identified by identifier and type|11800c2c-e6b9-11df-b9ae-0014c2c33ebe|ISO 19115:2003 Section B.2.2.7
133134
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
134135
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
135136
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

pygeometa/schemas/mcf/core.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ properties:
3939
parentidentifier:
4040
type: string
4141
description: file identifier of the metadata to which this metadata is a subset
42+
relations:
43+
type: array
44+
description: relations to other records
45+
items:
46+
type: object
47+
allOf:
48+
- $ref: '#/definitions/identifier_scheme'
49+
properties:
50+
type:
51+
type: string
52+
description: a relation type (source, partof, version, reference, ...)
4253
hierarchylevel:
4354
type: string
4455
description: level to which the metadata applies

sample.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ metadata:
1010
language_alternate: fr
1111
charset: utf8
1212
parentidentifier: someparentid
13+
relations:
14+
- identifier: 10.278/45e22-11223-2
15+
scheme: http://doi.org
16+
type: source
1317
hierarchylevel: dataset
1418
datestamp: 2014-11-11
1519
dataseturi: http://some/minted/uri

0 commit comments

Comments
 (0)