triannon-client 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.env_example +1 -1
  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 +432 -513
  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-triples_.yml +432 -513
  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/rdf_json_.yml +432 -513
  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_n3_.yml +432 -513
  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/trig_.yml +432 -513
  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/trix_.yml +432 -513
  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/turtle_.yml +432 -513
  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/x-ld_json_.yml +432 -513
  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-trig_.yml +432 -513
  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_text/n3_.yml +432 -513
  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/rdf_n3_.yml +432 -513
  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_turtle_.yml +432 -513
  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/x-nquads_.yml +432 -513
  16. 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 +50 -50
  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/rdf_xml_.yml +38 -38
  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/x-turtle_.yml +37 -37
  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_text/turtle_.yml +37 -37
  20. 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 +29 -29
  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/n-quads_.yml +29 -29
  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-triples_.yml +29 -29
  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/rdf_json_.yml +29 -29
  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_n3_.yml +29 -29
  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_xml_.yml +29 -29
  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 +29 -29
  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/trix_.yml +29 -29
  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/turtle_.yml +29 -29
  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/x-ld_json_.yml +29 -29
  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-trig_.yml +29 -29
  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-turtle_.yml +29 -29
  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_text/n3_.yml +29 -29
  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/rdf_n3_.yml +29 -29
  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_turtle_.yml +29 -29
  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/turtle_.yml +29 -29
  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/x-nquads_.yml +29 -29
  37. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +29 -29
  38. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +29 -29
  39. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +29 -29
  40. 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 +29 -29
  41. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +29 -29
  42. 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 +29 -29
  43. 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 +29 -29
  44. 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 +37 -155
  45. 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 +50 -50
  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 +29 -29
  47. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
  48. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +29 -29
  49. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +50 -50
  50. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +8 -8
  51. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +8 -8
  52. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +8 -8
  53. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +12 -11
  54. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +12 -11
  55. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +12 -11
  56. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +12 -11
  57. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +12 -11
  58. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +12 -11
  59. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml +18 -18
  60. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +38 -38
  61. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +8 -8
  62. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +24 -24
  63. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +24 -24
  64. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +54 -54
  65. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -29
  66. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +1377 -1623
  67. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +1377 -1623
  68. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +29 -29
  69. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +29 -29
  70. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +29 -29
  71. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +38 -38
  72. 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 +29 -29
  73. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +41 -41
  74. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +29 -29
  75. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +29 -29
  76. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +29 -29
  77. data/triannon-client.gemspec +1 -1
  78. metadata +2 -2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:3000/annotations/anno_does_not_exist
5
+ uri: http://localhost:3000/annotations/foo/anno_does_not_exist
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -29,24 +29,24 @@ http_interactions:
29
29
  Cache-Control:
30
30
  - no-cache
31
31
  X-Request-Id:
32
- - f8942ff0-133d-4b9a-a28d-46215c478919
32
+ - fa024174-24ef-408a-a170-f172beea9cb1
33
33
  X-Runtime:
34
- - '0.034329'
34
+ - '0.021353'
35
35
  Server:
36
36
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
37
  Date:
38
- - Mon, 18 May 2015 20:06:13 GMT
38
+ - Fri, 19 Jun 2015 18:37:45 GMT
39
39
  Content-Length:
40
- - '1452'
40
+ - '1460'
41
41
  Connection:
42
42
  - Keep-Alive
43
43
  body:
44
44
  encoding: UTF-8
45
- string: "<h2>error getting anno_does_not_exist from LDP</h2><html>\n<head>\n<meta
45
+ string: "<h2>error getting foo/anno_does_not_exist from LDP</h2><html>\n<head>\n<meta
46
46
  http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
47
47
  404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
48
- accessing /fedora/rest/anno/anno_does_not_exist. Reason:\n<pre> Not Found</pre></p><hr
49
- /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
48
+ accessing /fedora/rest/anno/foo/anno_does_not_exist. Reason:\n<pre> Not
49
+ Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
50
50
  \ \n<br/> \n<br/>
51
51
  \ \n<br/> \n<br/>
52
52
  \ \n<br/> \n<br/>
