This document is licensed under a Creative Commons Attribution 4.0 License.
This document specifies custom datatypes designed to concisely encode important information.
This document is draft of a potential specification. It has no official standing of any kind and does not represent the support or consensus of any standards organization.
Being able to describe quantity values and their unit is a requirement that is common for many applications in several industrial sectors such as manufacturing, transport and logistics, personal and public health, smart cities, energy, environment, buildings, agriculture. Different ontologies have been developed to describe units, their relations, and quantities with their values.
We propose an alternative approach based on RDF Datatypes [rdf11-concepts], that leverages the Unified Code of Units of Measures [UCUM], a code system intended to
The custom datatypes introduced in this section can be used for lightweight encoding and querying of quantity values, in a wide range of applications where representing and reasoning with quantity kinds and values is more important than reasoning with units.
This section is non-normative.
Main datatypes: cdt:ucum , cdt:ucumunit
Current list of more specific datatypes: cdt:acceleration , cdt:amountOfSubstance , cdt:angle , cdt:area , cdt:catalyticActivity , cdt:dimensionless , cdt:electricCapacitance , cdt:electricCharge , cdt:electricConductance , cdt:electricCurrent , cdt:electricInductance , cdt:electricPotential , cdt:electricResistance , cdt:energy , cdt:force , cdt:frequency , cdt:illuminance , cdt:length , cdt:luminousFlux , cdt:luminousIntensity , cdt:magneticFlux , cdt:magneticFluxDensity , cdt:mass , cdt:power , cdt:pressure , cdt:radiationDoseAbsorbed , cdt:radiationDoseEffective , cdt:radioactivity , cdt:solidAngle , cdt:speed , cdt:temperature , cdt:time , cdt:volume
RDF Datatype with IRI: https://w3id.org/cdt/ucumunit
Definition | UCUM Unit Datatype - Datatype to encode measurement units in a simple literal. |
---|---|
Lexical space | Any unit expression constructed using The Unified Code for Units of Measure code system. |
Value space | The value space is the underlying set of the algebra of units as defined in Section 3 of [UCUM]. |
Lexical-to-value mapping | Maps UCUM unit expressions to a unit according to Section 3 of [UCUM]. |
Examples |
For example, all literals below are well formed, and share the same value.
|
RDF Datatype with IRI: https://w3id.org/cdt/ucum
Definition | UCUM Datatype - Datatype to encode measurements in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a unit expression constructed using The Unified Code for Units of Measure code system. |
Value space | The set of pairs (v, u) such that v is a real number and u is any unit with magnitude 1 regarding the base units of Section 4.2 of [UCUM]. |
Lexical-to-value mapping | The first part of the lexical form defines a number v = m × 10e where m is represented by the mandatory xsd:decimal and e is represented by the optional xsd:integer , or equal to 0 if omitted. The second part of the lexical form defines a unit u = r·b where r is the magnitude of u regarding the base units of Section 4.2 of [UCUM]. The lexical-to-value mapping maps the lexical form to the pair (v × r, b). |
Examples |
Check out the playground For example, all literals below are well formed, test them online and share the same value.
|
RDF Datatype with IRI: https://w3id.org/cdt/acceleration
Definition | acceleration Datatype - Datatype to encode measurement of quantity kind acceleration in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an acceleration unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of acceleration as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a acceleration UCUM unit expression to their corresponding acceleration measures according to the International Systems of Quantities. |
Examples |
For example, all acceleration literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/amountOfSubstance
Definition | amountOfSubstance Datatype - Datatype to encode measurement of quantity kind amountOfSubstance in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an amountOfSubstance unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of amountOfSubstance as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a amountOfSubstance UCUM unit expression to their corresponding amountOfSubstance measures according to the International Systems of Quantities. |
Examples |
For example, the amountOfSubstance literal below is well formed.
|
RDF Datatype with IRI: https://w3id.org/cdt/angle
Definition | angle Datatype - Datatype to encode measurement of quantity kind angle in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an angle unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of angle as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a angle UCUM unit expression to their corresponding angle measures according to the International Systems of Quantities. |
Examples |
For example, all angle literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/area
Definition | area Datatype - Datatype to encode measurement of quantity kind area in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an area unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of area as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a area UCUM unit expression to their corresponding area measures according to the International Systems of Quantities. |
Examples |
For example, all area literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/catalyticActivity
Definition | catalyticActivity Datatype - Datatype to encode measurement of quantity kind catalyticActivity in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a catalyticActivity unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of catalyticActivity as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a catalyticActivity UCUM unit expression to their corresponding catalyticActivity measures according to the International Systems of Quantities. |
Examples |
For example, all catalyticActivity literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/dimensionless
Definition | dimensionless Datatype - Datatype to encode measurement of quantity kind dimensionless in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a dimensionless unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of dimensionless as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a dimensionless UCUM unit expression to their corresponding dimensionless measures according to the International Systems of Quantities. |
Examples |
For example, all dimensionless literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricCapacitance
Definition | electricCapacitance Datatype - Datatype to encode measurement of quantity kind electricCapacitance in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricCapacitance unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricCapacitance as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricCapacitance UCUM unit expression to their corresponding electricCapacitance measures according to the International Systems of Quantities. |
Examples |
For example, all electricCapacitance literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricCharge
Definition | electricCharge Datatype - Datatype to encode measurement of quantity kind electricCharge in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricCharge unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricCharge as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricCharge UCUM unit expression to their corresponding electricCharge measures according to the International Systems of Quantities. |
Examples |
For example, all electricCharge literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricConductance
Definition | electricConductance Datatype - Datatype to encode measurement of quantity kind electricConductance in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricConductance unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricConductance as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricConductance UCUM unit expression to their corresponding electricConductance measures according to the International Systems of Quantities. |
Examples |
For example, all electricConductance literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricCurrent
Definition | electricCurrent Datatype - Datatype to encode measurement of quantity kind electricCurrent in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricCurrent unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricCurrent as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricCurrent UCUM unit expression to their corresponding electricCurrent measures according to the International Systems of Quantities. |
Examples |
For example, all electricCurrent literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricInductance
Definition | electricInductance Datatype - Datatype to encode measurement of quantity kind electricInductance in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricInductance unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricInductance as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricInductance UCUM unit expression to their corresponding electricInductance measures according to the International Systems of Quantities. |
Examples |
For example, all electricInductance literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricPotential
Definition | electricPotential Datatype - Datatype to encode measurement of quantity kind electricPotential in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricPotential unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricPotential as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricPotential UCUM unit expression to their corresponding electricPotential measures according to the International Systems of Quantities. |
Examples |
For example, all electricPotential literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/electricResistance
Definition | electricResistance Datatype - Datatype to encode measurement of quantity kind electricResistance in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an electricResistance unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of electricResistance as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a electricResistance UCUM unit expression to their corresponding electricResistance measures according to the International Systems of Quantities. |
Examples |
For example, all electricResistance literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/energy
Definition | energy Datatype - Datatype to encode measurement of quantity kind energy in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an energy unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of energy as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a energy UCUM unit expression to their corresponding energy measures according to the International Systems of Quantities. |
Examples |
For example, all energy literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/force
Definition | force Datatype - Datatype to encode measurement of quantity kind force in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a force unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of force as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a force UCUM unit expression to their corresponding force measures according to the International Systems of Quantities. |
Examples |
For example, all force literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/frequency
Definition | frequency Datatype - Datatype to encode measurement of quantity kind frequency in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a frequency unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of frequency as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a frequency UCUM unit expression to their corresponding frequency measures according to the International Systems of Quantities. |
Examples |
For example, all frequency literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/illuminance
Definition | illuminance Datatype - Datatype to encode measurement of quantity kind illuminance in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and an illuminance unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of illuminance as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a illuminance UCUM unit expression to their corresponding illuminance measures according to the International Systems of Quantities. |
Examples |
For example, all illuminance literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/length
Definition | length Datatype - Datatype to encode measurement of quantity kind length in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a length unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of length as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a length UCUM unit expression to their corresponding length measures according to the International Systems of Quantities. |
Examples |
For example, all length literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/luminousFlux
Definition | luminousFlux Datatype - Datatype to encode measurement of quantity kind luminousFlux in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a luminousFlux unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of luminousFlux as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a luminousFlux UCUM unit expression to their corresponding luminousFlux measures according to the International Systems of Quantities. |
Examples |
For example, all luminousFlux literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/luminousIntensity
Definition | luminousIntensity Datatype - Datatype to encode measurement of quantity kind luminousIntensity in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a luminousIntensity unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of luminousIntensity as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a luminousIntensity UCUM unit expression to their corresponding luminousIntensity measures according to the International Systems of Quantities. |
Examples |
For example, all luminousIntensity literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/magneticFlux
Definition | magneticFlux Datatype - Datatype to encode measurement of quantity kind magneticFlux in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a magneticFlux unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of magneticFlux as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a magneticFlux UCUM unit expression to their corresponding magneticFlux measures according to the International Systems of Quantities. |
Examples |
For example, all magneticFlux literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/magneticFluxDensity
Definition | magneticFluxDensity Datatype - Datatype to encode measurement of quantity kind magneticFluxDensity in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a magneticFluxDensity unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of magneticFluxDensity as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a magneticFluxDensity UCUM unit expression to their corresponding magneticFluxDensity measures according to the International Systems of Quantities. |
Examples |
For example, all magneticFluxDensity literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/mass
Definition | mass Datatype - Datatype to encode measurement of quantity kind mass in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a mass unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of mass as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a mass UCUM unit expression to their corresponding mass measures according to the International Systems of Quantities. |
Examples |
For example, all mass literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/power
Definition | power Datatype - Datatype to encode measurement of quantity kind power in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a power unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of power as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a power UCUM unit expression to their corresponding power measures according to the International Systems of Quantities. |
Examples |
For example, all power literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/pressure
Definition | pressure Datatype - Datatype to encode measurement of quantity kind pressure in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a pressure unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of pressure as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a pressure UCUM unit expression to their corresponding pressure measures according to the International Systems of Quantities. |
Examples |
For example, all pressure literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/radiationDoseAbsorbed
Definition | radiationDoseAbsorbed Datatype - Datatype to encode measurement of quantity kind radiationDoseAbsorbed in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a radiationDoseAbsorbed unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of radiationDoseAbsorbed as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a radiationDoseAbsorbed UCUM unit expression to their corresponding radiationDoseAbsorbed measures according to the International Systems of Quantities. |
Examples |
For example, all radiationDoseAbsorbed literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/radiationDoseEffective
Definition | radiationDoseEffective Datatype - Datatype to encode measurement of quantity kind radiationDoseEffective in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a radiationDoseEffective unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of radiationDoseEffective as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a radiationDoseEffective UCUM unit expression to their corresponding radiationDoseEffective measures according to the International Systems of Quantities. |
Examples |
For example, all radiationDoseEffective literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/radioactivity
Definition | radioactivity Datatype - Datatype to encode measurement of quantity kind radioactivity in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a radioactivity unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of radioactivity as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a radioactivity UCUM unit expression to their corresponding radioactivity measures according to the International Systems of Quantities. |
Examples |
For example, all radioactivity literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/solidAngle
Definition | solidAngle Datatype - Datatype to encode measurement of quantity kind solidAngle in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a solidAngle unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of solidAngle as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a solidAngle UCUM unit expression to their corresponding solidAngle measures according to the International Systems of Quantities. |
Examples |
For example, all solidAngle literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/speed
Definition | speed Datatype - Datatype to encode measurement of quantity kind speed in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a speed unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of speed as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a speed UCUM unit expression to their corresponding speed measures according to the International Systems of Quantities. |
Examples |
For example, all speed literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/temperature
Definition | temperature Datatype - Datatype to encode measurement of quantity kind temperature in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a temperature unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of temperature as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a temperature UCUM unit expression to their corresponding temperature measures according to the International Systems of Quantities. |
Examples |
For example, all temperature literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/time
Definition | time Datatype - Datatype to encode measurement of quantity kind time in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a time unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of time as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a time UCUM unit expression to their corresponding time measures according to the International Systems of Quantities. |
Examples |
For example, all time literals below are well formed, test them online.
|
RDF Datatype with IRI: https://w3id.org/cdt/volume
Definition | volume Datatype - Datatype to encode measurement of quantity kind volume in a simple literal. |
---|---|
Lexical space | Concatenation of the lexical form of an xsd:decimal , optionally followed by e or E and the lexical form of an xsd:integer , at least one space, and a volume unit expression constructed using The Unified Code for Units of Measure code system |
Value space Includes | Set of volume as defined by the International Systems of Quantities. |
Lexical-to-value mapping | Maps lexical forms with a volume UCUM unit expression to their corresponding volume measures according to the International Systems of Quantities. |
Examples |
For example, all volume literals below are well formed, test them online.
|
See https://github.com/OpenSensingCity/jena-ucum
Features
xsd:int
, xsd:decimal
, xsd:float
, xsd:double
)arg1
, arg2
) to check if two measurement literals are commensurable (returns a xsd:boolean
).