Changes between Version 10 and Version 11 of json-annotation-format
- Timestamp:
- Feb 5, 2014, 1:03:29 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
json-annotation-format
v10 v11 14 14 uri:: identifies the annotation target, i.e. the annotated page, required for retrieving annotations from the store. 15 15 ranges:: the selected text (see below) that was annotated, required for text. 16 shapes:: the selected image region (see below) that was annotated, required for images.16 regions:: the selected image region (see below) that was annotated, required for images. 17 17 resource:: identifies the broader annotation target, e.g. the whole book if only one page was annotated as '''uri''', optional, provided by MPIWG viewer. 18 18 user:: user that created the annotation, optional, provided by the Annotator Permissions plugin. … … 46 46 == Image selection == 47 47 48 Annotations of images have a " shapes" member, specifying a list of shapes on the image. The shape definitions are based onthe [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]].48 Annotations of images have a "regions" member, specifying a list of regions on the image. The region definitions are based on the [[http://geojson.org/geojson-spec.html|GeoJSON format]] and the [[http://www.w3.org/TR/SVG/shapes.html|SVG shape definitions]]. 49 49 50 The possible shapeforms are50 The possible region forms are 51 51 * point 52 * line 52 53 * rectangle 53 54 * polygon (not yet implemented) … … 60 61 Example of an image area specification: 61 62 {{{ 62 "shapes" : [{ 63 "type" : "rectangle", 64 "geometry" : { 65 "units" : "fraction", 66 "x" : 0.0123, 67 "y": 0.345, 68 "width" : 0.567, 69 "height": 0.389 70 } 71 }] 72 }}} 73 74 '''New idea, inspired by GeoJSON (http://geojson.org/geojson-spec.html)''' 75 76 {{{ 77 "shapes" : [{ 63 "regions" : [{ 78 64 "geometry" : { 79 65 "type" : "Rectangle",