@@ -58,10 +58,10 @@ http_interactions:
58
58
  \ \n<br/> \n<br/>
59
59
  \ \n\n</body>\n</html>\n"
60
60
  http_version:
61
- recorded_at: Mon, 18 May 2015 20:06:13 GMT
61
+ recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
62
62
  - request:
63
63
  method: delete
64
- uri: http://localhost:3000/annotations/anno_does_not_exist
64
+ uri: http://localhost:3000/annotations/foo/anno_does_not_exist
65
65
  body:
66
66
  encoding: US-ASCII
67
67
  string: ''
@@ -88,26 +88,26 @@ http_interactions:
88
88
  Cache-Control:
89
89
  - no-cache
90
90
  X-Request-Id:
91
- - 474661ad-5d46-463d-a50b-950d513a3917
91
+ - b2924f3b-8192-4cc3-85ff-29b1f47cc961
92
92
  X-Runtime:
93
- - '0.031949'
93
+ - '0.026076'
94
94
  Server:
95
95
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
96
96
  Date:
97
- - Mon, 18 May 2015 20:06:13 GMT
97
+ - Fri, 19 Jun 2015 18:37:45 GMT
98
98
  Content-Length:
99
- - '1452'
99
+ - '1460'
100
100
  Connection:
101
101
  - Keep-Alive
102
102
  Set-Cookie:
103
103
  - request_method=DELETE; path=/
104
104
  body:
105
105
  encoding: UTF-8
106
- string: "<h2>error getting anno_does_not_exist from LDP</h2><html>\n<head>\n<meta
106
+ string: "<h2>error getting foo/anno_does_not_exist from LDP</h2><html>\n<head>\n<meta
107
107
  http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
108
108
  404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
109
- accessing /fedora/rest/anno/anno_does_not_exist. Reason:\n<pre> Not Found</pre></p><hr
110
- /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
109
+ accessing /fedora/rest/anno/foo/anno_does_not_exist. Reason:\n<pre> Not
110
+ Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
111
111
  \ \n<br/> \n<br/>
112
112
  \ \n<br/> \n<br/>
113
113
  \ \n<br/> \n<br/>
@@ -119,5 +119,5 @@ http_interactions:
119
119
  \ \n<br/> \n<br/>
120
120
  \ \n\n</body>\n</html>\n"
121
121
  http_version:
122
- recorded_at: Mon, 18 May 2015 20:06:13 GMT
122
+ recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
123
123
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:3000/annotations/
5
+ uri: http://localhost:3000/annotations/foo/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: commit=Create%20Annotation&annotation[data]=%7B%22%40context%22%3A%22http%3A%2F%2Fiiif.io%2Fapi%2Fpresentation%2F2%2Fcontext.json%22%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22_%3Ag70349699654640%22%2C%22%40type%22%3A%5B%22dctypes%3AText%22%2C%22cnt%3AContentAsText%22%5D%2C%22chars%22%3A%22I%20love%20this!%22%2C%22format%22%3A%22text%2Fplain%22%2C%22language%22%3A%22en%22%7D%2C%7B%22%40type%22%3A%22oa%3AAnnotation%22%2C%22motivation%22%3A%22oa%3Acommenting%22%2C%22on%22%3A%22http%3A%2F%2Fpurl.stanford.edu%2Fkq131cs7229%22%2C%22resource%22%3A%22_%3Ag70349699654640%22%7D%5D%7D
@@ -31,31 +31,31 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/ld+json; charset=utf-8
33
33
  Etag:
34
- - W/"2a598aae0675fc385f7e9e1181e4927c"
34
+ - W/"d7db53bfcb788dd93feeb9a49197df08"
35
35
  Cache-Control:
36
36
  - max-age=0, private, must-revalidate
37
37
  X-Request-Id:
38
- - 673d1f7f-582e-46ef-bce0-222546c45ff6
38
+ - e71e2c61-d03d-48b0-9721-7660de563008
39
39
  X-Runtime:
40
- - '4.062571'
40
+ - '2.754027'
41
41
  Server:
42
42
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
43
43
  Date:
44
- - Mon, 18 May 2015 20:06:12 GMT
44
+ - Fri, 19 Jun 2015 18:37:44 GMT
45
45
  Content-Length:
