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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/triannon-client/triannon_client.rb +14 -3
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  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_text/n3_.yml +26 -26
  34. 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
  35. 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
  36. 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
  37. 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
  38. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +26 -26
  39. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +26 -26
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +40 -40
  49. 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
  50. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
  51. 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
  52. 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
  53. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/{returns_true_for_a_202_response_to_a_DELETE_request.yml → logs_exceptions.yml} +9 -9
  54. 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
  55. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +63 -0
  56. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +63 -0
  57. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +63 -0
  58. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +63 -0
  59. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +63 -0
  60. 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
  61. 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
  62. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +8 -8
  63. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +14 -14
  64. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +14 -14
  65. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +42 -42
  66. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +26 -26
  67. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +5601 -0
  68. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +5601 -0
  69. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +26 -26
  70. 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
  71. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +26 -26
  72. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +34 -34
  73. 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
  74. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +38 -38
  75. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +26 -26
  76. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +26 -26
  77. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +26 -26
  78. data/spec/lib/triannon-client/triannon_client_spec.rb +67 -26
  79. data/triannon-client.gemspec +1 -1
  80. metadata +28 -14
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: http://localhost:3000/annotations/anything_here_is_OK
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
- - fbcce945-686a-456d-a081-b7cdf6a96805
32
+ - 64a23603-58e9-4698-95b6-f8155a4dac15
33
33
  X-Runtime:
34
- - '0.021819'
34
+ - '0.040965'
35
35
  Server:
36
36
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
37
  Date:
38
- - Wed, 13 May 2015 22:29:42 GMT
38
+ - Mon, 18 May 2015 20:06:08 GMT
39
39
  Content-Length:
40
- - '1452'
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 anything_here_is_OK from LDP</h2><html>\n<head>\n<meta
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/anything_here_is_OK. Reason:\n<pre> Not Found</pre></p><hr
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: Wed, 13 May 2015 22:29:42 GMT
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
- - 5bbab74d-3e1d-4473-95c0-c49167e85bc3
34
+ - ba1d97a7-886d-4962-8913-c8bf45b9c59a
35
35
  X-Runtime:
36
- - '0.003071'
36
+ - '0.003257'
37
37
  Server:
38
38
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
39
  Date:
40
- - Wed, 13 May 2015 22:29:45 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - 27d41255-b86c-4538-9001-26d0595d5953
83
+ - cd143396-7101-4e77-b46a-7fbeee96cf0e
84
84
  X-Runtime:
85
- - '0.016369'
85
+ - '0.025025'
86
86
  Server:
87
87
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
88
88
  Date:
89
- - Wed, 13 May 2015 22:29:45 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - Wed, 13 May 2015 22:32:26 GMT
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
- - Thu, 14 May 2015 22:32:26 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - Wed, 13 May 2015 22:32:26 GMT
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
- - Thu, 14 May 2015 22:32:26 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - 9a75223d-f0c7-4007-a873-5f5d6a8edd28
34
+ - 364b2de7-7cd3-4ae5-a7f9-708969e350ff
35
35
  X-Runtime:
36
- - '0.002780'
36
+ - '0.003035'
37
37
  Server:
38
38
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
39
  Date:
40
- - Wed, 13 May 2015 22:29:45 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - 57173340-9679-476e-a463-1c4a3392587c
83
+ - 25b92e22-ece9-4d73-a56a-12734a773716
84
84
  X-Runtime:
85
- - '0.008884'
85
+ - '0.012135'
86
86
  Server:
87
87
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
88
88
  Date:
89
- - Wed, 13 May 2015 22:29:45 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - Wed, 13 May 2015 22:32:26 GMT
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
- - Thu, 14 May 2015 22:32:26 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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
- - Wed, 13 May 2015 22:32:26 GMT
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
- - Thu, 14 May 2015 22:32:26 GMT
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: Wed, 13 May 2015 22:29:45 GMT
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/"9c2ee3e1f73493731b379a74ec0fd002"
34
+ - W/"8cfba80ee206028f3f2c46777fab7c18"
35
35
  Cache-Control:
36
36
  - max-age=0, private, must-revalidate
37
37
  X-Request-Id:
38
- - 09752915-38b2-42e0-80b2-7a4496b08b76
38
+ - 2d69bbd6-bea1-4dd6-9ca8-f3d86eaf78e1
39
39
  X-Runtime:
40
- - '1.549385'
40
+ - '1.807308'
41
41
  Server:
42
42
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
43
43
  Date:
