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.
First pass at native NDArray support.
- Loading branch information
Showing
5 changed files
with
178 additions
and
4 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
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
70 changes: 70 additions & 0 deletions
70
tests/input/examples/schema_definition-native-array-1.yaml
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,70 @@ | ||
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 | ||
attributes: | ||
name: | ||
identifier: true | ||
range: string | ||
latitude_in_deg: | ||
required: true | ||
range: float | ||
multivalued: true | ||
unit: | ||
ucum_code: deg | ||
array_shape: | ||
exact_dimensions: 1 | ||
longitude_in_deg: | ||
required: true | ||
range: float | ||
multivalued: true | ||
unit: | ||
ucum_code: deg | ||
array_shape: | ||
exact_dimensions: 1 | ||
time_in_d: | ||
range: float | ||
multivalued: true | ||
implements: | ||
- linkml:elements | ||
required: true | ||
unit: | ||
ucum_code: d | ||
array_shape: | ||
exact_dimensions: 1 | ||
temperatures_in_K: | ||
range: float | ||
multivalued: true | ||
required: true | ||
unit: | ||
ucum_code: K | ||
array_shape: | ||
exact_dimensions: 3 | ||
array_axes: | ||
x: | ||
rank: 0 | ||
alias: latitude_in_deg | ||
y: | ||
rank: 1 | ||
alias: longitude_in_deg | ||
t: | ||
rank: 2 | ||
alias: time_in_d | ||
|
37 changes: 37 additions & 0 deletions
37
tests/input/examples/schema_definition-native-array-rgb.yaml
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,37 @@ | ||
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: | ||
|
||
RGBImage: | ||
attributes: | ||
x: | ||
range: integer | ||
y: | ||
range: integer | ||
|
||
rgb: | ||
range: float | ||
array_shape: | ||
exact_dimensions: 3 | ||
array_axes: | ||
x: | ||
y: | ||
rgb: | ||
exact_cardinality: 3 | ||
description: r, g, b values | ||
|