46
- - '443'
46
+ - '447'
47
47
  Connection:
48
48
  - Keep-Alive
49
49
  Set-Cookie:
50
- - _internal_session=Njg1YnVNdXBuSHNOdjZSYU1YZi9US1hld3BsU0xnLzJCYmsxSkJNYTVRWXJ4dlNSYjZodU9hZWRkSGkyYmU2VUZhdlBTVERzTFpGSFYzVnlqTmdINXp4aThPdFR4TlQzQVVFVlFEODBEeE1DVzFNWExhRjMvVjVDK0I4YzlpMVFnTDYvQnR6OWFCTmxJc2U2QWRyZHVmQWVqdG4wZmZ1Rk5zbms3NTZ2VG9NdjJxRVdZRGw2L21XNkdDMGRTeUZNOHNsWHJhUVdOVTRvMld3c1l1VTRNU2VzdEFhV0laSkJ4R3p5VUhhVlBsVk5nNWJseGZKYjI4b1FaWnU5Q3huby0tZzI3a1dNekNTeThXUHR1K1Brd3duZz09--5a2619e4276d033a144981026cfae7fe785a3179;
50
+ - _internal_session=THM4K2RZQnFTYStkMWxDalZYc0dMbWpWcFF5T0dJcG1kc0grY05sODRLV3pIdjF1NnRpbFRaMXIvZi9IQ2pDeHdzMVJVdi9URWRzeTA2MGgzVllJY2NZZ2FlVDVEVzZILzc3TlZZQWttTU5obFN2bDhzMzMzV1huUFdCK2lUUnJIb1pNRVk3dWlIK2FMN3FJWm5yM1NWUU1YMkZTbFdIczkzTDFDbXNPczFxejU3Yk9ZbnVkZjM1aGY0dXBVQ01JbzhXVFJzbHN0NUpYTkYwVXpCb1ZXcytOemxCamhBWkUrYkdrbzF6QmhTWGdHNzNOWW5IK28vNUFpS3RiMnluWi0tcHJ2T0IxR09JWEJPd0U4TFo5TG1Ndz09--36e209d2e381432458f7e2575b49f710a243ccd4;
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":"_:g70310850717480","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
- love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/b5/85/9d/a3/b5859da3-768d-4607-b3bd-23379e589d5f","@type":"oa:Annotation","hasBody":"_:g70310850717480","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
55
+ string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70154451180960","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
+ love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/foo/d6/02/84/d8/d60284d8-de4c-4215-ab76-e2763951702d","@type":"oa:Annotation","hasBody":"_:g70154451180960","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
57
57
  http_version:
58
- recorded_at: Mon, 18 May 2015 20:06:12 GMT
58
+ recorded_at: Fri, 19 Jun 2015 18:37:44 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
- - Mon, 18 May 2015 20:06:12 GMT
78
+ - Fri, 19 Jun 2015 18:37:44 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
- - Tue, 19 May 2015 02:06:12 GMT
86
+ - Sat, 20 Jun 2015 00:37:44 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: Mon, 18 May 2015 20:06:12 GMT
102
+ recorded_at: Fri, 19 Jun 2015 18:37:44 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
- - Mon, 18 May 2015 20:06:12 GMT
124
+ - Fri, 19 Jun 2015 18:37:44 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
- - Tue, 19 May 2015 02:06:12 GMT
138
+ - Sat, 20 Jun 2015 00:37:44 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: Mon, 18 May 2015 20:06:12 GMT
1256
+ recorded_at: Fri, 19 Jun 2015 18:37:44 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
- - Mon, 18 May 2015 20:06:12 GMT
1276
+ - Fri, 19 Jun 2015 18:37:45 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
- - Tue, 19 May 2015 02:06:12 GMT
1284
+ - Sat, 20 Jun 2015 00:37:45 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: Mon, 18 May 2015 20:06:12 GMT
1300
+ recorded_at: Fri, 19 Jun 2015 18:37:45 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
- - Mon, 18 May 2015 20:06:13 GMT
1322
+ - Fri, 19 Jun 2015 18:37:45 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
- - Tue, 19 May 2015 02:06:13 GMT
1336
+ - Sat, 20 Jun 2015 00:37:45 GMT
1337
1337
  P3p:
