Skip to content

Commit cc2e8a0

Browse files
add relations to metadata element (#293)
* add relations to metadata element * update doc Added a new section for metadata relations with properties including identifier, scheme, and type. --------- Co-authored-by: Tom Kralidis <[email protected]>
1 parent 982ae74 commit cc2e8a0

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

docs/content/reference/mcf.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ Property Name|Mandatory/Optional|Description|Example|Reference
141141
identifier|Mandatory|identifier|10.5324/3f342f64|ISO 19115:2003 Section B.2.1
142142
scheme|Optional|scheme in which this identifier is defined (e.g. ark, doi, handle, isbn, lccn, sku). Note that the schema may also be a URI|https://doi.org|ISO 19115:2003 Section B.2.1
143143

144+
### `metadata.relations`
145+
146+
Property Name|Mandatory/Optional|Description|Example|Reference
147+
-------------|------------------|-----------|-------|---------:
148+
identifier|Mandatory|identifier|10.5324/3f342f64|ISO 19115:2003 Section B.2.1
149+
scheme|Optional|scheme in which this identifier is defined (e.g. ark, doi, handle, isbn, lccn, sku). Note that the schema may also be a URI|https://doi.org|ISO 19115:2003 Section B.2.1
150+
type|Optional|a relation type (source, partof, version, reference, ...)|source|ISO 19115:2003 Section B.2.1
151+
144152
### `spatial`
145153

146154
Property Name|Mandatory/Optional|Description|Example|Reference

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)