UNPKG

@cogic/annotorious

Version:

A JavaScript image annotation library

66 lines (65 loc) 1.76 kB
[ { "@context": "http://www.w3.org/ns/anno.jsonld", "id": "#a88b22d0-6106-4872-9435-c78b5e89fede", "type": "Annotation", "body": [{ "type": "TextualBody", "value": "It's Hallstatt in Upper Austria" }, { "type": "TextualBody", "purpose": "tagging", "value": "Hallstatt" }, { "type": "TextualBody", "purpose": "tagging", "value": "Upper Austria" }], "target": { "selector": [{ "type": "FragmentSelector", "conformsTo": "http://www.w3.org/TR/media-frags/", "value": "xywh=pixel:273,171,123,94" }] } }, { "@context": "http://www.w3.org/ns/anno.jsonld", "id": "#218d01ff-f077-4cc3-992d-1c81c426e51b", "type": "Annotation", "body": [{ "type": "TextualBody", "value": "Evangelische Pfarrkirche Hallstatt" }, { "type": "TextualBody", "purpose": "tagging", "value": "Church" }], "target": { "selector": [{ "type": "SvgSelector", "value": "<svg><polygon points='172,160 199,15 223,6 239,132 244,173 285,179 313,208 313,251 218,306 170,290 172,160'></polygon></svg>" }] } }, { "type": "Annotation", "body": [ { "type": "TextualBody", "value": "A point!", "purpose": "commenting" } ], "target": { "selector": { "type": "FragmentSelector", "conformsTo": "http://www.w3.org/TR/media-frags/", "value": "xywh=pixel:315,150,0,0" }, "renderedVia": { "name": "point" } }, "@context": "http://www.w3.org/ns/anno.jsonld", "id": "#9a4c10df-3c07-40c3-9108-672d1194bbf8" } ]