Skip to content

Commit 6291086

Browse files
author
Rob Sanderson
committed
Update model.md
1 parent b435833 commit 6291086

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

source/presentation/4.0/model.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,26 +2737,22 @@ The `value` property is used in several situations to convey a value of a resour
27372737

27382738
In the `metadata` and `requiredStatement` properties, the `value` property is used to record the text of the metadata field or statement. The value of the property in this case is a [language map](#language-of-property-values) represented as a JSON object, as previously described.
27392739

2740-
Many selector classes use `value` to convey a string representation of the selection definition, such as `FragmentSelector` and `WktSelector`. The `TextualBody`
2740+
Many selector classes use `value` to convey a string representation of the selection definition, such as `FragmentSelector` and `WktSelector`. The `TextualBody` similarly uses `value` to convey the string of the body of an Annotation. In these cases the value of `value` _MUST_ be a string.
27412741

27422742

2743+
Language Map `value`:
2744+
{% include api/code_header.html %}
2745+
```json-doc
2746+
{"value": { "en": [ "Example Description" ]}}
2747+
```
27432748

2744-
### value (TextualBody)
2745-
2746-
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.
2747-
2748-
```json
2749-
{
2750-
"body": {
2751-
"id": "https://example.org/iiif/presentation/examples/manifest-with-containers/bodies/koto-body",
2752-
"type": "TextualBody",
2753-
"value": "Koto with a cover being carried",
2754-
"language": "en",
2755-
"format": "text/plain"
2756-
}
2757-
}
2749+
Selector or TextualBody `value`:
2750+
{% include api/code_header.html %}
2751+
```json-doc
2752+
{ "value": "Example Textual Body" }
27582753
```
27592754

2755+
27602756
### via
27612757

27622758
The `via` property of a resource _MAY_ be used to indicate one or more URIs which are the chain of sources from which the current resource was obtained. Each URI in the `via` list _MUST_ be different from the URI in `id`, but _MAY_ be the same as the URI in `canonical` if it is present. Recording `via` allows servers to provide the provenance chain of the resource, regardless of how many copy operations have occurred in the past.

0 commit comments

Comments
 (0)