Skip to content

Commit 6fe43b8

Browse files
authored
Merge pull request #194 from markpbaggett/w3c-web-annotations
Init changes for Web Annotation support.
2 parents c8763cf + be2948a commit 6fe43b8

File tree

3 files changed

+404
-8
lines changed

3 files changed

+404
-8
lines changed

fixtures/3/annotation_full.json

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"@context": "http://iiif.io/api/presentation/3/context.json",
3+
"id": "https://example.org/iiif/book1/annopage/p1",
4+
"type": "AnnotationPage",
5+
"items": [
6+
{
7+
"id": "http://example.org/anno38",
8+
"type": "Annotation",
9+
"motivation": "commenting",
10+
"creator": {
11+
"id": "http://example.org/user1",
12+
"type": "Person",
13+
"name": "A. Person",
14+
"nickname": "user1"
15+
},
16+
"created": "2015-10-13T13:00:00Z",
17+
"generator": {
18+
"id": "http://example.org/client1",
19+
"type": "Software",
20+
"name": "Code v2.1",
21+
"homepage": "http://example.org/homepage1"
22+
},
23+
"generated": "2015-10-14T15:13:28Z",
24+
"stylesheet": {
25+
"id": "http://example.org/stylesheet1",
26+
"type": "CssStylesheet"
27+
},
28+
"body": [
29+
{
30+
"type": "TextualBody",
31+
"purpose": "tagging",
32+
"value": "love"
33+
},
34+
{
35+
"type": "Choice",
36+
"items": [
37+
{
38+
"type": "TextualBody",
39+
"purpose": "describing",
40+
"value": "I really love this particular bit of text in this XML. No really.",
41+
"format": "text/plain",
42+
"language": "en",
43+
"creator": "http://example.org/user1"
44+
},
45+
{
46+
"type": "SpecificResource",
47+
"purpose": "describing",
48+
"source": {
49+
"id": "http://example.org/comment1",
50+
"type": "Audio",
51+
"format": "audio/mpeg",
52+
"language": "de",
53+
"creator": {
54+
"id": "http://example.org/user2",
55+
"type": "Person"
56+
}
57+
}
58+
}
59+
]
60+
}
61+
],
62+
"target": {
63+
"type": "SpecificResource",
64+
"styleClass": "mystyle",
65+
"source": "http://example.com/document1",
66+
"state": [
67+
{
68+
"type": "HttpRequestState",
69+
"value": "Accept: application/xml",
70+
"refinedBy": {
71+
"type": "TimeState",
72+
"sourceDate": "2015-09-25T12:00:00Z"
73+
}
74+
}
75+
],
76+
"selector": {
77+
"type": "FragmentSelector",
78+
"value": "xpointer(/doc/body/section[2]/para[1])",
79+
"refinedBy": {
80+
"type": "TextPositionSelector",
81+
"start": 6,
82+
"end": 27
83+
}
84+
}
85+
}
86+
}
87+
]
88+
}

0 commit comments

Comments
 (0)