83 lines
3.9 KiB
JSON
83 lines
3.9 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "schema:QuantitativeValue",
|
|
"title": "QuantitativeValue",
|
|
"description": "A point value or interval for product characteristics and other purposes.",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"description": "Structured values are used when the value of a property has a more complex structure than simply being a textual value or a reference to another thing.",
|
|
"$ref": "schema:StructuredValue"
|
|
}
|
|
],
|
|
"properties": {
|
|
"additionalProperty": {
|
|
"description": "A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.\\n\\nNote: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism.\n",
|
|
"oneOf": [
|
|
{ "$ref": "schema:PropertyValue" },
|
|
{ "type": "array", "items": { "$ref": "schema:PropertyValue" } }
|
|
]
|
|
},
|
|
"maxValue": {
|
|
"description": "The upper value of some characteristic or property.",
|
|
"type": "number"
|
|
},
|
|
"minValue": {
|
|
"description": "The lower value of some characteristic or property.",
|
|
"type": "number"
|
|
},
|
|
"unitCode": {
|
|
"description": "The unit of measurement given using the UN/CEFACT Common Code (3 characters) or a URL. Other codes than the UN/CEFACT Common Code may be used with a prefix followed by a colon.",
|
|
"anyOf": [{ "type": "string", "format": "uri" }, { "type": "string" }]
|
|
},
|
|
"unitText": {
|
|
"description": "A string or text indicating the unit of measurement. Useful if you cannot provide a standard unit code for\nunitCode.",
|
|
"oneOf": [
|
|
{ "type": "string" },
|
|
{ "type": "array", "items": { "type": "string" } }
|
|
]
|
|
},
|
|
"value": {
|
|
"description": "The value of a [[QuantitativeValue]] (including [[Observation]]) or property value node.\\n\\n* For [[QuantitativeValue]] and [[MonetaryAmount]], the recommended type for values is 'Number'.\\n* For [[PropertyValue]], it can be 'Text', 'Number', 'Boolean', or 'StructuredValue'.\\n* Use values from 0123456789 (Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather than superficially similar Unicode symbols.\\n* Use '.' (Unicode 'FULL STOP' (U+002E)) rather than ',' to indicate a decimal point. Avoid using these symbols as a readability separator.",
|
|
"anyOf": [
|
|
{ "type": "boolean" },
|
|
{ "type": "number" },
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:StructuredValue" }
|
|
]
|
|
},
|
|
"valueReference": {
|
|
"description": "A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.",
|
|
"oneOf": [
|
|
{
|
|
"anyOf": [
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:DefinedTerm" },
|
|
{ "$ref": "schema:Enumeration" },
|
|
{ "$ref": "schema:MeasurementTypeEnumeration" },
|
|
{ "$ref": "schema:PropertyValue" },
|
|
{ "$ref": "schema:QualitativeValue" },
|
|
{ "$ref": "schema:QuantitativeValue" },
|
|
{ "$ref": "schema:StructuredValue" }
|
|
]
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:DefinedTerm" },
|
|
{ "$ref": "schema:Enumeration" },
|
|
{ "$ref": "schema:MeasurementTypeEnumeration" },
|
|
{ "$ref": "schema:PropertyValue" },
|
|
{ "$ref": "schema:QualitativeValue" },
|
|
{ "$ref": "schema:QuantitativeValue" },
|
|
{ "$ref": "schema:StructuredValue" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|