6 | | == Image areas == |
| 6 | == Annotation == |
| 7 | |
| 8 | An annotation is an object that links a text (the annotation body) to a specific part (the selection) of a resource (the annotation target). |
| 9 | |
| 10 | The JSON representation of an annotation has a few required elements while additional elements are added by optional plugins. |
| 11 | |
| 12 | id:: an identifier for the annotation, required for modifying and deleting annotations |
| 13 | test:: the annotation body, required ([[http://daringfireball.net/projects/markdown/syntax|Markdown syntax]] can be used with the Markdown plugin. |
| 14 | uri:: identifies the annotation target, i.e. the annotated page, required for retrieving annotations from the store. |
| 15 | |
| 16 | {{{ |
| 17 | { |
| 18 | "id": "aHR0cDovL2VudGl0aWVMTM1MzQ5ODc1OTE5Nw", |
| 19 | "text": "That would be [Charles Emmanuel](http://en.wikipedia.org/wiki/Charles_Emmanuel_I,_Duke_of_Savoy)", |
| 20 | "uri": "http://echo.mpiwg-berlin.mpg.de/documents/experimental/digilib-test/benedetti-1585?pn=5", |
| 21 | "ranges": [{ |
| 22 | "start":"/div[1]/div[2]/p[4]/span[1]", |
| 23 | "startOffset":"16", |
| 24 | "end":"/div[1]/div[2]/p[4]/span[1]", |
| 25 | "endOffset":"33"}], |
| 26 | "resource": "http://echo.mpiwg-berlin.mpg.de/documents/experimental/digilib-test/benedetti-1585", |
| 27 | "user": { |
| 28 | "id":"casties", |
| 29 | "name":"Robert Casties", |
| 30 | "uri":"http://entities.mpiwg-berlin.mpg.de/persons/casties"}, |
| 31 | "permissions": { |
| 32 | "update":["casties"], |
| 33 | "admin":["casties"], |
| 34 | "delete":["casties"], |
| 35 | "read":[]} |
| 36 | } |
| 37 | }}} |
| 38 | |
| 39 | |
| 40 | == Image area == |