Skip to content

Commit 016804e

Browse files
authored
remove duplication in attributes, extend sample with more relevant content (#292)
1 parent b423904 commit 016804e

File tree

2 files changed

+15
-83
lines changed

2 files changed

+15
-83
lines changed

pygeometa/schemas/mcf/core.yaml

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ properties:
356356
- object
357357
- array
358358
- boolean
359+
- date
360+
- datetime
359361
units:
360362
type: string
361363
description: SI Unit
@@ -595,79 +597,6 @@ properties:
595597
required:
596598
- platforms
597599

598-
attributes:
599-
type: array
600-
minItems: 1
601-
items:
602-
type: object
603-
properties:
604-
name:
605-
type: string
606-
description: attribute name
607-
type:
608-
type: string
609-
description: data type of attribute
610-
enum:
611-
- string
612-
- number
613-
- integer
614-
- object
615-
- array
616-
- boolean
617-
units:
618-
type: string
619-
description: SI Unit
620-
title:
621-
$ref: '#/definitions/i18n_string'
622-
description: human readable title of attribute
623-
abstract:
624-
$ref: '#/definitions/i18n_string'
625-
description: description of attribute
626-
url:
627-
$ref: '#/definitions/i18n_string'
628-
description: URL with more information about the attribute
629-
values:
630-
type: object
631-
oneOf:
632-
- properties:
633-
enum:
634-
type: array
635-
description: enumerated list of values
636-
minItems: 1
637-
items:
638-
$ref: '#/definitions/any_type'
639-
- properties:
640-
range:
641-
type: array
642-
description: range of values (min/max)
643-
minItems: 2
644-
maxItems: 2
645-
items:
646-
$ref: '#/definitions/any_type'
647-
- properties:
648-
codelist:
649-
type: array
650-
description: values from a codelist
651-
minItems: 1
652-
items:
653-
type: object
654-
properties:
655-
name:
656-
type: string
657-
description: value name
658-
title:
659-
$ref: '#/definitions/i18n_string'
660-
description: human readable title of value
661-
abstract:
662-
$ref: '#/definitions/i18n_string'
663-
description: description of value
664-
url:
665-
$ref: '#/definitions/i18n_string'
666-
description: URL with more information about the value
667-
required:
668-
- name
669-
required:
670-
- name
671600

672601
required:
673602
- mcf

sample.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,19 @@ content_info:
7373
cloud_cover: 72
7474
processing_level: "1.0"
7575
attributes:
76-
- name: foo
77-
units: m
78-
- name: bar
79-
units: K
76+
- name: TS_OBS
77+
title: Observation timestamp
78+
type: datetime
79+
- name: CA_MG_L
80+
title: Calcium content in MG per L
81+
type: number
82+
url: https://en.wikipedia.org/wiki/Calcium
83+
units: MilliGM-PER-L
84+
- name: MG_MG_L
85+
title: Magnesium content in MG per L
86+
type: number
87+
url: https://en.wikipedia.org/wiki/Magnesium
88+
units: MilliGM-PER-L
8089
dimensions:
8190
- name: B1
8291
units: nm
@@ -139,9 +148,3 @@ dataquality:
139148
level: dataset
140149
lineage:
141150
statement: this dataset was derived from a custom process against dataset xyz
142-
143-
attributes:
144-
- name: foo
145-
units: m
146-
- name: bar
147-
units: K

0 commit comments

Comments
 (0)