triannon-client 0.1.0 → 0.2.0.pre.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env_example +1 -1
- data/.travis.yml +1 -2
- data/README.md +12 -3
- data/bin/test.sh +8 -9
- data/lib/triannon-client.rb +8 -3
- data/lib/triannon-client/triannon_client.rb +180 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trig_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trix_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/n3_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +4946 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +2565 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/trig_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/trix_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +2566 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/n3_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +2566 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +4088 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_accepting_JSON-LD_content.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_accepting_a_default_JSON-LD_content.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_using_a_default_JSON-LD_content.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trig_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trix_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/n3_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_optional_content_type_parameter.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_turtle_content_type_parameter.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/checks_the_annotation_ID.yml +2561 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/logs_exceptions.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/raises_an_argument_error_with_a_nil_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/raises_an_argument_error_with_an_empty_string_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/raises_an_argument_error_with_an_integer_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/returns_an_EMPTY_RDF_graph_for_a_500_server_response.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +3623 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml +4946 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_empty_string_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/requests_an_open_annotation_by_ID_accepting_a_default_JSON-LD_content.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_for_a_500_server_response.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +3328 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml +4946 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +2746 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +2746 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +4946 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +4946 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/deletes_an_open_annotation_that_exists.yml +2548 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/fails_to_delete_an_open_annotation_that_does_NOT_exist.yml +123 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_false_for_a_500_response_to_a_DELETE_request.yml +64 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_200_response_to_a_DELETE_request.yml +64 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_202_response_to_a_DELETE_request.yml +64 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_204_response_to_a_DELETE_request.yml +64 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +64 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +295 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +295 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +2795 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uri/returns_an_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uri/returns_an_RDF_URI_that_is_a_valid_URI.yml +2550 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +4898 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +2502 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +2502 -0
- data/spec/lib/triannon-client/triannon_client_spec.rb +502 -0
- data/spec/spec_helper.rb +12 -1
- data/triannon-client.gemspec +5 -2
- metadata +234 -7
- data/Gemfile.lock +0 -203
- data/lib/triannon-client/triannon-client.rb +0 -135
- data/spec/lib/triannon-client/triannon-client_spec.rb +0 -44
@@ -0,0 +1,295 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/annotations
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/ld+json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 302
|
19
|
+
message: 'Found '
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
Location:
|
28
|
+
- http://localhost:3000/search
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=utf-8
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
X-Request-Id:
|
34
|
+
- 32eb4779-4ad1-4add-a872-b49f6ab48c54
|
35
|
+
X-Runtime:
|
36
|
+
- '0.004080'
|
37
|
+
Server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
|
39
|
+
Date:
|
40
|
+
- Mon, 04 May 2015 17:52:11 GMT
|
41
|
+
Content-Length:
|
42
|
+
- '94'
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/search
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Accept:
|
58
|
+
- application/ld+json
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip, deflate
|
61
|
+
Cookie:
|
62
|
+
- ''
|
63
|
+
User-Agent:
|
64
|
+
- Ruby
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: 'OK '
|
69
|
+
headers:
|
70
|
+
X-Frame-Options:
|
71
|
+
- SAMEORIGIN
|
72
|
+
X-Xss-Protection:
|
73
|
+
- 1; mode=block
|
74
|
+
X-Content-Type-Options:
|
75
|
+
- nosniff
|
76
|
+
Content-Type:
|
77
|
+
- application/ld+json; charset=utf-8
|
78
|
+
Etag:
|
79
|
+
- W/"142b5b57e954e5889d787015364100f1"
|
80
|
+
Cache-Control:
|
81
|
+
- max-age=0, private, must-revalidate
|
82
|
+
X-Request-Id:
|
83
|
+
- c6e82963-b299-4c4d-877f-81d43f27614b
|
84
|
+
X-Runtime:
|
85
|
+
- '0.013985'
|
86
|
+
Server:
|
87
|
+
- WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
|
88
|
+
Date:
|
89
|
+
- Mon, 04 May 2015 17:52:11 GMT
|
90
|
+
Content-Length:
|
91
|
+
- '181'
|
92
|
+
Connection:
|
93
|
+
- Keep-Alive
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":0},"resources":[],"@id":"http://localhost:3000/search"}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
99
|
+
- request:
|
100
|
+
method: get
|
101
|
+
uri: http://iiif.io/api/presentation/2/context.json
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: ''
|
105
|
+
headers:
|
106
|
+
Accept:
|
107
|
+
- application/ld+json, application/json
|
108
|
+
Accept-Encoding:
|
109
|
+
- gzip, deflate
|
110
|
+
User-Agent:
|
111
|
+
- Ruby
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 200
|
115
|
+
message: OK
|
116
|
+
headers:
|
117
|
+
Date:
|
118
|
+
- Mon, 04 May 2015 17:54:38 GMT
|
119
|
+
Server:
|
120
|
+
- Apache/2.2.15 (Red Hat)
|
121
|
+
Last-Modified:
|
122
|
+
- Tue, 28 Apr 2015 19:46:55 GMT
|
123
|
+
Accept-Ranges:
|
124
|
+
- bytes
|
125
|
+
Content-Length:
|
126
|
+
- '4235'
|
127
|
+
Cache-Control:
|
128
|
+
- max-age=86400
|
129
|
+
Expires:
|
130
|
+
- Tue, 05 May 2015 17:54:38 GMT
|
131
|
+
Content-Type:
|
132
|
+
- application/ld+json
|
133
|
+
Access-Control-Allow-Origin:
|
134
|
+
- "*"
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
|
138
|
+
\ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
|
139
|
+
\ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
|
140
|
+
\ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
|
141
|
+
\ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
|
142
|
+
\ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
|
143
|
+
\ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
|
144
|
+
\ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
|
145
|
+
\ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
|
146
|
+
\ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
|
147
|
+
\ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
|
148
|
+
\ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
|
149
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
|
150
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
|
151
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
|
152
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
|
153
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
|
154
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
|
155
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
|
156
|
+
\ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
|
157
|
+
\"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
|
158
|
+
\"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
|
159
|
+
\ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
|
160
|
+
\ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
|
161
|
+
\"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
|
162
|
+
\"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
|
163
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
|
164
|
+
\ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
|
165
|
+
\ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
|
166
|
+
\ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
|
167
|
+
\"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
|
168
|
+
\ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
|
169
|
+
\ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
|
170
|
+
\ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
|
171
|
+
{\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
|
172
|
+
{\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
|
173
|
+
{\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
174
|
+
\ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
175
|
+
\ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
|
176
|
+
\ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
|
177
|
+
\"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
|
178
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
|
179
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
|
180
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
|
181
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
|
182
|
+
\"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
|
183
|
+
\"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
|
184
|
+
\"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
|
185
|
+
\ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
|
186
|
+
\ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
|
187
|
+
\ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
|
188
|
+
\ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
|
189
|
+
\ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
|
190
|
+
\"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
|
191
|
+
\ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
|
192
|
+
\ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
|
193
|
+
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
194
|
+
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
195
|
+
http_version:
|
196
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
197
|
+
- request:
|
198
|
+
method: get
|
199
|
+
uri: http://iiif.io/api/presentation/2/context.json
|
200
|
+
body:
|
201
|
+
encoding: US-ASCII
|
202
|
+
string: ''
|
203
|
+
headers:
|
204
|
+
Accept:
|
205
|
+
- application/ld+json, application/json
|
206
|
+
Accept-Encoding:
|
207
|
+
- gzip, deflate
|
208
|
+
User-Agent:
|
209
|
+
- Ruby
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 200
|
213
|
+
message: OK
|
214
|
+
headers:
|
215
|
+
Date:
|
216
|
+
- Mon, 04 May 2015 17:54:38 GMT
|
217
|
+
Server:
|
218
|
+
- Apache/2.2.15 (Red Hat)
|
219
|
+
Last-Modified:
|
220
|
+
- Tue, 28 Apr 2015 19:46:55 GMT
|
221
|
+
Accept-Ranges:
|
222
|
+
- bytes
|
223
|
+
Content-Length:
|
224
|
+
- '4235'
|
225
|
+
Cache-Control:
|
226
|
+
- max-age=86400
|
227
|
+
Expires:
|
228
|
+
- Tue, 05 May 2015 17:54:38 GMT
|
229
|
+
Content-Type:
|
230
|
+
- application/ld+json
|
231
|
+
Access-Control-Allow-Origin:
|
232
|
+
- "*"
|
233
|
+
body:
|
234
|
+
encoding: UTF-8
|
235
|
+
string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
|
236
|
+
\ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
|
237
|
+
\ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
|
238
|
+
\ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
|
239
|
+
\ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
|
240
|
+
\ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
|
241
|
+
\ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
|
242
|
+
\ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
|
243
|
+
\ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
|
244
|
+
\ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
|
245
|
+
\ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
|
246
|
+
\ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
|
247
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
|
248
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
|
249
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
|
250
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
|
251
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
|
252
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
|
253
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
|
254
|
+
\ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
|
255
|
+
\"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
|
256
|
+
\"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
|
257
|
+
\ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
|
258
|
+
\ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
|
259
|
+
\"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
|
260
|
+
\"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
|
261
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
|
262
|
+
\ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
|
263
|
+
\ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
|
264
|
+
\ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
|
265
|
+
\"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
|
266
|
+
\ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
|
267
|
+
\ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
|
268
|
+
\ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
|
269
|
+
{\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
|
270
|
+
{\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
|
271
|
+
{\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
272
|
+
\ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
273
|
+
\ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
|
274
|
+
\ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
|
275
|
+
\"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
|
276
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
|
277
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
|
278
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
|
279
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
|
280
|
+
\"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
|
281
|
+
\"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
|
282
|
+
\"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
|
283
|
+
\ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
|
284
|
+
\ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
|
285
|
+
\ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
|
286
|
+
\ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
|
287
|
+
\ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
|
288
|
+
\"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
|
289
|
+
\ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
|
290
|
+
\ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
|
291
|
+
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
292
|
+
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
293
|
+
http_version:
|
294
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
295
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,295 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/annotations
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/ld+json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 302
|
19
|
+
message: 'Found '
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
Location:
|
28
|
+
- http://localhost:3000/search
|
29
|
+
Content-Type:
|
30
|
+
- text/html; charset=utf-8
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
X-Request-Id:
|
34
|
+
- 0519f25b-e937-4489-b200-a85e5de8415c
|
35
|
+
X-Runtime:
|
36
|
+
- '0.002476'
|
37
|
+
Server:
|
38
|
+
- WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
|
39
|
+
Date:
|
40
|
+
- Mon, 04 May 2015 17:52:11 GMT
|
41
|
+
Content-Length:
|
42
|
+
- '94'
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
|
48
|
+
http_version:
|
49
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
50
|
+
- request:
|
51
|
+
method: get
|
52
|
+
uri: http://localhost:3000/search
|
53
|
+
body:
|
54
|
+
encoding: US-ASCII
|
55
|
+
string: ''
|
56
|
+
headers:
|
57
|
+
Accept:
|
58
|
+
- application/ld+json
|
59
|
+
Accept-Encoding:
|
60
|
+
- gzip, deflate
|
61
|
+
Cookie:
|
62
|
+
- ''
|
63
|
+
User-Agent:
|
64
|
+
- Ruby
|
65
|
+
response:
|
66
|
+
status:
|
67
|
+
code: 200
|
68
|
+
message: 'OK '
|
69
|
+
headers:
|
70
|
+
X-Frame-Options:
|
71
|
+
- SAMEORIGIN
|
72
|
+
X-Xss-Protection:
|
73
|
+
- 1; mode=block
|
74
|
+
X-Content-Type-Options:
|
75
|
+
- nosniff
|
76
|
+
Content-Type:
|
77
|
+
- application/ld+json; charset=utf-8
|
78
|
+
Etag:
|
79
|
+
- W/"142b5b57e954e5889d787015364100f1"
|
80
|
+
Cache-Control:
|
81
|
+
- max-age=0, private, must-revalidate
|
82
|
+
X-Request-Id:
|
83
|
+
- 2ff91c14-ebb0-4d2a-bea7-8c58e4e1885d
|
84
|
+
X-Runtime:
|
85
|
+
- '0.007865'
|
86
|
+
Server:
|
87
|
+
- WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
|
88
|
+
Date:
|
89
|
+
- Mon, 04 May 2015 17:52:11 GMT
|
90
|
+
Content-Length:
|
91
|
+
- '181'
|
92
|
+
Connection:
|
93
|
+
- Keep-Alive
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":0},"resources":[],"@id":"http://localhost:3000/search"}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
99
|
+
- request:
|
100
|
+
method: get
|
101
|
+
uri: http://iiif.io/api/presentation/2/context.json
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: ''
|
105
|
+
headers:
|
106
|
+
Accept:
|
107
|
+
- application/ld+json, application/json
|
108
|
+
Accept-Encoding:
|
109
|
+
- gzip, deflate
|
110
|
+
User-Agent:
|
111
|
+
- Ruby
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 200
|
115
|
+
message: OK
|
116
|
+
headers:
|
117
|
+
Date:
|
118
|
+
- Mon, 04 May 2015 17:54:39 GMT
|
119
|
+
Server:
|
120
|
+
- Apache/2.2.15 (Red Hat)
|
121
|
+
Last-Modified:
|
122
|
+
- Tue, 28 Apr 2015 19:46:55 GMT
|
123
|
+
Accept-Ranges:
|
124
|
+
- bytes
|
125
|
+
Content-Length:
|
126
|
+
- '4235'
|
127
|
+
Cache-Control:
|
128
|
+
- max-age=86400
|
129
|
+
Expires:
|
130
|
+
- Tue, 05 May 2015 17:54:39 GMT
|
131
|
+
Content-Type:
|
132
|
+
- application/ld+json
|
133
|
+
Access-Control-Allow-Origin:
|
134
|
+
- "*"
|
135
|
+
body:
|
136
|
+
encoding: UTF-8
|
137
|
+
string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
|
138
|
+
\ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
|
139
|
+
\ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
|
140
|
+
\ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
|
141
|
+
\ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
|
142
|
+
\ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
|
143
|
+
\ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
|
144
|
+
\ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
|
145
|
+
\ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
|
146
|
+
\ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
|
147
|
+
\ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
|
148
|
+
\ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
|
149
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
|
150
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
|
151
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
|
152
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
|
153
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
|
154
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
|
155
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
|
156
|
+
\ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
|
157
|
+
\"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
|
158
|
+
\"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
|
159
|
+
\ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
|
160
|
+
\ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
|
161
|
+
\"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
|
162
|
+
\"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
|
163
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
|
164
|
+
\ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
|
165
|
+
\ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
|
166
|
+
\ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
|
167
|
+
\"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
|
168
|
+
\ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
|
169
|
+
\ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
|
170
|
+
\ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
|
171
|
+
{\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
|
172
|
+
{\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
|
173
|
+
{\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
174
|
+
\ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
175
|
+
\ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
|
176
|
+
\ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
|
177
|
+
\"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
|
178
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
|
179
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
|
180
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
|
181
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
|
182
|
+
\"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
|
183
|
+
\"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
|
184
|
+
\"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
|
185
|
+
\ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
|
186
|
+
\ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
|
187
|
+
\ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
|
188
|
+
\ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
|
189
|
+
\ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
|
190
|
+
\"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
|
191
|
+
\ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
|
192
|
+
\ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
|
193
|
+
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
194
|
+
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
195
|
+
http_version:
|
196
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
197
|
+
- request:
|
198
|
+
method: get
|
199
|
+
uri: http://iiif.io/api/presentation/2/context.json
|
200
|
+
body:
|
201
|
+
encoding: US-ASCII
|
202
|
+
string: ''
|
203
|
+
headers:
|
204
|
+
Accept:
|
205
|
+
- application/ld+json, application/json
|
206
|
+
Accept-Encoding:
|
207
|
+
- gzip, deflate
|
208
|
+
User-Agent:
|
209
|
+
- Ruby
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 200
|
213
|
+
message: OK
|
214
|
+
headers:
|
215
|
+
Date:
|
216
|
+
- Mon, 04 May 2015 17:54:39 GMT
|
217
|
+
Server:
|
218
|
+
- Apache/2.2.15 (Red Hat)
|
219
|
+
Last-Modified:
|
220
|
+
- Tue, 28 Apr 2015 19:46:55 GMT
|
221
|
+
Accept-Ranges:
|
222
|
+
- bytes
|
223
|
+
Content-Length:
|
224
|
+
- '4235'
|
225
|
+
Cache-Control:
|
226
|
+
- max-age=86400
|
227
|
+
Expires:
|
228
|
+
- Tue, 05 May 2015 17:54:39 GMT
|
229
|
+
Content-Type:
|
230
|
+
- application/ld+json
|
231
|
+
Access-Control-Allow-Origin:
|
232
|
+
- "*"
|
233
|
+
body:
|
234
|
+
encoding: UTF-8
|
235
|
+
string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
|
236
|
+
\ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
|
237
|
+
\ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
|
238
|
+
\ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
|
239
|
+
\ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
|
240
|
+
\ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
|
241
|
+
\ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
|
242
|
+
\ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
|
243
|
+
\ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
|
244
|
+
\ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
|
245
|
+
\ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
|
246
|
+
\ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
|
247
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
|
248
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
|
249
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
|
250
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
|
251
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
|
252
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
|
253
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
|
254
|
+
\ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
|
255
|
+
\"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
|
256
|
+
\"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
|
257
|
+
\ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
|
258
|
+
\ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
|
259
|
+
\"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
|
260
|
+
\"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
|
261
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
|
262
|
+
\ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
|
263
|
+
\ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
|
264
|
+
\ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
|
265
|
+
\"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
|
266
|
+
\ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
|
267
|
+
\ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
|
268
|
+
\ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
|
269
|
+
{\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
|
270
|
+
{\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
|
271
|
+
{\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
272
|
+
\ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
273
|
+
\ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
|
274
|
+
\ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
|
275
|
+
\"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
|
276
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
|
277
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
|
278
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
|
279
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
|
280
|
+
\"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
|
281
|
+
\"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
|
282
|
+
\"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
|
283
|
+
\ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
|
284
|
+
\ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
|
285
|
+
\ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
|
286
|
+
\ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
|
287
|
+
\ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
|
288
|
+
\"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
|
289
|
+
\ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
|
290
|
+
\ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
|
291
|
+
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
292
|
+
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
293
|
+
http_version:
|
294
|
+
recorded_at: Mon, 04 May 2015 17:52:11 GMT
|
295
|
+
recorded_with: VCR 2.9.3
|