Skip to content

Commit 12baa0b

Browse files
committed
[WIP] Define schemas for the BIMP system of units (2019)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent fe29fd6 commit 12baa0b

78 files changed

Lines changed: 970 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

meta/schemas-root.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"x-license": {
4242
"const": "https://github.com/sourcemeta/std/blob/main/LICENSE"
4343
},
44+
"x-symbol": {
45+
"type": "string"
46+
},
4447
"x-links": {
4548
"type": "array",
4649
"minItems": 1,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Amount of substance",
4+
"description": "Amount of substance is a base quantity measured in moles",
5+
"examples": [ 0.001, 1, 2, 10, 0.5, 1.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/mole.json"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Electric current",
4+
"description": "Electric current is a base quantity measured in amperes",
5+
"examples": [ 0, 1, 5, 10, 0.001, 2.5, -1.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/ampere.json"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Length",
4+
"description": "Length is a base quantity measured in metres",
5+
"examples": [ 0, 1, 0.001, 1000, 1.75, 9.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/metre.json"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Luminous intensity",
4+
"description": "Luminous intensity is a base quantity measured in candelas",
5+
"examples": [ 1, 10, 100, 1000, 12.5, 0.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/candela.json"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Mass",
4+
"description": "Mass is a base quantity measured in kilograms",
5+
"examples": [ 0.001, 1, 10, 100, 1000, 0.5, 75.3 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/kilogram.json"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Thermodynamic temperature",
4+
"description": "Thermodynamic temperature is a base quantity measured in kelvins",
5+
"examples": [ 0, 273.15, 293.15, 373.15, 100, 300 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/kelvin.json"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Time",
4+
"description": "Time is a base quantity measured in seconds",
5+
"examples": [ 0, 1, 60, 3600, 86400, 0.001, 1.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"$ref": "../unit/second.json"
9+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Base unit symbol",
4+
"description": "The symbol of an SI base unit",
5+
"examples": [ "s", "m", "kg", "A", "K", "mol", "cd" ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"anyOf": [
9+
{
10+
"title": "Second",
11+
"const": "s"
12+
},
13+
{
14+
"title": "Metre",
15+
"const": "m"
16+
},
17+
{
18+
"title": "Kilogram",
19+
"const": "kg"
20+
},
21+
{
22+
"title": "Ampere",
23+
"const": "A"
24+
},
25+
{
26+
"title": "Kelvin",
27+
"const": "K"
28+
},
29+
{
30+
"title": "Mole",
31+
"const": "mol"
32+
},
33+
{
34+
"title": "Candela",
35+
"const": "cd"
36+
}
37+
]
38+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Ampere",
4+
"description": "The SI unit of electric current. It is defined by taking the fixed numerical value of the elementary charge, e, to be 1.602 176 634 x 10^-19 when expressed in the unit C, which is equal to A s, where the second is defined in terms of Delta_nu_Cs",
5+
"examples": [ 0, 1, 5, 10, 0.001, 2.5, -1.5 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-symbol": "A",
9+
"type": "number"
10+
}

0 commit comments

Comments
 (0)