Changes between Version 3 and Version 4 of json-annotation-format


Ignore:
Timestamp:
Nov 22, 2012, 1:43:58 PM (11 years ago)
Author:
casties
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • json-annotation-format

    v3 v4  
    44The [[http://en.wikipedia.org/wiki/JSON|JSON]] format for annotations is based on the [[https://github.com/okfn/annotator/wiki/Storage|Annotator Store API]].
    55
    6 == Image areas ==
     6== Annotation ==
     7
     8An annotation is an object that links a text (the annotation body) to a specific part (the selection) of a resource (the annotation target).
     9
     10The JSON representation of an annotation has a few required elements while additional elements are added by optional plugins.
     11
     12id:: an identifier for the annotation, required for modifying and deleting annotations
     13test:: the annotation body, required ([[http://daringfireball.net/projects/markdown/syntax|Markdown syntax]] can be used with the Markdown plugin.
     14uri:: 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 ==
    741
    842Annotations of image areas have a "shapes" member, specifying a list of shapes on the image. The shape definitions are based on the [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]].