1338
1338
  - policyref="http://www.w3.org/2014/08/p3p.xml"
1339
1339
  Access-Control-Allow-Origin:
@@ -2451,10 +2451,10 @@ http_interactions:
2451
2451
 
2452
2452
 
2453
2453
  http_version:
2454
- recorded_at: Mon, 18 May 2015 20:06:13 GMT
2454
+ recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
2455
2455
  - request:
2456
2456
  method: delete
2457
- uri: http://localhost:3000/annotations/b5%2F85%2F9d%2Fa3%2Fb5859da3-768d-4607-b3bd-23379e589d5f
2457
+ uri: http://localhost:3000/annotations/foo/d6%2F02%2F84%2Fd8%2Fd60284d8-de4c-4215-ab76-e2763951702d
2458
2458
  body:
2459
2459
  encoding: US-ASCII
2460
2460
  string: ''
@@ -2477,31 +2477,31 @@ http_interactions:
2477
2477
  X-Content-Type-Options:
2478
2478
  - nosniff
2479
2479
  Location:
2480
- - http://localhost:3000/annotations
2480
+ - http://localhost:3000/annotations?anno_root=foo
2481
2481
  Cache-Control:
2482
2482
  - no-cache
2483
2483
  X-Request-Id:
2484
- - 03c000b4-4a58-4fcd-a36c-3fd8b3f14e2a
2484
+ - f63f50d7-5f01-4dbe-80b2-dd3addc784af
2485
2485
  X-Runtime:
2486
- - '0.335240'
2486
+ - '0.253921'
2487
2487
  Server:
2488
2488
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2489
2489
  Date:
2490
- - Mon, 18 May 2015 20:06:13 GMT
2490
+ - Fri, 19 Jun 2015 18:37:45 GMT
2491
2491
  Connection:
2492
2492
  - Keep-Alive
2493
2493
  Set-Cookie:
2494
- - _internal_session=V2NlSE1iNk1HWXVSV3N1R3grbVhmMnhJRG5tZ3U0c0gwL0hzS2huY296SVdFQzQyMS84bkI2SkJoQ1IzYjRVSlFnc0dEeHZQckRIZW1WUW1iL0Rub1VhYWl1T2VGVDJhMDJUUUZWQWVIK2wxaTRSSmZkTzNvMWlrblFCYTVySlVvRlJhUG13aitwcysyZ1M0N3lFNXN0MTE4MzZOaWpLclZPQXg2L0RRTVZuZUZxV1ptRlVTSGtJU0xnd3hhRUJGLS05RUZrQlliZm5uZWwxWFBYVnc2RW5nPT0%3D--ee46b065a795650980b3ba3d316ac447ea1b77c7;
2494
+ - _internal_session=NkFYekpLdERUc2xyNklQRDd2SFdqRUg4Sllha2pYVjBQUVI5L0dCenA5WGxyeGFNekRNZnJQdnNGRWVFMTh1UldmZElSSlhNOHlIRzFEck9TVCttbXkwbjVTQWtwSjZPL29GaThEWlcra2hoL3lsbSs5K2VkeUU2K0crdnhkL2orbHE1bndwazNrQ0dUVGtiTFBGa3FrSlVZb1RTNm5ZVzMwYVc2WEc4SVJWaTdLV0FuRTczakVpckJaTm1WcmZBLS1kVXpsNWZIRlBJMDY5c01uRVcyc1lRPT0%3D--14fe495560e2d308498cfde3c42ec270f20e28d7;
2495
2495
  path=/; HttpOnly
2496
2496
  - request_method=DELETE; path=/
2497
2497
  body:
2498
2498
  encoding: UTF-8
2499
2499
  string: ''
2500
2500
  http_version:
2501
- recorded_at: Mon, 18 May 2015 20:06:13 GMT
2501
+ recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
2502
2502
  - request:
2503
2503
  method: get
