-
Notifications
You must be signed in to change notification settings - Fork 1
Annotation Data Model
Cemal Burak Aygün edited this page Dec 31, 2018
·
2 revisions
This page contains the customization of The W3C Web Annotation Data Model for HiStory.
{
"@context": "http://www.w3.org/ns/anno.jsonld",
"type": "Annotation",
"id": ...
"creator": ...
"generated": ...
"body": {
"type": ...
"id" (or "value"): ...
}
"target": {
"source": ...
"selector": ...
}
}
The identity of the Annotation, e.g."https://history-backend.com/api/v1/annotations/2"
A String of URL that identifies the creator of the annotation, e.g. "http://example.org/user1"
A String of time at which the annotation was generated.
On HiStory, each Annotation can have exactly one body. body can be text
, image
, video
or sound
.
{
"type": "TextualBody",
"value": <A String, e.g. "This this my first Annotation!">
}
{
"type": "Image",
"id": <A String of URL, e.g. "http://somesite.com/someimage.png">
}
{
"type": "Video",
"id": <A String of URL, e.g. "http://somesite.com/somevideo.mp4">
}
{
"type": "Sound",
"id": <A String of URL, e.g. "http://somesite.com/somesound.mp3">
}
On HiStory, each Annotation can have exactly one target. Targets are of type Specific Resource. Selectors are supported.
{
"source": <A String of URL, e.g. "http://history-backend.herokuapp.com/api/v1/memory_posts/5">,
"selector": <one of the Target Selectors stated below, not required>
}
On HiStory, only Text Quote Selector and Fragment Selector are supported for target
s.
{
"type": "TextQuoteSelector",
"exact": <A String of selected text, e.g. "Üsküdar">,
"prefix": <A String of text that comes immediately before the words contained in 'exact', e.g. "I went to ">,
"suffix": <A String of text that comes immediately after the words contained in 'exact', e.g. " with my friend">
}
Only fragments for Images are supported as stated on http://www.w3.org/TR/media-frags/.
{
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=<number>,<number>,<number>,<number>"
}
🏠 Home
- Serdar Ada
- Ramazan Arslan
- Cemal Burak Aygün
- Faik Emre Derin
- Dilruba Reyyan Kılıç (Communicator)
- Enes Koşar
- Muhammed Fatih Balın
- Bekir Burak Aslan
- Requirements
- Project Plan
- User Stories
- User Scenarios (Mock-ups)
- Diagrams
- Test Cases
- Twitter API
- Milestone Report
- Meeting #1 (09.02.18)
- Meeting #2 (12.02.18)
-
Meeting #3 (19.02.18)
- Meeting #3.1 (24.02.18)
-
Meeting #4 (26.02.18)
- Meeting #4.1 (02.03.18)
- Meeting #5 (05.03.18)
-
Meeting #6 (13.03.18)
- Meeting #6.1 (15.03.18)
- Meeting #7 (19.03.18)
- Meeting #8 (30.03.18)
- Meeting #9 (04.04.18)
- Meeting 10 (25.09.18)
- Meeting 11 (02.10.18)
-
Meeting 12 (09.10.18)
- Meeting 12.1 (11.10.18)
- Customer Meeting #1 (15.02.18)