Skip to content

Commit ba95ed4

Browse files
authored
Merge pull request #143 from rly/patch-1
Add classes OneDimensionalSeries, TwoDimensionalArray
2 parents 39cd17d + 1600711 commit ba95ed4

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
id: https://w3id.org/linkml/linkml-arrays
2+
name: linkml-arrays
3+
title: linkml-arrays
4+
description: |-
5+
LinkML schema to store one-dimensional series and two-dimensional arrays.
6+
7+
prefixes:
8+
arrays: https://w3id.org/linkml/linkml-arrays
9+
linkml: https://w3id.org/linkml/
10+
11+
default_prefix: arrays
12+
default_range: string
13+
14+
imports:
15+
- linkml:types
16+
17+
classes:
18+
19+
Any:
20+
class_uri: linkml:Any
21+
22+
OneDimensionalSeries:
23+
attributes:
24+
name: # the row label
25+
key: true # unique when nested (unlike identifier, which is a global identifier)
26+
length:
27+
range: integer
28+
values:
29+
range: Any
30+
multivalued: true
31+
required: true
32+
33+
TwoDimensionalArray:
34+
attributes:
35+
axis0:
36+
aliases:
37+
- x
38+
range: OneDimensionalSeries
39+
rank: 0
40+
required: true
41+
inlined: true
42+
inlined_as_list: true
43+
axis1:
44+
aliases:
45+
- y
46+
range: OneDimensionalSeries
47+
rank: 1
48+
required: true
49+
inlined: true
50+
inlined_as_list: true
51+
values:
52+
# this will be serialized as one big long list that should be interpreted as a 2D array
53+
range: Any
54+
required: true
55+
multivalued: true

0 commit comments

Comments
 (0)