2504
- uri: http://localhost:3000/annotations/b5%2F85%2F9d%2Fa3%2Fb5859da3-768d-4607-b3bd-23379e589d5f
2504
+ uri: http://localhost:3000/annotations/foo/d6%2F02%2F84%2Fd8%2Fd60284d8-de4c-4215-ab76-e2763951702d
2505
2505
  body:
2506
2506
  encoding: US-ASCII
2507
2507
  string: ''
@@ -2528,22 +2528,22 @@ http_interactions:
2528
2528
  Cache-Control:
2529
2529
  - no-cache
2530
2530
  X-Request-Id:
2531
- - 2ca3f6fa-bb40-45cb-b96b-c1022412e42f
2531
+ - 439e2637-be73-434f-8091-c78f71f7ef66
2532
2532
  X-Runtime:
2533
- - '0.039992'
2533
+ - '0.024436'
2534
2534
  Server:
2535
2535
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2536
2536
  Date:
2537
- - Mon, 18 May 2015 20:06:13 GMT
2537
+ - Fri, 19 Jun 2015 18:37:45 GMT
2538
2538
  Content-Length:
2539
- - '272'
2539
+ - '280'
2540
2540
  Connection:
2541
2541
  - Keep-Alive
2542
2542
  body:
2543
2543
  encoding: UTF-8
2544
- string: "<h2>error getting b5/85/9d/a3/b5859da3-768d-4607-b3bd-23379e589d5f
2545
- from LDP</h2>Discovered tombstone resource at /anno/b5/85/9d/a3/b5859da3-768d-4607-b3bd-23379e589d5f
2546
- {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-05-18T13:06:13.562-07:00}"
2544
+ string: "<h2>error getting foo/d6/02/84/d8/d60284d8-de4c-4215-ab76-e2763951702d
2545
+ from LDP</h2>Discovered tombstone resource at /anno/foo/d6/02/84/d8/d60284d8-de4c-4215-ab76-e2763951702d
2546
+ {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-06-19T11:37:45.788-07:00}"
2547
2547
  http_version:
2548
- recorded_at: Mon, 18 May 2015 20:06:13 GMT
2548
+ recorded_at: Fri, 19 Jun 2015 18:37:45 GMT
2549
2549
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: delete
5
- uri: http://localhost:3000/annotations/checking_anno_id
5
+ uri: http://localhost:3000/annotations/foo/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
- - 64a23603-58e9-4698-95b6-f8155a4dac15
32
+ - 8932dd00-3e1b-49e4-8b78-8746c4b697ca
33
33
  X-Runtime:
34
- - '0.040965'
34
+ - '0.020819'
35
35
  Server:
36
36
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
37
  Date:
38
- - Mon, 18 May 2015 20:06:08 GMT
38
+ - Fri, 19 Jun 2015 18:37:41 GMT
39
39
  Content-Length:
40
- - '1446'
40
+ - '1454'
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 checking_anno_id from LDP</h2><html>\n<head>\n<meta
47
+ string: "<h2>error getting foo/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/checking_anno_id. Reason:\n<pre> Not Found</pre></p><hr
50
+ accessing /fedora/rest/anno/foo/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: Mon, 18 May 2015 20:06:08 GMT
63
+ recorded_at: Fri, 19 Jun 2015 18:37:41 GMT
64
64
  recorded_with: VCR 2.9.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:3000/annotations/
5
+ uri: http://localhost:3000/annotations/foo/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -25,31 +25,31 @@ http_interactions:
25
25
  X-Content-Type-Options:
26
26
  - nosniff
27
27
  Location:
28
- - http://localhost:3000/search
28
+ - http://localhost:3000/foo/search
29
29
  Content-Type:
30
30
  - text/html; charset=utf-8
31
31
  Cache-Control:
32
32
  - no-cache
33
33
  X-Request-Id:
34
- - ba1d97a7-886d-4962-8913-c8bf45b9c59a
34
+ - 019a9292-673f-4bf8-9cb6-2a386e4b3335
35
35
  X-Runtime:
36
- - '0.003257'
36
+ - '0.003797'
37
37
  Server:
38
38
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
39
  Date:
