generated from linkml/linkml-template
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from linkml/update_array_metamodel
Update array metamodel and examples
- Loading branch information
Showing
3 changed files
with
212 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
id: https://example.org/arrays | ||
name: arrays-temperature-example | ||
title: Array Temperature Example | ||
description: |- | ||
Example LinkML schema to demonstrate a 3D DataArray of temperature values with labeled axes | ||
license: MIT | ||
|
||
prefixes: | ||
linkml: https://w3id.org/linkml/ | ||
wgs84: http://www.w3.org/2003/01/geo/wgs84_pos# | ||
example: https://example.org/ | ||
|
||
default_prefix: example | ||
|
||
imports: | ||
- linkml:types | ||
|
||
classes: | ||
|
||
TemperatureDataset: | ||
tree_root: true | ||
implements: | ||
- linkml:DataArray | ||
attributes: | ||
name: | ||
identifier: true | ||
range: string | ||
latitude_in_deg: | ||
implements: | ||
- linkml:axis | ||
range: LatitudeSeries | ||
required: true | ||
annotations: | ||
axis_index: 0 | ||
longitude_in_deg: | ||
implements: | ||
- linkml:axis | ||
range: LongitudeSeries | ||
required: true | ||
annotations: | ||
axis_index: 1 | ||
time_in_d: | ||
implements: | ||
- linkml:axis | ||
range: DaySeries | ||
required: true | ||
annotations: | ||
axis_index: 2 | ||
temperatures_in_K: | ||
implements: | ||
- linkml:array | ||
range: TemperatureMatrix | ||
required: true | ||
|
||
TemperatureMatrix: | ||
description: A 3D array of temperatures | ||
implements: | ||
- linkml:NDArray | ||
- linkml:RowOrderedArray | ||
attributes: | ||
values: | ||
range: float | ||
multivalued: true | ||
implements: | ||
- linkml:elements | ||
required: true | ||
unit: | ||
ucum_code: K | ||
annotations: | ||
dimensions: 3 | ||
|
||
LatitudeSeries: | ||
description: A series whose values represent latitude | ||
implements: | ||
- linkml:NDArray | ||
attributes: | ||
values: | ||
range: float | ||
multivalued: true | ||
implements: | ||
- linkml:elements | ||
required: true | ||
unit: | ||
ucum_code: deg | ||
annotations: | ||
dimensions: 1 | ||
|
||
LongitudeSeries: | ||
description: A series whose values represent longitude | ||
implements: | ||
- linkml:NDArray | ||
attributes: | ||
values: | ||
range: float | ||
multivalued: true | ||
implements: | ||
- linkml:elements | ||
required: true | ||
unit: | ||
ucum_code: deg | ||
annotations: | ||
dimensions: 1 | ||
|
||
DaySeries: | ||
description: A series whose values represent the days since the start of the measurement period | ||
implements: | ||
- linkml:NDArray | ||
attributes: | ||
values: | ||
range: float | ||
multivalued: true | ||
implements: | ||
- linkml:elements | ||
required: true | ||
unit: | ||
ucum_code: d | ||
annotations: | ||
dimensions: 1 |
Oops, something went wrong.