Skip to content

Commit 10a335f

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 10a335f

75 files changed

Lines changed: 987 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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/mole.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/ampere.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/metre.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/candela.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/kilogram.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/kelvin.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
"$ref": "../unit/second.json",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
]
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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-symbol": "A",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
],
11+
"type": "number"
12+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Candela",
4+
"description": "The SI unit of luminous intensity in a given direction. It is defined by taking the fixed numerical value of the luminous efficacy of monochromatic radiation of frequency 540 x 10^12 Hz, K_cd, to be 683 when expressed in the unit lm W^-1, which is equal to cd sr W^-1, or cd sr kg^-1 m^-2 s^3, where the kilogram, metre and second are defined in terms of h, c and Delta_nu_Cs",
5+
"examples": [ 1, 10, 100, 1000, 12.5, 0.5 ],
6+
"x-symbol": "cd",
7+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
8+
"x-links": [
9+
"https://www.bipm.org/en/publications/si-brochure"
10+
],
11+
"type": "number",
12+
"minimum": 0
13+
}

0 commit comments

Comments
 (0)