40
- - Mon, 18 May 2015 20:06:13 GMT
40
+ - Fri, 19 Jun 2015 18:37:46 GMT
41
41
  Content-Length:
42
- - '94'
42
+ - '98'
43
43
  Connection:
44
44
  - Keep-Alive
45
45
  body:
46
46
  encoding: UTF-8
47
- string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
47
+ string: <html><body>You are being <a href="http://localhost:3000/foo/search">redirected</a>.</body></html>
48
48
  http_version:
49
- recorded_at: Mon, 18 May 2015 20:06:13 GMT
49
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
50
50
  - request:
51
51
  method: get
52
- uri: http://localhost:3000/search
52
+ uri: http://localhost:3000/foo/search
53
53
  body:
54
54
  encoding: US-ASCII
55
55
  string: ''
@@ -76,26 +76,26 @@ http_interactions:
76
76
  Content-Type:
77
77
  - application/ld+json; charset=utf-8
78
78
  Etag:
79
- - W/"142b5b57e954e5889d787015364100f1"
79
+ - W/"2cd0a171b9c9cffab65bf4dc9dc7a67f"
80
80
  Cache-Control:
81
81
  - max-age=0, private, must-revalidate
82
82
  X-Request-Id:
83
- - cd143396-7101-4e77-b46a-7fbeee96cf0e
83
+ - 61ebc000-eeb6-4a60-9bb8-9ccdd02680e0
84
84
  X-Runtime:
85
- - '0.025025'
85
+ - '0.019059'
86
86
  Server:
87
87
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
88
88
  Date:
89
- - Mon, 18 May 2015 20:06:14 GMT
89
+ - Fri, 19 Jun 2015 18:37:46 GMT
90
90
  Content-Length:
91
- - '181'
91
+ - '185'
92
92
  Connection:
93
93
  - Keep-Alive
94
94
  body:
95
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"}'
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/foo/search"}'
97
97
  http_version:
98
- recorded_at: Mon, 18 May 2015 20:06:14 GMT
98
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
99
99
  - request:
100
100
  method: get
101
101
  uri: http://iiif.io/api/presentation/2/context.json
@@ -115,11 +115,11 @@ http_interactions:
115
115
  message: OK
116
116
  headers:
117
117
  Date:
118
- - Mon, 18 May 2015 20:09:02 GMT
118
+ - Fri, 19 Jun 2015 18:41:21 GMT
119
119
  Server:
120
120
  - Apache/2.2.15 (Red Hat)
121
121
  Last-Modified:
122
- - Wed, 13 May 2015 19:46:47 GMT
122
+ - Thu, 18 Jun 2015 18:49:34 GMT
123
123
  Accept-Ranges:
124
124
  - bytes
125
125
  Content-Length:
@@ -127,7 +127,7 @@ http_interactions:
127
127
  Cache-Control:
128
128
  - max-age=86400
129
129
  Expires:
130
- - Tue, 19 May 2015 20:09:02 GMT
130
+ - Sat, 20 Jun 2015 18:41:21 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: Mon, 18 May 2015 20:06:14 GMT
196
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
197
197
  - request:
198
198
  method: get
199
199
  uri: http://iiif.io/api/presentation/2/context.json
@@ -213,11 +213,11 @@ http_interactions:
213
213
  message: OK
214
214
  headers:
215
215
  Date:
216
- - Mon, 18 May 2015 20:09:02 GMT
216
+ - Fri, 19 Jun 2015 18:41:21 GMT
217
217
  Server:
218
218
  - Apache/2.2.15 (Red Hat)
219
219
  Last-Modified:
220
- - Wed, 13 May 2015 19:46:47 GMT
220
+ - Thu, 18 Jun 2015 18:49:34 GMT
221
221
  Accept-Ranges:
222
222
  - bytes
223
223
  Content-Length:
@@ -225,7 +225,7 @@ http_interactions:
225
225
  Cache-Control:
226
226
  - max-age=86400
227
227
  Expires:
228
- - Tue, 19 May 2015 20:09:02 GMT
228
+ - Sat, 20 Jun 2015 18:41:21 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: Mon, 18 May 2015 20:06:14 GMT
294
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
295
295
  recorded_with: VCR 2.9.3