Skip to content

Commit a72ab3a

Browse files
authored
Merge pull request #2379 from IIIF/model-value
udpated the values section of Model document
2 parents 7d72d3b + 87565a1 commit a72ab3a

File tree

1 file changed

+31
-8
lines changed

1 file changed

+31
-8
lines changed

source/presentation/4.0/model.md

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,26 +2663,49 @@ FIXME: possible values are 'm' and 's' and 'relative'. Is relative always 0-1.0
26632663

26642664
### value
26652665

2666-
within metadata:
2666+
the `value` property is used as a language mapped key value pair where the langauge key string is always an array.
26672667

2668-
{label: value: {"en": ["foo"]}}
2668+
```json
2669+
{
2670+
"label":
2671+
"value": {
2672+
"en": ["foo"]
2673+
}
2674+
}
2675+
```
2676+
TODO: if we are happy with the new value property names we need to update references in the rest of the Model doc and Index doc
26692677

2670-
### value (UnitValue)
2678+
### quantity
26712679

2672-
The `value` property of a UnitValue represents the numerical component of a quantity.
2680+
The `quantity` property of a UnitValue represents the numerical component of a `UnitValue`.
26732681

26742682
The value _MUST_ be a floating point number.
26752683

26762684
* A UnitValue _MUST_ have the `value` property.
26772685

2678-
`"value": 0.1234123`
2686+
`"quantity": 0.1234123`
2687+
2688+
### wktLiteral
26792689

2680-
FIXME: use scoped context for UnitValue to change the meaning of `value`
2690+
the `wktLiteral` property of a WktSelector is a string for representing space in vector geometry. a `wktLiteral` of a WktSelector _MUST_ be a valid structured Well-Known Text (WKT) string.
26812691

2682-
### value (WktSelector, TextualBody)
2692+
`"wktLiteral": "POLYGON Z ((0 1 0, 0 0 0, 1 0 0, 1 1 0))"`
26832693

2684-
FIXME: string value!
2694+
### value (TextualBody)
26852695

2696+
a `value` of a TextualBody follows the Web Annotation data model and _MUST NOT_ be a language mapped string. Instead the string value and the language of the string are represeted by separate properties.
2697+
2698+
```json
2699+
{
2700+
"body": {
2701+
"id": "https://example.org/iiif/presentation/examples/manifest-with-containers/bodies/koto-body",
2702+
"type": "TextualBody",
2703+
"value": "Koto with a cover being carried",
2704+
"language": "en",
2705+
"format": "text/plain"
2706+
}
2707+
}
2708+
```
26862709

26872710
### via
26882711

0 commit comments

Comments
 (0)