valueflows

valueflows docs
git clone https://s.sonu.ch/~srfsh/valueflows.git
Log | Files | Refs | README

commit 2b70326932338d47eaedcc702f54fa69e806f5b6
parent b81248004271c0822d99514b9c0f2fd26f9db8d6
Author: Michael Williams <dinosaur@riseup.net>
Date:   Wed, 12 Nov 2014 13:28:23 -0800

Merge pull request #5 from openvocab/qudt

add Quantity, Unit, and Kind from QUDT ontology
Diffstat:
Avocab/Kind.js | 35+++++++++++++++++++++++++++++++++++
Avocab/Quantity.js | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
Avocab/Unit.js | 46++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 132 insertions(+), 0 deletions(-)

diff --git a/vocab/Kind.js b/vocab/Kind.js @@ -0,0 +1,35 @@ +module.exports = { + id: "Kind", + type: 'object', + prefixes: { + "": "http://schema.org/", + "qudt": "http://qudt.org/1.1/schema/qudt", + }, + context: "qudt:QuantityKind", + description: "A kind is any observable property that can be measured and quantified numerically.", + properties: { + description: { + description: "A description of the kind.", + context: "qudt:description", + type: "string", + }, + abbreviation: { + description: "An abbreviation of the kind.", + context: "qudt:abbreviation", + type: "string", + }, + symbol: { + description: "A symbol of the kind.", + context: "qudt:symbol", + type: "string", + }, + generalization: { + description: "The kind that this is generalized from.", + context: "qudt:quantityKind", + $ref: "Kind", + }, + }, +}; + +module.exports.dependencies = { +} diff --git a/vocab/Quantity.js b/vocab/Quantity.js @@ -0,0 +1,51 @@ +module.exports = { + id: "Quantity", + type: 'object', + prefixes: { + "": "http://schema.org/", + "qudt": "http://qudt.org/1.1/schema/qudt", + }, + context: "qudt:QuantityValue", + description: "A quantity expresses magnitude and kind and is given by the product of a numerical value n and a unit of measure U.", + properties: { + description: { + description: "A description of the quantity.", + context: "qudt:description", + type: "string", + }, + abbreviation: { + description: "An abbreviation of the quantity.", + context: "qudt:abbreviation", + type: "string", + }, + symbol: { + description: "A symbol of the quantity.", + context: "qudt:symbol", + type: "string", + }, + value: { + description: "The magnitude of the quantity.", + context: "qudt:numericValue", + type: "number", + }, + relativeStandardUncertainty: { + description: "The relative standard uncertainty of the value.", + context: "qudt:relativeStandardUncertainty", + type: "number", + }, + standardUncertainty: { + description: "The standard uncertainty of the value.", + context: "qudt:standardUncertainty", + type: "number", + }, + unit: { + description: "The unit of the quantity.", + context: "qudt:unit", + $ref: "Unit", + }, + }, +}; + +module.exports.dependencies = { + Unit: require('./Unit'), +}; diff --git a/vocab/Unit.js b/vocab/Unit.js @@ -0,0 +1,46 @@ +module.exports = { + id: "Unit", + type: 'object', + prefixes: { + "": "http://schema.org/", + "qudt": "http://qudt.org/1.1/schema/qudt", + }, + context: "qudt:Unit", + description: "An unit is a particular quantity of a given kind that has been chosen as a scale for measuring other quantities of the same kind.", + properties: { + description: { + description: "A description of the unit.", + context: "qudt:description", + type: "string", + }, + abbreviation: { + description: "An abbreviation of the unit.", + context: "qudt:abbreviation", + type: "string", + }, + symbol: { + description: "An abbreviation of the unit.", + context: "qudt:symbol", + type: "string", + }, + kind: { + description: "The kind of the unit.", + context: "qudt:quantityKind", + $ref: "Kind", + }, + conversionMultiplier: { + description: "A multiplier for this unit in relation to the given kind.", + context: "qudt:conversionMultiplier", + type: "number", + }, + conversionOffset: { + description: "An offset for this unit in relation to the given kind.", + context: "qudt:conversionOffset", + type: "number", + }, + }, +}; + +module.exports.dependencies = { + Kind: require('./Kind'), +};