-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add array class example #190
base: main
Are you sure you want to change the base?
Changes from 3 commits
44dc31c
7eb9561
26dc2d3
9f8fad6
f7f565b
2d7bb68
6544337
d0aacdf
faca6ec
8ff7d6d
55ce4b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
id: https://example.org/arrays | ||
name: arrays-temperature-example-2 | ||
title: Array Temperature Example Using NDArray Classes | ||
description: |- | ||
Example LinkML schema to demonstrate a 3D DataArray of temperature values with labeled axes | ||
using LinkML NDArray classes | ||
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 | ||
annotations: | ||
array_data_mapping: | ||
data: temperatures_in_K | ||
dims: [x, "y", t] | ||
coords: | ||
latitude_in_deg: x | ||
longitude_in_deg: "y" | ||
time_in_d: t | ||
attributes: | ||
name: | ||
identifier: true | ||
range: string | ||
latitude_in_deg: | ||
implements: | ||
- linkml:axis | ||
range: LatitudeSeries | ||
rly marked this conversation as resolved.
Show resolved
Hide resolved
|
||
required: true | ||
annotations: | ||
axis_index: 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary anymore given the above |
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we rename this in the metamodel? Is this scoped to |
||
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 | ||
array: | ||
exact_number_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 | ||
array: | ||
exact_number_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 | ||
array: | ||
exact_number_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 | ||
array: | ||
exact_number_dimensions: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary anymore given the above
array_data_mapping
?