{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://fairchemistry.org/md-models/",
"title": "UnitDefinition",
"type": "object",
"description": "Represents a unit definition that is based on the SI unit system. A unit may be a base unit or a derived unit composed of one or more factor units.",
"properties": {
"base_units": {
"title": "base_units",
"type": "array",
"description": "Base or factor units that define this unit.",
"$term": "http://qudt.org/schema/qudt#factorUnit",
"items": {
"$ref": "#/$defs/BaseUnit"
}
},
"id": {
"title": "id",
"type": "string",
"description": "Unique identifier of the unit definition.",
"$term": "http://schema.org/identifier"
},
"name": {
"title": "name",
"type": "string",
"description": "Common or human-readable name of the unit definition.",
"$term": "http://www.w3.org/2000/01/rdf-schema#label"
}
},
"$defs": {
"BaseUnit": {
"title": "BaseUnit",
"type": "object",
"description": "Represents a base or factor unit contributing to a derived unit definition.",
"properties": {
"exponent": {
"title": "exponent",
"type": "integer",
"description": "Exponent of the base unit in the unit definition.",
"$term": "http://qudt.org/schema/qudt#exponent"
},
"kind": {
"title": "kind",
"type": "string",
"description": "Kind of the base unit (e.g., meter, kilogram, second).",
"$term": "http://qudt.org/schema/qudt#unit",
"$ref": "#/$defs/UnitType"
},
"multiplier": {
"title": "multiplier",
"type": "number",
"description": "Multiplier applied to the base unit.",
"$term": "http://qudt.org/schema/qudt#multiplier"
},
"scale": {
"title": "scale",
"type": "number",
"description": "Power-of-ten scale applied to the base unit.",
"$term": "http://qudt.org/schema/qudt#scale"
}
},
"required": [
"kind",
"exponent"
],
"additionalProperties": false
},
"UnitType": {
"title": "UnitType",
"type": "string",
"enum": [
"ampere",
"avogadro",
"becquerel",
"candela",
"celsius",
"coulomb",
"dimensionless",
"farad",
"gram",
"gray",
"henry",
"hertz",
"item",
"joule",
"katal",
"kelvin",
"kilogram",
"litre",
"lumen",
"lux",
"metre",
"mole",
"newton",
"ohm",
"pascal",
"radian",
"second",
"siemens",
"sievert",
"steradian",
"tesla",
"volt",
"watt",
"weber"
]
}
},
"required": [],
"additionalProperties": false
}