Skip to content

Commit eb0c691

Browse files
committed
add relations to metadata element
1 parent b423904 commit eb0c691

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-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 or uri|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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ properties:
3434
parentidentifier:
3535
type: string
3636
description: file identifier of the metadata to which this metadata is a subset
37+
relations:
38+
type: array
39+
description: relations between this record and other records
40+
items:
41+
$ref: '#/definitions/relation'
3742
hierarchylevel:
3843
type: string
3944
description: level to which the metadata applies
@@ -705,6 +710,47 @@ definitions:
705710
'.*_\w{2}$':
706711
allOf:
707712
- type: string
713+
relation:
714+
type: object
715+
properties:
716+
identifier:
717+
type: string
718+
description: A reference to other record, either by UUID or URI
719+
hierarchylevel:
720+
type: string
721+
description: The type of the linked resource
722+
enum:
723+
- series
724+
- software
725+
- featureType
726+
- model
727+
- collectionHardware
728+
- collectionSession
729+
- nonGeographicDataset
730+
- propertyType
731+
- fieldSession
732+
- dataset
733+
- service
734+
- attribute
735+
- attributeType
736+
- tile
737+
- feature
738+
- dimensionGroup
739+
relationType:
740+
type: string
741+
description: The type of relation to the linked resource
742+
enum:
743+
- crossReference
744+
- largerWorkCitation
745+
- partOfSeamlessDatabase
746+
- source
747+
- uses
748+
- version
749+
- part
750+
- supplement
751+
- reference
752+
required:
753+
- identifier
708754
date_or_datetime_string:
709755
anyOf:
710756
- type: string

sample.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ metadata:
77
language_alternate: fr
88
charset: utf8
99
parentidentifier: someparentid
10+
relations:
11+
- identifier: some-related-identifier
12+
hierarchylevel: dataset
13+
relationType: source
1014
hierarchylevel: dataset
1115
datestamp: 2014-11-11
1216
dataseturi: http://some/minted/uri

0 commit comments

Comments
 (0)