Annotation Examples - swe574-spring23/SWE574 GitHub Wiki

Image annotation example. { "@context": "http://www.w3.org/ns/anno.jsonld", "id": "http://example.org/annotations/1", "type": "Annotation", "motivation": "commenting", "body": [ { "type": "TextualBody", "value": "Jack" } ], "target": { "id": "http://example.org/image.jpg", "type": "Image", "selector": [ { "type": "FragmentSelector", "conformsTo": "http://www.w3.org/TR/media-frags/", "value": "xywh=100,100,200,200" } ] } } In this example, we have an annotation with an id, a type, a motivation, a body, and a target. The body contains the comment about the image part, and the target identifies the image and the specific part of the image that the annotation is referring to, using the Media Fragments URI syntax. The selector specifies the region of the image that the annotation is associated with.


Below is a text annotation for the second "Belgrade" text in the sentence "Belgrade what a good place Belgrade" { "@context": "http://www.w3.org/ns/anno.jsonld", "id": "http://example.com/annotations/1", "type": "Annotation", "created": "2022-05-07T12:30:00Z", "creator": { "id": "http://example.com/users/1", "type": "Person", "name": "John Smith" }, "body": { "type": "TextualBody", "value": "my lovely city", "purpose": "commenting" }, "target": { "source": "Belgrade what a good place Belgrade", "selector": { "type": "TextPositionSelector", "start": 23, "end": 31, "context": "Belgrade what a good place Belgrade" } } }