Update IIIF annotation framework authored by David Rouquet's avatar David Rouquet
......@@ -28,8 +28,8 @@ A manifest can contain a list of *AnnotationPages* that contain lists of annotat
"id": "http://localhost:8080/data/demo-content/demo/canvas/1/annotation/1",
"type": "AnnotationPage",
"items": [
{ANNOTATION BLOCK 1.1},
{ANNOTATION BLOCK 1.2},
{ANNOTATION ITEM 1.1},
{ANNOTATION ITEM 1.2},
etc.
]
},
......@@ -37,8 +37,8 @@ A manifest can contain a list of *AnnotationPages* that contain lists of annotat
"id": "http://localhost:8080/data/demo-content/demo/canvas/1/annotation/2",
"type": "AnnotationPage",
"items": [
{ANNOTATION BLOCK 2.1},
{ANNOTATION BLOCK 2.2},
{ANNOTATION ITEM 2.1},
{ANNOTATION ITEM 2.2},
]
},
{
......@@ -49,6 +49,39 @@ A manifest can contain a list of *AnnotationPages* that contain lists of annotat
### Content
The content of an annotation item is typically one of the followings, depending of its body type :
```
{
"id": "http://localhost:8080/data/demo-content/Hakanai/canvas/&/annotation/1/1",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "fr",
"value": "<a href=\"http://am-cb.net/docs/AMCB-HKN-FicheTech.pdf\" target=\"_blank\">Fiche technique</a>"
},
"target": "http://localhost:8080/data/demo-content/Hakanai/canvas/1"
}
```
or
```
{
"id": "http://localhost:8080/data/demo-content/Hakanai/canvas/&/annotation/5/1",
"type": "Annotation",
"motivation": "commenting",
"body": {
"id": "http://localhost:8080/data/demo-content/Hakanai/media/02_HKN-couv.jpg",
"type": "Image",
"format": "image/jpg",
"value": "<a href=\"https://www.am-cb.net/docs/AMCB-HKN-Dossier.pdf\" target=\"_blank\">CARNET : Couverture</a>"
},
"target": "http://localhost:8080/data/demo-content/Hakanai/canvas/1#xywh=1600,50,301,400&t=5,10"
}
```
#### Id
#### Motivation comment
......@@ -202,10 +235,14 @@ A manifest can contain a list of *AnnotationPages* that contain lists of annotat
## With an annotation server
In that case, the manifest does not contain any trace of the annotations. It is the annotation server that targets the manifest.
[TODO]
## Converting content from an annotation server to the manifest
A function to incorporate annotations from an annotation server to a manifest could be useful for content portability.
# "Methods" attached to an annotation
......
......