Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions source/presentation/4.0/example/uc08_3d_annotation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"@context": "http://iiif.io/api/presentation/4/context.json",
"id": "https://iiif.io/api/presentation/4.0/example/uc08_3d_annotation.json",
"type": "Manifest",
"label": { "en": ["2nd century BC Greek sculpture"] },
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
"type": "Scene",
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/pages/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/sculpture",
"type": "Annotation",
"motivation": ["painting"] ,
"label": {
"en": ["A 1st century Roman portrait bust."]
},
"body":
{
"id": "https://fixtures.iiif.io/3d/smk/venus.glb",
"type": "Model"
},
"target": {
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
"type": "Scene"
}
}
]
}
]
}
],
"annotations": [
{
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1/commenting-annotation-pages/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3",
"type": "Annotation",
"motivation": ["commenting"],
"body":
{
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3/comment1",
"type": "TextualBody",
"language": "en",
"format": "text/plain",
"value": "This sculpture embodies the Hellenistic synthesis of idealised form and expressive naturalism that emerged in the late Greek period.",
"position": {
"type": "SpecificResource",
"source": {
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
"type": "Scene"
},
"selector": [
{
"type": "PointSelector",
"x": 0.75,
"y": 1.5,
"z": 0.1
}
]
}
},
"target": {
"id": "https://iiif.io/api/presentation/4.0/example/uc08/scene/1",
"type": "Scene"
}
}
]
}
]
}
80 changes: 1 addition & 79 deletions source/presentation/4.0/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,85 +748,7 @@ A commenting annotation can also reference a Content Resource, such as a Model,

In some cases it is desirable to influence the client's positioning of the commenting annotation when rendered. This may be done to ensure that the annotation does not hide key visual elements or to ensure that the annotation itself is not obscured by resources painted in the Container, such as 3D models. In these cases, the [`position`][prezi-40-model-position] property may be used to define the position where a TextualBody should be rendered. The example shows a [`position`][prezi-40-model-position] that places the annotation at a specific coordinate within the Scene. The position is a [Specific Resource][prezi-40-model-SpecificResource] that requires a [`source`][prezi-40-model-source] and `selector`.

```jsonc
{
"@context": "http://iiif.io/api/presentation/4/context.json",
"id": "https://example.org/iiif/manifest/commenting/manifest/3",
"type": "Manifest",
"label": { "en": ["1st Century Roman portrait bust with comment"] },
"items": [
{
"id": "https://example.org/iiif/scene/commenting/scene3",
"type": "Scene",
"items": [
{
"id": "https://example.org/iiif/scene/commenting/scene3/painting-annotation-pages/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/iiif/scene/commenting/scene3/sculpture",
"type": "Annotation",
"motivation": ["painting"] ,
"label": {
"en": ["A 1st century Roman portrait bust."]
},
"body":
{
"id": "https://example.org/iiif/scene/commenting/models/portrait.gltf",
"type": "Model"
},
"target": {
"id": "https://example.org/iiif/scene/commenting/scene3",
"type": "Scene"
}
}
]
}
]
}
],
"annotations": [
{
"id": "https://example.org/iiif/scene/commenting/scene3/commenting-annotation-pages/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3",
"type": "Annotation",
"motivation": ["commenting"],
"body":
{
"id": "https://example.org/iiif/presentation/examples/commenting/anno/3/comment1",
"type": "TextualBody",
"language": "en",
"format": "text/plain",
"value": "This marble portrait exemplifies the veristic tradition that dominated Roman Republican portraiture and persisted into the early Imperial period.",
"position": {
"type": "SpecificResource",
"source": {
"id": "https://example.org/iiif/scene/commenting/scene3",
"type": "Scene"
},
"selector": [
{
"type": "PointSelector",
"x": 0.75,
"y": 1.5,
"z": 0.1
}
]
}
},
"target": {
"id": "https://example.org/iiif/scene/commenting/scene3",
"type": "Scene"
}
}
]
}
]
}
```
{% include code_example.html src="uc08_3d_annotation.json" %}

<!--
TODO: This is mostly copy-pasted from properties, is it needed here? Use in above example.
Expand Down
Loading