44
- - Wed, 13 May 2015 22:29:47 GMT
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=dzROeUwwMHd5RTFrVHVaNXpmMThjVVdIdXUycVdLWWdqMWszNmZxNGszTnA3RU9ueUxzUlYzQkJvVitSdDVWOU51c25vN3BjUTUzeGljTmtNNjVCRFozTW03YmtkZlo3NmlsQVhXbjNWeW5GUjRJVFowU3Jmc0hzSkxzN3I0aHJVVVFGbXEvS0pvaVpSYjFobmNxZ0NFRWFjZ2huOEJCbXBLQnNWWTZ2Yld4TEJqb3ZPNS81YzJQcGNnOGhXbU9WZjdaWW5YK2lmcVFPSW9LMTFEODZJS1o0a0tNdzRrQnFqZXMrcFBNUG42eWJlcjF3bXhJc3FxaU9sTUdQQTd0Ty0tY3BLKzlYUGIvMGJNT1VpVXVsU2tpdz09--232032daed0b44b97cd108f95665b5fbf9d74813;
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":"_:g70052514042460","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
- love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/c2/c1/ee/32/c2c1ee32-546c-4496-9605-b4a962893144","@type":"oa:Annotation","hasBody":"_:g70052514042460","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
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: Wed, 13 May 2015 22:29:47 GMT
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
- - Wed, 13 May 2015 22:29:47 GMT
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
- - Thu, 14 May 2015 04:29:47 GMT
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: Wed, 13 May 2015 22:29:47 GMT
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
- - Wed, 13 May 2015 22:29:47 GMT
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
- - Thu, 14 May 2015 04:29:47 GMT
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: Wed, 13 May 2015 22:29:47 GMT
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
- - Wed, 13 May 2015 22:29:48 GMT
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
- - Thu, 14 May 2015 04:29:48 GMT
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: Wed, 13 May 2015 22:29:48 GMT
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
- - Wed, 13 May 2015 22:29:48 GMT
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
- - Thu, 14 May 2015 04:29:48 GMT
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: Wed, 13 May 2015 22:29:48 GMT
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
- - 29275d6d-d162-4f7d-a8af-1b3245555cf7
2486
+ - 161c7fa6-b3d2-4ffa-afa0-704bbb5aef6a
2487
2487
  X-Runtime:
2488
- - '0.004191'
2488
+ - '0.002922'
2489
2489
  Server:
2490
2490
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2491
2491
  Date:
2492
- - Wed, 13 May 2015 22:29:48 GMT
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: Wed, 13 May 2015 22:29:48 GMT
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/"d971bdbad42f46274b7bb0b989d4d9e9"
2531
+ - W/"b8c43a97907457eb0d3b6831c55a31b7"
2532
2532
  Cache-Control:
2533
2533
  - max-age=0, private, must-revalidate
2534
2534
  X-Request-Id:
2535
- - 077e1e02-da74-4268-bcc8-ebb4567af89f
2535
+ - 4137f1f1-aab0-4bd8-86b1-e35a68f2ec50
2536
2536
  X-Runtime:
2537
- - '1.159594'
2537
+ - '1.569506'
2538
2538
  Server:
2539
2539
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2540
2540
  Date:
2541
- - Wed, 13 May 2015 22:29:49 GMT
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/c2/c1/ee/32/c2c1ee32-546c-4496-9605-b4a962893144","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
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: Wed, 13 May 2015 22:29:49 GMT
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
- - Wed, 13 May 2015 22:32:30 GMT
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
- - Thu, 14 May 2015 22:32:30 GMT
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: Wed, 13 May 2015 22:29:49 GMT
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
- - Wed, 13 May 2015 22:32:30 GMT
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
- - Thu, 14 May 2015 22:32:30 GMT
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: Wed, 13 May 2015 22:29:49 GMT
2747
+ recorded_at: Mon, 18 May 2015 20:06:18 GMT
2748
2748
  - request:
2749
2749
  method: delete
2750
- uri: http://localhost:3000/annotations/c2%2Fc1%2Fee%2F32%2Fc2c1ee32-546c-4496-9605-b4a962893144
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
- - 0a7651cb-165a-4362-a551-fb4c39b4726b
2777
+ - ca6d05d7-5dfa-4fdf-a423-e7bb881f0901
2778
2778
  X-Runtime:
2779
- - '0.197916'
2779
+ - '0.248550'
2780
2780
  Server:
2781
2781
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2782
2782
  Date:
2783
- - Wed, 13 May 2015 22:29:50 GMT
2783
+ - Mon, 18 May 2015 20:06:19 GMT
2784
2784
  Connection:
2785
2785
  - Keep-Alive
2786
2786
  Set-Cookie:
2787
- - _internal_session=Tnp0RTFqUnM0UHkvM2J2OFFCc3ZKQ1dyWFpmanNVRDZJY0xGVzl1cHRkVTJuTjVDVi8vbXBsd2NyUjFmWlhnSG5mbTZqRzcvVmJHM2FuOHUxYVRKcm9JZU9oREtoN3JvY2kxNmVINk9Ta3lYTzFkSmZ6Y1ZMYlpSVkNHK0hlem14T2h2T0FjTFRLSUIzMDM4c1UxL3FZMkdQUEFDbHMwbVZzaktMeWE5K1lHdHlTSy9vSVdWdGlqZzlsWXl3UVNvLS00ZWoxeWJ6VzFsVzFCOXZKTGxvK2tBPT0%3D--ca7d14e3d160e501b51eed62ebf191abd4dcc34b;
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: Wed, 13 May 2015 22:29:50 GMT
2794
+ recorded_at: Mon, 18 May 2015 20:06:19 GMT
2795
2795
  recorded_with: VCR 2.9.3