triannon-client 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/triannon-client/triannon_client.rb +14 -3
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +49 -61
- 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 +46 -46
- 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 +34 -34
- 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 +33 -33
- 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 +33 -33
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +26 -26
- 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 +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +26 -26
- 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 +26 -26
- 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 +26 -26
- 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 +99 -40
- 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 +46 -46
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +40 -40
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_204_response_to_a_DELETE_request.yml → does_not_log_exceptions_for_missing_annotations_404_responses_.yml} +10 -10
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_false_for_a_500_response_to_a_DELETE_request.yml → does_not_log_exceptions_for_missing_annotations_410_responses_.yml} +10 -10
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_202_response_to_a_DELETE_request.yml → logs_exceptions.yml} +9 -9
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_200_response_to_a_DELETE_request.yml → returns_FALSE_for_a_500_response_to_a_DELETE_request.yml} +11 -12
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +63 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +63 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +63 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +63 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +63 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{fails_to_delete_an_open_annotation_that_does_NOT_exist.yml → returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml} +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{deletes_an_open_annotation_that_exists.yml → returns_TRUE_when_deleting_an_open_annotation_that_exists.yml} +34 -34
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +14 -14
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +14 -14
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +42 -42
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +5601 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +5601 -0
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +34 -34
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_array_of_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +38 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +26 -26
- data/spec/lib/triannon-client/triannon_client_spec.rb +67 -26
- data/triannon-client.gemspec +1 -1
- metadata +28 -14
data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: delete
|
5
|
-
uri: http://localhost:3000/annotations/
|
5
|
+
uri: http://localhost:3000/annotations/checking_anno_id
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -29,25 +29,25 @@ http_interactions:
|
|
29
29
|
Cache-Control:
|
30
30
|
- no-cache
|
31
31
|
X-Request-Id:
|
32
|
-
-
|
32
|
+
- 64a23603-58e9-4698-95b6-f8155a4dac15
|
33
33
|
X-Runtime:
|
34
|
-
- '0.
|
34
|
+
- '0.040965'
|
35
35
|
Server:
|
36
36
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Mon, 18 May 2015 20:06:08 GMT
|
39
39
|
Content-Length:
|
40
|
-
- '
|
40
|
+
- '1446'
|
41
41
|
Connection:
|
42
42
|
- Keep-Alive
|
43
43
|
Set-Cookie:
|
44
44
|
- request_method=DELETE; path=/
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
|
-
string: "<h2>error getting
|
47
|
+
string: "<h2>error getting checking_anno_id from LDP</h2><html>\n<head>\n<meta
|
48
48
|
http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
|
49
49
|
404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
|
50
|
-
accessing /fedora/rest/anno/
|
50
|
+
accessing /fedora/rest/anno/checking_anno_id. Reason:\n<pre> Not Found</pre></p><hr
|
51
51
|
/><i><small>Powered by Jetty://</small></i><br/> \n<br/>
|
52
52
|
\ \n<br/> \n<br/>
|
53
53
|
\ \n<br/> \n<br/>
|
@@ -60,5 +60,5 @@ http_interactions:
|
|
60
60
|
\ \n<br/> \n<br/>
|
61
61
|
\ \n\n</body>\n</html>\n"
|
62
62
|
http_version:
|
63
|
-
recorded_at:
|
63
|
+
recorded_at: Mon, 18 May 2015 20:06:08 GMT
|
64
64
|
recorded_with: VCR 2.9.3
|
@@ -31,13 +31,13 @@ http_interactions:
|
|
31
31
|
Cache-Control:
|
32
32
|
- no-cache
|
33
33
|
X-Request-Id:
|
34
|
-
-
|
34
|
+
- ba1d97a7-886d-4962-8913-c8bf45b9c59a
|
35
35
|
X-Runtime:
|
36
|
-
- '0.
|
36
|
+
- '0.003257'
|
37
37
|
Server:
|
38
38
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Mon, 18 May 2015 20:06:13 GMT
|
41
41
|
Content-Length:
|
42
42
|
- '94'
|
43
43
|
Connection:
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
encoding: UTF-8
|
47
47
|
string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
49
|
+
recorded_at: Mon, 18 May 2015 20:06:13 GMT
|
50
50
|
- request:
|
51
51
|
method: get
|
52
52
|
uri: http://localhost:3000/search
|
@@ -80,13 +80,13 @@ http_interactions:
|
|
80
80
|
Cache-Control:
|
81
81
|
- max-age=0, private, must-revalidate
|
82
82
|
X-Request-Id:
|
83
|
-
-
|
83
|
+
- cd143396-7101-4e77-b46a-7fbeee96cf0e
|
84
84
|
X-Runtime:
|
85
|
-
- '0.
|
85
|
+
- '0.025025'
|
86
86
|
Server:
|
87
87
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
88
88
|
Date:
|
89
|
-
-
|
89
|
+
- Mon, 18 May 2015 20:06:14 GMT
|
90
90
|
Content-Length:
|
91
91
|
- '181'
|
92
92
|
Connection:
|
@@ -95,7 +95,7 @@ http_interactions:
|
|
95
95
|
encoding: UTF-8
|
96
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
97
|
http_version:
|
98
|
-
recorded_at:
|
98
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
99
99
|
- request:
|
100
100
|
method: get
|
101
101
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -115,7 +115,7 @@ http_interactions:
|
|
115
115
|
message: OK
|
116
116
|
headers:
|
117
117
|
Date:
|
118
|
-
-
|
118
|
+
- Mon, 18 May 2015 20:09:02 GMT
|
119
119
|
Server:
|
120
120
|
- Apache/2.2.15 (Red Hat)
|
121
121
|
Last-Modified:
|
@@ -127,7 +127,7 @@ http_interactions:
|
|
127
127
|
Cache-Control:
|
128
128
|
- max-age=86400
|
129
129
|
Expires:
|
130
|
-
-
|
130
|
+
- Tue, 19 May 2015 20:09:02 GMT
|
131
131
|
Content-Type:
|
132
132
|
- application/ld+json
|
133
133
|
Access-Control-Allow-Origin:
|
@@ -193,7 +193,7 @@ http_interactions:
|
|
193
193
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
194
194
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
195
195
|
http_version:
|
196
|
-
recorded_at:
|
196
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
197
197
|
- request:
|
198
198
|
method: get
|
199
199
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -213,7 +213,7 @@ http_interactions:
|
|
213
213
|
message: OK
|
214
214
|
headers:
|
215
215
|
Date:
|
216
|
-
-
|
216
|
+
- Mon, 18 May 2015 20:09:02 GMT
|
217
217
|
Server:
|
218
218
|
- Apache/2.2.15 (Red Hat)
|
219
219
|
Last-Modified:
|
@@ -225,7 +225,7 @@ http_interactions:
|
|
225
225
|
Cache-Control:
|
226
226
|
- max-age=86400
|
227
227
|
Expires:
|
228
|
-
-
|
228
|
+
- Tue, 19 May 2015 20:09:02 GMT
|
229
229
|
Content-Type:
|
230
230
|
- application/ld+json
|
231
231
|
Access-Control-Allow-Origin:
|
@@ -291,5 +291,5 @@ http_interactions:
|
|
291
291
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
292
292
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
293
293
|
http_version:
|
294
|
-
recorded_at:
|
294
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
295
295
|
recorded_with: VCR 2.9.3
|
@@ -31,13 +31,13 @@ http_interactions:
|
|
31
31
|
Cache-Control:
|
32
32
|
- no-cache
|
33
33
|
X-Request-Id:
|
34
|
-
-
|
34
|
+
- 364b2de7-7cd3-4ae5-a7f9-708969e350ff
|
35
35
|
X-Runtime:
|
36
|
-
- '0.
|
36
|
+
- '0.003035'
|
37
37
|
Server:
|
38
38
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
39
39
|
Date:
|
40
|
-
-
|
40
|
+
- Mon, 18 May 2015 20:06:14 GMT
|
41
41
|
Content-Length:
|
42
42
|
- '94'
|
43
43
|
Connection:
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
encoding: UTF-8
|
47
47
|
string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
49
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
50
50
|
- request:
|
51
51
|
method: get
|
52
52
|
uri: http://localhost:3000/search
|
@@ -80,13 +80,13 @@ http_interactions:
|
|
80
80
|
Cache-Control:
|
81
81
|
- max-age=0, private, must-revalidate
|
82
82
|
X-Request-Id:
|
83
|
-
-
|
83
|
+
- 25b92e22-ece9-4d73-a56a-12734a773716
|
84
84
|
X-Runtime:
|
85
|
-
- '0.
|
85
|
+
- '0.012135'
|
86
86
|
Server:
|
87
87
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
88
88
|
Date:
|
89
|
-
-
|
89
|
+
- Mon, 18 May 2015 20:06:14 GMT
|
90
90
|
Content-Length:
|
91
91
|
- '181'
|
92
92
|
Connection:
|
@@ -95,7 +95,7 @@ http_interactions:
|
|
95
95
|
encoding: UTF-8
|
96
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
97
|
http_version:
|
98
|
-
recorded_at:
|
98
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
99
99
|
- request:
|
100
100
|
method: get
|
101
101
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -115,7 +115,7 @@ http_interactions:
|
|
115
115
|
message: OK
|
116
116
|
headers:
|
117
117
|
Date:
|
118
|
-
-
|
118
|
+
- Mon, 18 May 2015 20:09:02 GMT
|
119
119
|
Server:
|
120
120
|
- Apache/2.2.15 (Red Hat)
|
121
121
|
Last-Modified:
|
@@ -127,7 +127,7 @@ http_interactions:
|
|
127
127
|
Cache-Control:
|
128
128
|
- max-age=86400
|
129
129
|
Expires:
|
130
|
-
-
|
130
|
+
- Tue, 19 May 2015 20:09:02 GMT
|
131
131
|
Content-Type:
|
132
132
|
- application/ld+json
|
133
133
|
Access-Control-Allow-Origin:
|
@@ -193,7 +193,7 @@ http_interactions:
|
|
193
193
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
194
194
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
195
195
|
http_version:
|
196
|
-
recorded_at:
|
196
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
197
197
|
- request:
|
198
198
|
method: get
|
199
199
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -213,7 +213,7 @@ http_interactions:
|
|
213
213
|
message: OK
|
214
214
|
headers:
|
215
215
|
Date:
|
216
|
-
-
|
216
|
+
- Mon, 18 May 2015 20:09:02 GMT
|
217
217
|
Server:
|
218
218
|
- Apache/2.2.15 (Red Hat)
|
219
219
|
Last-Modified:
|
@@ -225,7 +225,7 @@ http_interactions:
|
|
225
225
|
Cache-Control:
|
226
226
|
- max-age=86400
|
227
227
|
Expires:
|
228
|
-
-
|
228
|
+
- Tue, 19 May 2015 20:09:02 GMT
|
229
229
|
Content-Type:
|
230
230
|
- application/ld+json
|
231
231
|
Access-Control-Allow-Origin:
|
@@ -291,5 +291,5 @@ http_interactions:
|
|
291
291
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
292
292
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
293
293
|
http_version:
|
294
|
-
recorded_at:
|
294
|
+
recorded_at: Mon, 18 May 2015 20:06:14 GMT
|
295
295
|
recorded_with: VCR 2.9.3
|
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"8cfba80ee206028f3f2c46777fab7c18"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 2d69bbd6-bea1-4dd6-9ca8-f3d86eaf78e1
|
39
39
|
X-Runtime:
|
40
|
-
- '1.
|
40
|
+
- '1.807308'
|
41
41
|
Server:
|
42
42
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
-
|
44
|
+
- Mon, 18 May 2015 20:06:16 GMT
|
45
45
|
Content-Length:
|
46
46
|
- '443'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=RVptSERVNXM5YnByRTFYS2FXT3RHVG9oYUlxeHZJZW1jcTRkbWQvai9FSU5SYWxUQ0RKTFZkRm8zei9YREtxT21UYmd2VHRRVURJblFLL3dlYytIWEFEdGg3V2FxcURwSktMUVgvOTdCN0tWKzBOWkFYMkk5SjVOS0xpVVIyUENHTVQ2MUlBTmlxeEZJKzRlZk1HeW5uczFBTEt0Uk1uUXFqV2lzSmpyOUJJdytkWTZMbG0wcWRJN1BFb0pReEhoNWE0Y0lmRkZlR3lzS012NU5XYUdtWXhWNnRvZEY1aEZsTW9DUmlkWDlKQng5YzZRTllOc2dUdlZBMmJWSGxNai0tc251YTJrWm1PVW5jNk9xcFpJdVJVUT09--63b2db4c082fc0f6d05715763db01e5fc3c91b2e;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70310874467640","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/34/10/9b/76/34109b76-7ff4-48db-a5d4-4703e8c0042e","@type":"oa:Annotation","hasBody":"_:g70310874467640","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Mon, 18 May 2015 20:06:16 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Mon, 18 May 2015 20:06:16 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
-
|
86
|
+
- Tue, 19 May 2015 02:06:16 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at:
|
102
|
+
recorded_at: Mon, 18 May 2015 20:06:16 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Mon, 18 May 2015 20:06:16 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
-
|
138
|
+
- Tue, 19 May 2015 02:06:16 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at:
|
1256
|
+
recorded_at: Mon, 18 May 2015 20:06:16 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
-
|
1276
|
+
- Mon, 18 May 2015 20:06:16 GMT
|
1277
1277
|
Server:
|
1278
1278
|
- Apache/2
|
1279
1279
|
Location:
|
@@ -1281,7 +1281,7 @@ http_interactions:
|
|
1281
1281
|
Cache-Control:
|
1282
1282
|
- max-age=21600
|
1283
1283
|
Expires:
|
1284
|
-
-
|
1284
|
+
- Tue, 19 May 2015 02:06:16 GMT
|
1285
1285
|
Content-Length:
|
1286
1286
|
- '240'
|
1287
1287
|
Content-Type:
|
@@ -1297,7 +1297,7 @@ http_interactions:
|
|
1297
1297
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
1298
1298
|
</body></html>
|
1299
1299
|
http_version:
|
1300
|
-
recorded_at:
|
1300
|
+
recorded_at: Mon, 18 May 2015 20:06:16 GMT
|
1301
1301
|
- request:
|
1302
1302
|
method: get
|
1303
1303
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -1319,7 +1319,7 @@ http_interactions:
|
|
1319
1319
|
message: OK
|
1320
1320
|
headers:
|
1321
1321
|
Date:
|
1322
|
-
-
|
1322
|
+
- Mon, 18 May 2015 20:06:17 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
-
|
1336
|
+
- Tue, 19 May 2015 02:06:17 GMT
|
1337
1337
|
P3p:
|
1338
1338
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
1339
1339
|
Access-Control-Allow-Origin:
|
@@ -2451,7 +2451,7 @@ http_interactions:
|
|
2451
2451
|
|
2452
2452
|
|
2453
2453
|
http_version:
|
2454
|
-
recorded_at:
|
2454
|
+
recorded_at: Mon, 18 May 2015 20:06:17 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
2457
|
uri: http://localhost:3000/annotations/
|
@@ -2483,13 +2483,13 @@ http_interactions:
|
|
2483
2483
|
Cache-Control:
|
2484
2484
|
- no-cache
|
2485
2485
|
X-Request-Id:
|
2486
|
-
-
|
2486
|
+
- 161c7fa6-b3d2-4ffa-afa0-704bbb5aef6a
|
2487
2487
|
X-Runtime:
|
2488
|
-
- '0.
|
2488
|
+
- '0.002922'
|
2489
2489
|
Server:
|
2490
2490
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2491
2491
|
Date:
|
2492
|
-
-
|
2492
|
+
- Mon, 18 May 2015 20:06:17 GMT
|
2493
2493
|
Content-Length:
|
2494
2494
|
- '94'
|
2495
2495
|
Connection:
|
@@ -2498,7 +2498,7 @@ http_interactions:
|
|
2498
2498
|
encoding: UTF-8
|
2499
2499
|
string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
|
2500
2500
|
http_version:
|
2501
|
-
recorded_at:
|
2501
|
+
recorded_at: Mon, 18 May 2015 20:06:17 GMT
|
2502
2502
|
- request:
|
2503
2503
|
method: get
|
2504
2504
|
uri: http://localhost:3000/search
|
@@ -2528,27 +2528,27 @@ http_interactions:
|
|
2528
2528
|
Content-Type:
|
2529
2529
|
- application/ld+json; charset=utf-8
|
2530
2530
|
Etag:
|
2531
|
-
- W/"
|
2531
|
+
- W/"b8c43a97907457eb0d3b6831c55a31b7"
|
2532
2532
|
Cache-Control:
|
2533
2533
|
- max-age=0, private, must-revalidate
|
2534
2534
|
X-Request-Id:
|
2535
|
-
-
|
2535
|
+
- 4137f1f1-aab0-4bd8-86b1-e35a68f2ec50
|
2536
2536
|
X-Runtime:
|
2537
|
-
- '1.
|
2537
|
+
- '1.569506'
|
2538
2538
|
Server:
|
2539
2539
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2540
2540
|
Date:
|
2541
|
-
-
|
2541
|
+
- Mon, 18 May 2015 20:06:18 GMT
|
2542
2542
|
Content-Length:
|
2543
2543
|
- '512'
|
2544
2544
|
Connection:
|
2545
2545
|
- Keep-Alive
|
2546
2546
|
body:
|
2547
2547
|
encoding: UTF-8
|
2548
|
-
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":1},"resources":[{"@id":"http://your.triannon-server.com/annotations/
|
2548
|
+
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":1},"resources":[{"@id":"http://your.triannon-server.com/annotations/34/10/9b/76/34109b76-7ff4-48db-a5d4-4703e8c0042e","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
2549
2549
|
love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/search"}'
|
2550
2550
|
http_version:
|
2551
|
-
recorded_at:
|
2551
|
+
recorded_at: Mon, 18 May 2015 20:06:18 GMT
|
2552
2552
|
- request:
|
2553
2553
|
method: get
|
2554
2554
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -2568,7 +2568,7 @@ http_interactions:
|
|
2568
2568
|
message: OK
|
2569
2569
|
headers:
|
2570
2570
|
Date:
|
2571
|
-
-
|
2571
|
+
- Mon, 18 May 2015 20:09:07 GMT
|
2572
2572
|
Server:
|
2573
2573
|
- Apache/2.2.15 (Red Hat)
|
2574
2574
|
Last-Modified:
|
@@ -2580,7 +2580,7 @@ http_interactions:
|
|
2580
2580
|
Cache-Control:
|
2581
2581
|
- max-age=86400
|
2582
2582
|
Expires:
|
2583
|
-
-
|
2583
|
+
- Tue, 19 May 2015 20:09:07 GMT
|
2584
2584
|
Content-Type:
|
2585
2585
|
- application/ld+json
|
2586
2586
|
Access-Control-Allow-Origin:
|
@@ -2646,7 +2646,7 @@ http_interactions:
|
|
2646
2646
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
2647
2647
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
2648
2648
|
http_version:
|
2649
|
-
recorded_at:
|
2649
|
+
recorded_at: Mon, 18 May 2015 20:06:18 GMT
|
2650
2650
|
- request:
|
2651
2651
|
method: get
|
2652
2652
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -2666,7 +2666,7 @@ http_interactions:
|
|
2666
2666
|
message: OK
|
2667
2667
|
headers:
|
2668
2668
|
Date:
|
2669
|
-
-
|
2669
|
+
- Mon, 18 May 2015 20:09:07 GMT
|
2670
2670
|
Server:
|
2671
2671
|
- Apache/2.2.15 (Red Hat)
|
2672
2672
|
Last-Modified:
|
@@ -2678,7 +2678,7 @@ http_interactions:
|
|
2678
2678
|
Cache-Control:
|
2679
2679
|
- max-age=86400
|
2680
2680
|
Expires:
|
2681
|
-
-
|
2681
|
+
- Tue, 19 May 2015 20:09:07 GMT
|
2682
2682
|
Content-Type:
|
2683
2683
|
- application/ld+json
|
2684
2684
|
Access-Control-Allow-Origin:
|
@@ -2744,10 +2744,10 @@ http_interactions:
|
|
2744
2744
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
2745
2745
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
2746
2746
|
http_version:
|
2747
|
-
recorded_at:
|
2747
|
+
recorded_at: Mon, 18 May 2015 20:06:18 GMT
|
2748
2748
|
- request:
|
2749
2749
|
method: delete
|
2750
|
-
uri: http://localhost:3000/annotations/
|
2750
|
+
uri: http://localhost:3000/annotations/34%2F10%2F9b%2F76%2F34109b76-7ff4-48db-a5d4-4703e8c0042e
|
2751
2751
|
body:
|
2752
2752
|
encoding: US-ASCII
|
2753
2753
|
string: ''
|
@@ -2774,22 +2774,22 @@ http_interactions:
|
|
2774
2774
|
Cache-Control:
|
2775
2775
|
- no-cache
|
2776
2776
|
X-Request-Id:
|
2777
|
-
-
|
2777
|
+
- ca6d05d7-5dfa-4fdf-a423-e7bb881f0901
|
2778
2778
|
X-Runtime:
|
2779
|
-
- '0.
|
2779
|
+
- '0.248550'
|
2780
2780
|
Server:
|
2781
2781
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2782
2782
|
Date:
|
2783
|
-
-
|
2783
|
+
- Mon, 18 May 2015 20:06:19 GMT
|
2784
2784
|
Connection:
|
2785
2785
|
- Keep-Alive
|
2786
2786
|
Set-Cookie:
|
2787
|
-
- _internal_session=
|
2787
|
+
- _internal_session=Qzc4UnVTT0hEMzdMc0FqenJQQWppQkpObWYrSFZBaUFHV1dWc2dJZmVWVDREQmNOeVVzZXVzQ1lsVHBiL1prZHRiRmw1Qzd2SXYybHJvU0wyaG45NUlmdTFBMVNUeStvRjRNOVFSdTNvYTVYZmV1elBpRFhjQmhJOE4ycE5kVWF4R0x3SUNBMmtaZU43aUZZWWdkMy9FbnU4WDNia3hjUWRZSlFwbDkxa0VoYjN6dXlNbXpPUHpNZWFJeGV0bVpILS1aam1YTVhmQzlJby9TQmNROFN5ejhnPT0%3D--a283c20f14cb8d853bd226fa3015907ecd9b3aef;
|
2788
2788
|
path=/; HttpOnly
|
2789
2789
|
- request_method=DELETE; path=/
|
2790
2790
|
body:
|
2791
2791
|
encoding: UTF-8
|
2792
2792
|
string: ''
|
2793
2793
|
http_version:
|
2794
|
-
recorded_at:
|
2794
|
+
recorded_at: Mon, 18 May 2015 20:06:19 GMT
|
2795
2795
|
recorded_with: VCR 2.9.3
|