triannon-client 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.env_example +16 -2
  3. data/.rspec +1 -0
  4. data/README.md +49 -18
  5. data/Rakefile +15 -2
  6. data/lib/triannon-client.rb +12 -6
  7. data/lib/triannon-client/configuration.rb +26 -14
  8. data/lib/triannon-client/triannon_client.rb +139 -44
  9. 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 → CRUD/create_annotation.yml} +192 -132
  10. data/spec/fixtures/vcr_cassettes/TriannonClientAUTH/with_authentication/behaves_like_authenticate/-_authenticate_returns_true.yml +343 -0
  11. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_401_response_retries_and_logs_RestClient_Exception_message.yml +170 -0
  12. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_403_response_does_not_retry_and_logs_RestClient_Exception_message.yml +170 -0
  13. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_500_response_does_not_retry_and_logs_RestClient_Exception_message.yml +170 -0
  14. data/spec/fixtures/vcr_cassettes/{TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml → TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml} +203 -319
  15. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/logs_RuntimeError_message.yml +170 -0
  16. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/returns_a_RestClient_Response_object.yml +170 -0
  17. data/spec/fixtures/vcr_cassettes/{TriannonClient/_post_annotation → TriannonClientCREATE/_post_annotation/without_authentication/behaves_like_create_annotations}/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -27
  18. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/clear_annotations.yml +590 -0
  19. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_does_NOT_exist.yml +349 -0
  20. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_exists.yml +332 -0
  21. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/validates_the_annotation_ID.yml +288 -0
  22. data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_does_NOT_exist.yml} +13 -9
  23. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_exists.yml +127 -0
  24. data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations}/validates_the_annotation_ID.yml +7 -5
  25. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/clear_annotations.yml +594 -0
  26. data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph.yml +30 -23
  27. data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +30 -23
  28. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +302 -0
  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/n-quads_.yml → TriannonClientREAD/GET/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
  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/n-triples_.yml → TriannonClientREAD/GET/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
  31. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_response2graph/accepts_a_RestClient_Response_instance.yml +2399 -0
  32. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/csvm_json_.yml +1231 -0
  33. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +1231 -0
  34. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +1231 -0
  35. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +1231 -0
  36. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +1231 -0
  37. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trig_.yml +1231 -0
  38. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trix_.yml +1231 -0
  39. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +1231 -0
  40. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +1231 -0
  41. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +1231 -0
  42. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/csv_.yml +1231 -0
  43. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/n3_.yml +1231 -0
  44. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/plain_.yml +1231 -0
  45. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +1231 -0
  46. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +1231 -0
  47. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/tab-separated-values_.yml +1231 -0
  48. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +1231 -0
  49. 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 → TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application}/ld_json_.yml +25 -78
  50. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +68 -0
  51. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +69 -0
  52. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +69 -0
  53. data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type → TriannonClientREAD/GET/annotation_by_ID/using_default_content_type}/checks_the_annotation_ID.yml +25 -78
  54. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_default_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +186 -0
  55. 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 → TriannonClientREAD/GET/annotation_by_ID/using_default_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml} +25 -78
  56. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/clear_annotations.yml +648 -0
  57. 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 → TriannonClientREAD/create_annotation.yml} +192 -131
  58. data/spec/lib/triannon-client/configuration_spec.rb +83 -27
  59. data/spec/lib/triannon-client/triannon_client_auth_spec.rb +61 -0
  60. data/spec/lib/triannon-client/triannon_client_class_spec.rb +104 -0
  61. data/spec/lib/triannon-client/triannon_client_create_spec.rb +119 -0
  62. data/spec/lib/triannon-client/triannon_client_delete_spec.rb +117 -0
  63. data/spec/lib/triannon-client/triannon_client_read_spec.rb +342 -0
  64. data/spec/spec_helper.rb +140 -4
  65. data/triannon-client.gemspec +1 -1
  66. metadata +112 -153
  67. 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 +0 -3995
  68. 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 +0 -3995
  69. 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 +0 -3995
  70. 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 +0 -3995
  71. 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 +0 -3995
  72. 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 +0 -3995
  73. 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 +0 -3995
  74. 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 +0 -3995
  75. 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 +0 -3995
  76. 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 +0 -3995
  77. 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 +0 -3995
  78. 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 +0 -3995
  79. 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 +0 -3995
  80. 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 +0 -4946
  81. 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 +0 -2566
  82. 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 +0 -2502
  83. 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 +0 -2502
  84. 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 +0 -2502
  85. 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 +0 -2502
  86. 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 +0 -2502
  87. 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 +0 -2502
  88. 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 +0 -2502
  89. 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 +0 -2502
  90. 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 +0 -2502
  91. 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 +0 -2502
  92. 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 +0 -2502
  93. 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 +0 -2502
  94. 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 +0 -2502
  95. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +0 -2502
  96. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +0 -2502
  97. 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 +0 -2502
  98. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +0 -2502
  99. 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 +0 -2502
  100. 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 +0 -2502
  101. 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 +0 -2561
  102. 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 +0 -4946
  103. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +0 -2502
  104. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -2746
  105. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +0 -2502
  106. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -4946
  107. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +0 -64
  108. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +0 -64
  109. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +0 -64
  110. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +0 -64
  111. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +0 -64
  112. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +0 -64
  113. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +0 -64
  114. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +0 -64
  115. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +0 -64
  116. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +0 -2549
  117. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +0 -5355
  118. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +0 -5355
  119. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +0 -2502
  120. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +0 -2502
  121. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +0 -2502
  122. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +0 -2551
  123. 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 +0 -2502
  124. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +0 -4898
  125. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +0 -2502
  126. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +0 -2502
  127. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +0 -2502
  128. data/spec/lib/triannon-client/triannon_client_spec.rb +0 -546
@@ -0,0 +1,590 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/auth/client_identity
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"clientId":"clientA","clientSecret":"secretA"}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '47'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: 'OK '
24
+ headers:
25
+ X-Frame-Options:
26
+ - SAMEORIGIN
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ X-Content-Type-Options:
30
+ - nosniff
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"7482fe1167e96c53e26f4d5279fab95f"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - bd1a7dc9-280a-4dfa-8a73-8d71058156e6
39
+ X-Runtime:
40
+ - '0.166580'
41
+ Server:
42
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
43
+ Date:
44
+ - Mon, 03 Aug 2015 22:11:56 GMT
45
+ Content-Length:
46
+ - '186'
47
+ Connection:
48
+ - Keep-Alive
49
+ Set-Cookie:
50
+ - _internal_session=SXFVMkt1TTkwVWl6NlBOQ1dGTDdIRDRQbWliOUQ4ejNHTisvQllIV0lKYmhleTJvVm5XdzcyUVRRRGVUazFSQmlIdmVTcFZsajh4TmhFeDZaa0padkxzRm96MkNzTytPb2xHRFNYUzNjWkJhU0RzN0FkQnAyalRwZmFYR2IwdFgxZlU2dDE1VEZRT2dOSkdOUjhVc1pyeDU1QUorM2t6aVJNQ1M3Z2pYRFl6OGpnZTVUYmdHenhCZ2EzNUpjbGp2MkF6NDcwMlh4YSt2MU40Z3lNVXJDcVY1dUpzVWZPNjhmSTR1R3BqMjErdFBNQnZtVjlvQkk4Y2liWVovV0loa1dWZ1lGUmJTVHlkOXU3Nk42QW5tL0xGb3hzVDZkOCt3UnVHMzdXT3lIay8vdDNvcnNDR1lIZ1JkajhnaWh6bzhzd3pkRnhVbHhCeWJFMGVQZHFaRENHSW96clpQU1lxTkJHOE51dmxKMitxZHo2MFRBQVZZSEEwb0Zqb2lFVE1zZGphdDByeHhuS0hWSUtwZDZ5VDc5YUx6WFdNRTdTaElhQWZrR2k4OGdocEdEbGI0NEpBbHpGc1lwK2tmVHpNR1lVTDEyWDB4QTQyMldwQUpXS0xVd3l1RUFoc2JmOExxUm9yTWNkTTc1NjA9LS1QZVZMSjB2SG9SM2s4WmRRNHhTRTN3PT0%3D--d35f15006d566fc465ce6ef8d649c203610babdc;
51
+ path=/; HttpOnly
52
+ - request_method=POST; path=/
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"authorizationCode":"bW9VYWN1aUZEWmVaczlWczBGbmF0Q2M5YmQzazljM0dvcFFPZnpUd2VIaloxeThhU1hMVktwZUZCQXc4SUY3QS0tamlSbDRxc2NvamhOZHhxYlhGZVl1Zz09--6f5be7cd80a4181e43c9e59c7bea1d4b5ea4ec19"}'
56
+ http_version:
57
+ recorded_at: Mon, 03 Aug 2015 22:11:56 GMT
58
+ - request:
59
+ method: post
60
+ uri: http://localhost:3000/auth/login?code=bW9VYWN1aUZEWmVaczlWczBGbmF0Q2M5YmQzazljM0dvcFFPZnpUd2VIaloxeThhU1hMVktwZUZCQXc4SUY3QS0tamlSbDRxc2NvamhOZHhxYlhGZVl1Zz09--6f5be7cd80a4181e43c9e59c7bea1d4b5ea4ec19
61
+ body:
62
+ encoding: UTF-8
63
+ string: '{"userId":"","workgroups":"org:wg-A, org:wg-B"}'
64
+ headers:
65
+ Accept:
66
+ - application/json
67
+ Accept-Encoding:
68
+ - gzip, deflate
69
+ Content-Type:
70
+ - application/json
71
+ Cookie:
72
+ - _internal_session=SXFVMkt1TTkwVWl6NlBOQ1dGTDdIRDRQbWliOUQ4ejNHTisvQllIV0lKYmhleTJvVm5XdzcyUVRRRGVUazFSQmlIdmVTcFZsajh4TmhFeDZaa0padkxzRm96MkNzTytPb2xHRFNYUzNjWkJhU0RzN0FkQnAyalRwZmFYR2IwdFgxZlU2dDE1VEZRT2dOSkdOUjhVc1pyeDU1QUorM2t6aVJNQ1M3Z2pYRFl6OGpnZTVUYmdHenhCZ2EzNUpjbGp2MkF6NDcwMlh4YSt2MU40Z3lNVXJDcVY1dUpzVWZPNjhmSTR1R3BqMjErdFBNQnZtVjlvQkk4Y2liWVovV0loa1dWZ1lGUmJTVHlkOXU3Nk42QW5tL0xGb3hzVDZkOCt3UnVHMzdXT3lIay8vdDNvcnNDR1lIZ1JkajhnaWh6bzhzd3pkRnhVbHhCeWJFMGVQZHFaRENHSW96clpQU1lxTkJHOE51dmxKMitxZHo2MFRBQVZZSEEwb0Zqb2lFVE1zZGphdDByeHhuS0hWSUtwZDZ5VDc5YUx6WFdNRTdTaElhQWZrR2k4OGdocEdEbGI0NEpBbHpGc1lwK2tmVHpNR1lVTDEyWDB4QTQyMldwQUpXS0xVd3l1RUFoc2JmOExxUm9yTWNkTTc1NjA9LS1QZVZMSjB2SG9SM2s4WmRRNHhTRTN3PT0%3D--d35f15006d566fc465ce6ef8d649c203610babdc;
73
+ request_method=POST
74
+ Content-Length:
75
+ - '47'
76
+ User-Agent:
77
+ - Ruby
78
+ response:
79
+ status:
80
+ code: 200
81
+ message: 'OK '
82
+ headers:
83
+ X-Frame-Options:
84
+ - SAMEORIGIN
85
+ X-Xss-Protection:
86
+ - 1; mode=block
87
+ X-Content-Type-Options:
88
+ - nosniff
89
+ Content-Type:
90
+ - text/plain; charset=utf-8
91
+ Cache-Control:
92
+ - no-cache
93
+ X-Request-Id:
94
+ - 22f1595e-c950-4612-8b32-6f2fdebd3683
95
+ X-Runtime:
96
+ - '0.170783'
97
+ Server:
98
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
99
+ Date:
100
+ - Mon, 03 Aug 2015 22:11:57 GMT
101
+ Content-Length:
102
+ - '0'
103
+ Connection:
104
+ - Keep-Alive
105
+ Set-Cookie:
106
+ - _internal_session=Ym54MEVLUGZvamsrMGFZUlBQOG1VZE9DWUNrTlg0dnRRcDI4L0Z4ZnBiSzZIQzJPMEpkUHhhYmJWZCtad2JVZVo4SEhIcjFvSjJja0VYT255dEFFcXY5aVgyeE9HZDI2aU1oRlA2aE4zK29vS3IzWFdPN1BiaUJwNWJFRUZaWFU1RndKeDhZZW51QlZyZ05jUjR3MUUySlVNU1BDbDdkUGhMRWpxc05SVlFCVXN0N0ZGKzVIMDk2azVvek80bWxGRkVTKzlUVVRSbFVpeHM3UjFpMCs2TE1ZZ2ZYMENIUzVqK0hNWGM3aHdEZGFLekZPZUc2R0hNRks4clMrRkFDUkJQQzN3V0lzWmcwRFNSWXQyT1JuUTZrTDFWZ0I3YlVvYzZlcUNRZWFTNjIxNmNFNzFUV24xc0d0VGVTZzhBb1pUMlhrTzhNVEZKT1dpdHVGTVdPeWg3SXN4RXVMOFV1THVLajkweHR1M3AyWWR4a3N2LzM2RzhoYUZPam4wSm9tRVBQVGtUampIc2ZBdEI1Znl4MlNXMDdLcnlkRkU0czRNTFc3c09uaVdHUHZGd0lYWTloWkdLeXpUc3Y5NlF2Zm1tUnRTVVRIbzZzV1dSWnYvNWxzWFI3N000ak14aGtISnRIdzBhUzlYeEh3Nmg4MFpkWDl5N2xEeldZQzREWjh3RklIamovK0hwL1ZNUGdGdjBHRXpnKzNaVzc4ZFk1WFdvOUtoN3MyWUNKRENDNnI5bThnR3VxL0ZqNG9tTVJJLS1IbzFFOGk0WFFHVEF5KzhCM1Y4RmlBPT0%3D--df8c94cf4d18c054dd7c2c3b8026ac4690fe674c;
107
+ path=/; HttpOnly
108
+ - login_user=; path=/
109
+ body:
110
+ encoding: UTF-8
111
+ string: ''
112
+ http_version:
113
+ recorded_at: Mon, 03 Aug 2015 22:11:57 GMT
114
+ - request:
115
+ method: get
116
+ uri: http://localhost:3000/auth/access_token?code=bW9VYWN1aUZEWmVaczlWczBGbmF0Q2M5YmQzazljM0dvcFFPZnpUd2VIaloxeThhU1hMVktwZUZCQXc4SUY3QS0tamlSbDRxc2NvamhOZHhxYlhGZVl1Zz09--6f5be7cd80a4181e43c9e59c7bea1d4b5ea4ec19
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ''
120
+ headers:
121
+ Accept:
122
+ - application/ld+json
123
+ Accept-Encoding:
124
+ - gzip, deflate
125
+ Content-Type:
126
+ - application/ld+json
127
+ Cookie:
128
+ - _internal_session=Ym54MEVLUGZvamsrMGFZUlBQOG1VZE9DWUNrTlg0dnRRcDI4L0Z4ZnBiSzZIQzJPMEpkUHhhYmJWZCtad2JVZVo4SEhIcjFvSjJja0VYT255dEFFcXY5aVgyeE9HZDI2aU1oRlA2aE4zK29vS3IzWFdPN1BiaUJwNWJFRUZaWFU1RndKeDhZZW51QlZyZ05jUjR3MUUySlVNU1BDbDdkUGhMRWpxc05SVlFCVXN0N0ZGKzVIMDk2azVvek80bWxGRkVTKzlUVVRSbFVpeHM3UjFpMCs2TE1ZZ2ZYMENIUzVqK0hNWGM3aHdEZGFLekZPZUc2R0hNRks4clMrRkFDUkJQQzN3V0lzWmcwRFNSWXQyT1JuUTZrTDFWZ0I3YlVvYzZlcUNRZWFTNjIxNmNFNzFUV24xc0d0VGVTZzhBb1pUMlhrTzhNVEZKT1dpdHVGTVdPeWg3SXN4RXVMOFV1THVLajkweHR1M3AyWWR4a3N2LzM2RzhoYUZPam4wSm9tRVBQVGtUampIc2ZBdEI1Znl4MlNXMDdLcnlkRkU0czRNTFc3c09uaVdHUHZGd0lYWTloWkdLeXpUc3Y5NlF2Zm1tUnRTVVRIbzZzV1dSWnYvNWxzWFI3N000ak14aGtISnRIdzBhUzlYeEh3Nmg4MFpkWDl5N2xEeldZQzREWjh3RklIamovK0hwL1ZNUGdGdjBHRXpnKzNaVzc4ZFk1WFdvOUtoN3MyWUNKRENDNnI5bThnR3VxL0ZqNG9tTVJJLS1IbzFFOGk0WFFHVEF5KzhCM1Y4RmlBPT0%3D--df8c94cf4d18c054dd7c2c3b8026ac4690fe674c;
129
+ login_user=
130
+ User-Agent:
131
+ - Ruby
132
+ response:
133
+ status:
134
+ code: 200
135
+ message: 'OK '
136
+ headers:
137
+ X-Frame-Options:
138
+ - SAMEORIGIN
139
+ X-Xss-Protection:
140
+ - 1; mode=block
141
+ X-Content-Type-Options:
142
+ - nosniff
143
+ Content-Type:
144
+ - '["application/ld+json"]; charset=utf-8'
145
+ Etag:
146
+ - W/"724970562741a9d80cc74accee96ef74"
147
+ Cache-Control:
148
+ - max-age=0, private, must-revalidate
149
+ X-Request-Id:
150
+ - 0e2ee56f-270e-46d3-a210-2ecd631c51f6
151
+ X-Runtime:
152
+ - '0.337060'
153
+ Server:
154
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
155
+ Date:
156
+ - Mon, 03 Aug 2015 22:11:57 GMT
157
+ Content-Length:
158
+ - '306'
159
+ Connection:
160
+ - Keep-Alive
161
+ Set-Cookie:
162
+ - _internal_session=MDVEN3Rwd2QrM0xpUlBVcVZpMjRzejAraElnOGttQk5FSWphZHdiR0hvSmMzSkZlc3MxZEt3QmxEdFZOVFcxSnRyNWhtQTg2T1VramtsOWZhMlFRYk1ib0lpaVlZbXhjUjdQZk5OWGRaYzhWdmE3eHFYcHBXcnFrY3NSc1lxbDlNeGRkRk9sVjM5MjVCV291RkxmdGxvejRkcG8xZzdsS3RQeS9QTjkzek15dHF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hZWpiYW43cEZiUmRxR2VzVEhBRU82b1hjU1FzcFQ5TVZnVT0tLXErcSt5MTUra3pvUWFjdXFGMmhoalE9PQ%3D%3D--5c476e33900be50060e676424af6b2f89ab5a0dd;
163
+ path=/; HttpOnly
164
+ - login_user=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 -0000
165
+ body:
166
+ encoding: UTF-8
167
+ string: '{"accessToken":"YUhIWmxzVDQ2TkFOOTJVMWs5UUw1MWhXamZ4OXVSYnFaaTFmTkNQNFV1RlhkN1lISEkzU3REZzVCdkhKNzNZeEtabVlQOHRTeXdzbExkZjBmSEt1QytYbjR1MTQ1Q1k3ZEpxZXowcWZOanRHNCtMdGdJR3dLbDJEYmFJSkNrTkotLTMwRk1KRjljNklVVi9FdTYyTnlqSWc9PQ==--6982c93efff8ffa2182e7f39c4c4b296a4f53b0f","tokenType":"Bearer","expiresIn":3600}'
168
+ http_version:
169
+ recorded_at: Mon, 03 Aug 2015 22:11:57 GMT
170
+ - request:
171
+ method: get
172
+ uri: http://localhost:3000/annotations/bar/
173
+ body:
174
+ encoding: US-ASCII
175
+ string: ''
176
+ headers:
177
+ Accept:
178
+ - application/ld+json
179
+ Accept-Encoding:
180
+ - gzip, deflate
181
+ Content-Type:
182
+ - application/ld+json
183
+ Authorization:
184
+ - Bearer YUhIWmxzVDQ2TkFOOTJVMWs5UUw1MWhXamZ4OXVSYnFaaTFmTkNQNFV1RlhkN1lISEkzU3REZzVCdkhKNzNZeEtabVlQOHRTeXdzbExkZjBmSEt1QytYbjR1MTQ1Q1k3ZEpxZXowcWZOanRHNCtMdGdJR3dLbDJEYmFJSkNrTkotLTMwRk1KRjljNklVVi9FdTYyTnlqSWc9PQ==--6982c93efff8ffa2182e7f39c4c4b296a4f53b0f
185
+ Cookie:
186
+ - _internal_session=MDVEN3Rwd2QrM0xpUlBVcVZpMjRzejAraElnOGttQk5FSWphZHdiR0hvSmMzSkZlc3MxZEt3QmxEdFZOVFcxSnRyNWhtQTg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JaQ2xLYlpsNzkrKytDRlNDZ3dDaE05MjlwTERwQUJVV01idFZDZmVoT0hzZE9hRGhsWGhaOE9pV1FhRXYzNXdnckROWFJ5WjVDNTRvazNPTkV2S0VnOHVBd3hlQmtmZ1FhcDBhZWpiYW43cEZiUmRxR2VzVEhBRU82b1hjU1FzcFQ5TVZnVT0tLXErcSt5MTUra3pvUWFjdXFGMmhoalE9PQ%3D%3D--5c476e33900be50060e676424af6b2f89ab5a0dd
187
+ User-Agent:
188
+ - Ruby
189
+ response:
190
+ status:
191
+ code: 302
192
+ message: 'Found '
193
+ headers:
194
+ X-Frame-Options:
195
+ - SAMEORIGIN
196
+ X-Xss-Protection:
197
+ - 1; mode=block
198
+ X-Content-Type-Options:
199
+ - nosniff
200
+ Location:
201
+ - http://localhost:3000/bar/search
202
+ Content-Type:
203
+ - text/html; charset=utf-8
204
+ Cache-Control:
205
+ - no-cache
206
+ X-Request-Id:
207
+ - a5332e35-fb2c-423d-a931-4c7646d13462
208
+ X-Runtime:
209
+ - '0.006822'
210
+ Server:
211
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
212
+ Date:
213
+ - Mon, 03 Aug 2015 22:11:57 GMT
214
+ Content-Length:
215
+ - '98'
216
+ Connection:
217
+ - Keep-Alive
218
+ Set-Cookie:
219
+ - _internal_session=dXZoSDIyUEszV0JZMWw1WVIwSEVDQ295TFRVemtGZHgvRHNQWmRKSkVwSEJSNGdQTGtJQTV1TGtZUE4zR2RsUkwvcTZkclJlSzdtZjRFdU1IdlBadVdwUDl1SFpFZisyT2lGLzBFL25kUlJxa2xqdjRWazdtNFVibkRacXQvNjdvRUdhKzlYa2lzZVNlS29oL1NESVdLMVVJMyt0STBHdzVicEw0Vmd5TUJWS3pOL3A5QWJEdHdWTmxSRTdKdk1sclJNQXc3SmV6Qnk3R2dWTjZnYmFQS3B1WWxZU0kzeTMvM3ZWekcvM1pVd2l6Z1VMWTc0RDA0MFVmYW1pYWI3VWdaWVIyWWcxaDJ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219c219e5e37da068b0;
220
+ path=/; HttpOnly
221
+ body:
222
+ encoding: UTF-8
223
+ string: <html><body>You are being <a href="http://localhost:3000/bar/search">redirected</a>.</body></html>
224
+ http_version:
225
+ recorded_at: Mon, 03 Aug 2015 22:11:57 GMT
226
+ - request:
227
+ method: get
228
+ uri: http://localhost:3000/bar/search
229
+ body:
230
+ encoding: US-ASCII
231
+ string: ''
232
+ headers:
233
+ Accept:
234
+ - application/ld+json
235
+ Accept-Encoding:
236
+ - gzip, deflate
237
+ Content-Type:
238
+ - application/ld+json
239
+ Authorization:
240
+ - Bearer YUhIWmxzVDQ2TkFOOTJVMWs5UUw1MWhXamZ4OXVSYnFaaTFmTkNQNFV1RlhkN1lISEkzU3REZzVCdkhKNzNZeEtabVlQOHRTeXdzbExkZjBmSEt1QytYbjR1MTQ1Q1k3ZEpxZXowcWZOanRHNCtMdGdJR3dLbDJEYmFJSkNrTkotLTMwRk1KRjljNklVVi9FdTYyTnlqSWc9PQ==--6982c93efff8ffa2182e7f39c4c4b296a4f53b0f
241
+ Cookie:
242
+ - _internal_session=dXZoSDIyUEszV0JZMWw1WVIwSEVDQ295TFRVemtGZHgvRHNQWmRKSkVwSEJSNGdQTGtJQTV1TGtZUE4zR2RsUkwvcTZkclJlSzdtZjRFdU1IdlBadVdwUDl1SFpFZisyT2lGLzBFL25kUlJxa2xqdjRWazdtNFVibkRacXQvNjdvRUdhKzlYa2lzZVNlS29oL1NESVdLMVVJMyt0STBHdzVicEw0Vmd5TUJWS3pOL3A5QWJEdHdWTmxSRTdKdk1sclJNQXc3SmV6Qnk3R2dWTjZnYmFQS3B1WWxZU0kzeTMvM3ZWekcvM1pVd2l6Z1VMWTc0RDA0MFVmYW1pYWI3VWdaWVIyWWcxaDJyNWRlSncyMWFxZ0VZbVdCSThwRUthcTFTTTlrT0dEVUdIaysvaTVHM2JMdVVadkFWVnl0bnp2UlZzZHdDUXJoenUyN21LZ3ArM1RVZGNIVHlaOE9BMXpJTVdXZmZOR0Q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- 1; mode=block
254
+ X-Content-Type-Options:
255
+ - nosniff
256
+ Content-Type:
257
+ - application/ld+json; charset=utf-8
258
+ Etag:
259
+ - W/"e5297ceaeca62c9eb95fd6d398b9880b"
260
+ Cache-Control:
261
+ - max-age=0, private, must-revalidate
262
+ X-Request-Id:
263
+ - 9edc440f-691d-4cff-9c15-f2df6f0e44e0
264
+ X-Runtime:
265
+ - '2.367324'
266
+ Server:
267
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
268
+ Date:
269
+ - Mon, 03 Aug 2015 22:11:59 GMT
270
+ Content-Length:
271
+ - '856'
272
+ Connection:
273
+ - Keep-Alive
274
+ Set-Cookie:
275
+ - _internal_session=ek15N3NXcUpyd2Z5a2NQdnY2bC8wOStNR0p2YnlHNXBzQnpidWhaYms1Uk9pTVNXMnZZZ2t5UDRpK3l1UmJ3eFU4c3pPc2c3SHFwTDF3d1JzbFRwN2JmQ3E4WndOSTloeWxDMHBiMFpGcWo3TDlJMThqR0tDOWtmWWJNVFBuRWhEQmtuTElETmlSQVZlTmRLL1BFSkhGbCsya2l5VGNHRWZoc29iVGNMbzVtbzZKbkp3WXlPS1VOZjUzVXppNmNQR3dndU5ubmIvRVdzTVA1eEprQ0Z2aUFQM2R0RC9tMW9zRTVWR2tOYXRrNVpNcW8vSXErbjdPRHlUR29EQXVzYmw1b3FqdDE0UkxXNEl5NDlOKzFUbGhPdmd4em9CZUFYR0FJY2VGK2hlVGlYRlBiN2lNR1g2OWR4QzludzZrUU1vU0JxSlJPUHY1S1BZQVpDVDJIZWZRYWIvSFJ3RklYSHpiVDB2MUI4bW1YSXBMSmowTW5IUnVQbWt0Q1dpbkYyaW1OMUJUWDl5dHJkWUsrM2p0bHFZaWltZUh5SVpSeTJzdkRnRzJzMFoycVI3Y0hyYzlqcURaUDFQQjBhVk5hWjY5T3BwRy9XamNBR3FhZS9uWEluVTBYUGRMTzV3S0RTUEpCajZtOEF4VjYwdHBZTEJjUDg5TDRQLzZXTUd4S25rU2R2MDduaVo4TUduT1l4Mk9HeDBkTi9sMEdTYzY1M3FaanVLa2FFcVpCOGxRMUZXVlNGTDdwVVdkaHhSUThiRndPb1lMSUtFOEY3VlFIb2EyWXR0emhIcjBkdGZ5M3B5NHk0KzVOYWIyWTYwN3Buck1RTEVOVE9aS0FpUURxakJXajltRlpGZUUyUi9OWkczcy9lbStFbTY4NFlWNVQ3OTR1STFRSFh6TFk4blAxNG1vc0h6N3VKUkcyeThGZUY2MzcyVHh3NzEvS2ZObnUxdklURGdnOW51OGJNYVJ3TU5mU0k4K3o0b1JHUjRCRXVidFdKbzN2YjdtOFF6N0lwOWJUMVRDWjA3YUlEVlNNS0lyT09udHNEZzhHTjNLcU1ZQnhwTjZ4RjI1TVJIbFpldFNDUm1QalVORE11RzFsY0ZNZE41YmE4UENlT2pKYUhyVlNkaXNxb3J5aitqL1hvZFhIQjR1eXR6dTNUWWNEQk1ORUFZM1hnd3lVeXRHbER0TFJlcmdmV3JMSXlaSWR0RlNRakN3cDRWK25sbHVoR2RGU3JNbjMyQUVpbDFXczJCYW51VWErUWlYbWZWNG00VmF6TTZTNEJlQlFueXBxSUFYQzkrN0F6WUtUTlVjRXNzenBmbmJrYmR3ST0tLUs3eXZJQnNFU0NtZlpZVXdXL3UwQVE9PQ%3D%3D--5c503bc7e1c4f69604f9027b50d018f1339c8216;
276
+ path=/; HttpOnly
277
+ body:
278
+ encoding: UTF-8
279
+ string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":2},"resources":[{"@id":"http://your.triannon-server.com/annotations/bar/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
280
+ love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/66/75/cc/61/6675cc61-4a6d-4959-ba09-8d64f5c5d03e","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
281
+ love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/bar/search"}'
282
+ http_version:
283
+ recorded_at: Mon, 03 Aug 2015 22:11:59 GMT
284
+ - request:
285
+ method: get
286
+ uri: http://iiif.io/api/presentation/2/context.json
287
+ body:
288
+ encoding: US-ASCII
289
+ string: ''
290
+ headers:
291
+ Accept:
292
+ - application/ld+json, application/json
293
+ Accept-Encoding:
294
+ - gzip, deflate
295
+ User-Agent:
296
+ - Ruby
297
+ response:
298
+ status:
299
+ code: 200
300
+ message: OK
301
+ headers:
302
+ Date:
303
+ - Mon, 03 Aug 2015 22:16:40 GMT
304
+ Server:
305
+ - Apache/2.2.15 (Red Hat)
306
+ Last-Modified:
307
+ - Tue, 28 Jul 2015 23:04:16 GMT
308
+ Accept-Ranges:
309
+ - bytes
310
+ Content-Length:
311
+ - '4235'
312
+ Cache-Control:
313
+ - max-age=86400
314
+ Expires:
315
+ - Tue, 04 Aug 2015 22:16:40 GMT
316
+ Content-Type:
317
+ - application/ld+json
318
+ Access-Control-Allow-Origin:
319
+ - "*"
320
+ body:
321
+ encoding: UTF-8
322
+ string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
323
+ \ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
324
+ \ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
325
+ \ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
326
+ \ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
327
+ \ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
328
+ \ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
329
+ \ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
330
+ \ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
331
+ \ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
332
+ \ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
333
+ \ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
334
+ \ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
335
+ \ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
336
+ \ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
337
+ \ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
338
+ \ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
339
+ {\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
340
+ {\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
341
+ \ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
342
+ \"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
343
+ \"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
344
+ \ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
345
+ \ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
346
+ \"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
347
+ \"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
348
+ {\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
349
+ \ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
350
+ \ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
351
+ \ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
352
+ \"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
353
+ \ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
354
+ \ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
355
+ \ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
356
+ {\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
357
+ {\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
358
+ {\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
359
+ \ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
360
+ \ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
361
+ \ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
362
+ \"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
363
+ \"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
364
+ \"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
365
+ \"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
366
+ \"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
367
+ \"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
368
+ \"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
369
+ \"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
370
+ \ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
371
+ \ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
372
+ \ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
373
+ \ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
374
+ \ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
375
+ \"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
376
+ \ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
377
+ \ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
378
+ \ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
379
+ \"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
380
+ http_version:
381
+ recorded_at: Mon, 03 Aug 2015 22:11:59 GMT
382
+ - request:
383
+ method: get
384
+ uri: http://iiif.io/api/presentation/2/context.json
385
+ body:
386
+ encoding: US-ASCII
387
+ string: ''
388
+ headers:
389
+ Accept:
390
+ - application/ld+json, application/json
391
+ Accept-Encoding:
392
+ - gzip, deflate
393
+ User-Agent:
394
+ - Ruby
395
+ response:
396
+ status:
397
+ code: 200
398
+ message: OK
399
+ headers:
400
+ Date:
401
+ - Mon, 03 Aug 2015 22:16:40 GMT
402
+ Server:
403
+ - Apache/2.2.15 (Red Hat)
404
+ Last-Modified:
405
+ - Tue, 28 Jul 2015 23:04:16 GMT
406
+ Accept-Ranges:
407
+ - bytes
408
+ Content-Length:
409
+ - '4235'
410
+ Cache-Control:
411
+ - max-age=86400
412
+ Expires:
413
+ - Tue, 04 Aug 2015 22:16:40 GMT
414
+ Content-Type:
415
+ - application/ld+json
416
+ Access-Control-Allow-Origin:
417
+ - "*"
418
+ body:
419
+ encoding: UTF-8
420
+ string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
421
+ \ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
422
+ \ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
423
+ \ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
424
+ \ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
425
+ \ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
426
+ \ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
427
+ \ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
428
+ \ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
429
+ \ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
430
+ \ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
431
+ \ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
432
+ \ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
433
+ \ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
434
+ \ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
435
+ \ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
436
+ \ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
437
+ {\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
438
+ {\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
439
+ \ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
440
+ \"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
441
+ \"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
442
+ \ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
443
+ \ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
444
+ \"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
445
+ \"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
446
+ {\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
447
+ \ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
448
+ \ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
449
+ \ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
450
+ \"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
451
+ \ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
452
+ \ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
453
+ \ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
454
+ {\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
455
+ {\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
456
+ {\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
457
+ \ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
458
+ \ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
459
+ \ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
460
+ \"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
461
+ \"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
462
+ \"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
463
+ \"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
464
+ \"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
465
+ \"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
466
+ \"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
467
+ \"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
468
+ \ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
469
+ \ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
470
+ \ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
471
+ \ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
472
+ \ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
473
+ \"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
474
+ \ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
475
+ \ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
476
+ \ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
477
+ \"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
478
+ http_version:
479
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
480
+ - request:
481
+ method: delete
482
+ uri: http://localhost:3000/annotations/bar/%2F44%2F88%2F5a%2F75%2F44885a75-6c5b-4da8-8871-bb60932e42f7
483
+ body:
484
+ encoding: US-ASCII
485
+ string: ''
486
+ headers:
487
+ Accept:
488
+ - application/ld+json
489
+ Accept-Encoding:
490
+ - gzip, deflate
491
+ Content-Type:
492
+ - application/ld+json
493
+ Authorization:
494
+ - Bearer YUhIWmxzVDQ2TkFOOTJVMWs5UUw1MWhXamZ4OXVSYnFaaTFmTkNQNFV1RlhkN1lISEkzU3REZzVCdkhKNzNZeEtabVlQOHRTeXdzbExkZjBmSEt1QytYbjR1MTQ1Q1k3ZEpxZXowcWZOanRHNCtMdGdJR3dLbDJEYmFJSkNrTkotLTMwRk1KRjljNklVVi9FdTYyTnlqSWc9PQ==--6982c93efff8ffa2182e7f39c4c4b296a4f53b0f
495
+ Cookie:
496
+ - _internal_session=MDVEN3Rwd2QrM0xpUlBVcVZpMjRzejAraElnOGttQk5FSWphZHdiR0hvSmMzSkZlc3MxZEt3QmxEdFZOVFcxSnRyNWhtQTg2T1VramtsOWZhMlFRYk1ib0lpaVlZbXhjUjdQZk5OWGRaYzhWdmE3eHFYcHBXcnFrY3NSc1lxbDlNeGRkRk9sVjM5MjVCV291RkxmdGxvejRkcG8xZzdsS3RQeS9QTjkzek15dHFYb01HdzgrVHRCNVRZSGpad2EreGlibm4xdlpXY3d1Y0U2NGVpL0g3YkxFUm9sRG5naEJQeXpCaksyc29PR1dHV3pyUStHdUQ2WUZ2Nng5d01ja1dUcDdaS3I1VDQwVVRLWEo0V1VMMG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
499
+ response:
500
+ status:
501
+ code: 204
502
+ message: 'No Content '
503
+ headers:
504
+ X-Frame-Options:
505
+ - SAMEORIGIN
506
+ X-Xss-Protection:
507
+ - 1; mode=block
508
+ X-Content-Type-Options:
509
+ - nosniff
510
+ Location:
511
+ - http://localhost:3000/annotations?anno_root=bar
512
+ Cache-Control:
513
+ - no-cache
514
+ X-Request-Id:
515
+ - 13a84f05-7a21-4fae-b633-4681194ef986
516
+ X-Runtime:
517
+ - '0.335994'
518
+ Server:
519
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
520
+ Date:
521
+ - Mon, 03 Aug 2015 22:12:00 GMT
522
+ Connection:
523
+ - Keep-Alive
524
+ Set-Cookie:
525
+ - _internal_session=RkdKbGJHZVB3L0lTbzhFQUgvMFZHNENWd1A4QWMwVVJxSFJPQW1VZG5hV3ZDdWh0ZnNrZGV3SjZUZW1vVm5NdGxPVmprTUNGeWtFZ0NtRTlYM2YzM0RNL2ovQ01US0lJODcwdTV3cGtMNFczbEJ1SXh1azgzbjB2bEhCdXkyNlJ3dzZ2LzRJcmlCUDliMzVtZ0ZSbmExVHBlZTdLb0ViZkZCR25JN25HMWE3SzR4Tlh1SXkrV3hqUVBVWGJ2enp3Zkx4d0RDdlBiZGJJM2xrRmFmazQ2N0orVXBUM1BRaE5XVmJxVWkxQnZNNmphcVRoaFVEdjRUUjJvTmxUemtlcWVlaWFyT2VpNmpla3BHZmhBeC8zQ1g5dlV2a0oxcGkxc3A5ckU5Sm5ZbXZRaElvblNxekRxMEtBZFppZGd1MUQvbCtESEtubjV2TVpobEV5ZW9veU1DUURTNkVIOW1TQlZIMjh1Z1VoWGRXQWRxQW8wUFg4MTdYcnNGbTF5SEJFSUc2dTlFSDhkOXM4TnVrRGlIblNZYkgrZm4zQ0NYbzBnZUUyV21Kckd2clVLcFdZcFprcXBMdFUzV1RrK2hVYlJxbzlWUnBoWUc1UzJwMFp3Zm01SS9wZC9obHpuNldWZlFZSDhWU3BlMzNBTGhiQ2U0SE1YZHNzc01TVG0vTHNKTGRRRHJOMVVmU0tCQTNnWmpwbEkrcUU0dmw1ei9pTDdXSjVBQk9lVXRmbFIrQXNwNnZrT0NxUGNLazZOWmpIelBuRk9odmdFcXE3K0JPNDNLOCtFSjVnM2Q1Y1VzV3J2dzJlVjI5Ty84K0RsRitHUTl4RnNtcmFwaDJhSGtQQ1lYMktvV0dBYVN0UnVtQkUyL3ZacGQxRjlzL2dSbUtnMDZndnF3M1NwVVhoaXRxVUhNWVlZLzU2ZkZOWlYvRTNMVlJSd2tJc3hQMk43YjhVamVlejNTOEduYnhlY1dkZDFKM242S2VpcFc5QVVaU1JpZWVVSlUyc3AvMUt0ZU1OZVp3UkdzbUJTWWpEYmgvUWdmYTdCVEJTZVhRa3YvMWtuL0NzM280MWFMVnNuQ1JKRXNMQzJrZkl1VmdnN2JadlMrTHA3Ly8zdytFYkd5dDI0SlVIMGg5clJvd2Fqd0xJeS9NenJxVDRVUVM3Qy9udFNWUVlFRDhLQW1CalkyeURJTEtLYVBIQlFWVHpnc0VlQWlyb0ZWcmVnblZ0SjhhelJIYkFmQ1VNQ0FFblBrcHVaNTZ6dFRheWJBU3QvN0Rqa2E5bGZhTThhcGpNbThxTUZPejd5WjVLVW5QbHpzdEJBL2lJbHB5TFcyUUdKOVFnREQvVTcySlZLTkhDbnR6TGZOTFdSd1psNkJDSUM3WEZZMWhnN0NDd1pIM1lkYUpWVmFiOHBDTzlIMGJqS2dWRml4VmlxS29zZkVDMElZbVVHby9iRGx5MWtZNm40UkR6WlpmcUZ3PT0tLW5zeHdVM2dMUDRBN21LUXF5SURnb0E9PQ%3D%3D--f792bd6b34b14413fa9026fbade0e8d4fe914d95;
526
+ path=/; HttpOnly
527
+ - request_method=DELETE; path=/
528
+ body:
529
+ encoding: UTF-8
530
+ string: ''
531
+ http_version:
532
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
533
+ - request:
534
+ method: delete
535
+ uri: http://localhost:3000/annotations/bar/%2F66%2F75%2Fcc%2F61%2F6675cc61-4a6d-4959-ba09-8d64f5c5d03e
536
+ body:
537
+ encoding: US-ASCII
538
+ string: ''
539
+ headers:
540
+ Accept:
541
+ - application/ld+json
542
+ Accept-Encoding:
543
+ - gzip, deflate
544
+ Content-Type:
545
+ - application/ld+json
546
+ Authorization:
547
+ - Bearer YUhIWmxzVDQ2TkFOOTJVMWs5UUw1MWhXamZ4OXVSYnFaaTFmTkNQNFV1RlhkN1lISEkzU3REZzVCdkhKNzNZeEtabVlQOHRTeXdzbExkZjBmSEt1QytYbjR1MTQ1Q1k3ZEpxZXowcWZOanRHNCtMdGdJR3dLbDJEYmFJSkNrTkotLTMwRk1KRjljNklVVi9FdTYyTnlqSWc9PQ==--6982c93efff8ffa2182e7f39c4c4b296a4f53b0f
548
+ Cookie:
549
+ - _internal_session=MDVEN3Rwd2QrM0xpUlBVcVZpMjRzejAraElnOGttQk5FSWphZHdiR0hvSmMzSkZlc3MxZEt3QmxEdFZOVFcxSnRyNWhtQTg2T1VramtsOWZhMlFRYk1ib0lpaVlZbXhjUjdQZk5OWGRaYzhWdmE3eHFYcHBXcnFrY3NSc1lxbDlNeGRkRk9sVjM5MjVCV291RkxmdGxvejRkcG8xZzdsS3RQeS9QTjkzek15dHFYb01HdzgrVHRCNVRZSGpad2EreGlibm4xdlpXY3d1Y0U2NGVpL0g3YkxFUm9sRG5naEJQeXpCaksyc29PR1dHV3pyUStHdUQ2WUZ2Nng5d01ja1dUcDdaS3I1VDQwVVRLWEo0V1VMMGdRNHRiUzN4d0xISzBMdnovQ0xjclZQS1cxdURza1BqTGlNQllYWEJUeUkvTmYwV0Fzb1krSlZnREdXbjRvOW9HMDNUZ2JVMXgvU1JSamtqR0wzQzVYT205L2Z4WVlvSk9qSWNpM1ZrczV2dmMvUS8wTDJHSmprcjZoQjNpdDhMc2l1QjQ5ckJ5SmJNQmNaMU1YYzBuWHRTWExxYk93aEV2KzRqYmc3UVltMDI2Y3dMODB1NzJNa3liSUJ2MVFRK251SzBlM3Y2Mm8zRk9rVitaN1VmQTZ0UUM5SmlHa3FnZFpZQ2NjWGF5QUtYNW0yWVVITWc2VkRZU04xYlV1YnFBaGY0VFpDU2FMVkZFQ04zT3ZjZEU0VVhCbktIanp6MUd2TVMvOG9CdllzK3gwVkp4UklTMlpBWEEzNFRKRTUxMXJJb2lsUlloZis2MEdLckkyRENGOHBPNU15Q3RXRUY2WENWL1ZYaEtVd3JMcGZWaFZ6bExxV0ZxdWFRaEV1WHQzMTFrRFBsOTBUNFNXbWJkek9STzc2UngrOGJITTd6enJFSXZjYW55enpUS3Qzd2VDVStFRHpqV0s1RlRIbW45RWV5anIwNWtrSlkzY0pobEFVekxXT2xDV1hWMUxwbmw5ZzJpQUFtYm9yaTVQOGhQL3B4S1ZDajNvZ25DUFIzWlpRQXA1eURHSTh6b0R5SndUa0NLdExxQWhBeDIrZExaeG9UYjQ4Vkg4OUx5L0d5VmFNL0VYUDlSZ3NFWjY2UWJOZHpFVWR2Ulo4U2tXU2JaQ2xLYlpsNzkrKytDRlNDZ3dDaE05MjlwTERwQUJVV01idFZDZmVoT0hzZE9hRGhsWGhaOE9pV1FhRXYzNXdnckROWFJ5WjVDNTRvazNPTkV2S0VnOHVBd3hlQmtmZ1FhcDBhZWpiYW43cEZiUmRxR2VzVEhBRU82b1hjU1FzcFQ5TVZnVT0tLXErcSt5MTUra3pvUWFjdXFGMmhoalE9PQ%3D%3D--5c476e33900be50060e676424af6b2f89ab5a0dd
550
+ User-Agent:
551
+ - Ruby
552
+ response:
553
+ status:
554
+ code: 410
555
+ message: 'Gone '
556
+ headers:
557
+ X-Frame-Options:
558
+ - SAMEORIGIN
559
+ X-Xss-Protection:
560
+ - 1; mode=block
561
+ X-Content-Type-Options:
562
+ - nosniff
563
+ Content-Type:
564
+ - text/html; charset=utf-8
565
+ Cache-Control:
566
+ - no-cache
567
+ X-Request-Id:
568
+ - 190c2635-14a1-4917-b74e-c12ef725134b
569
+ X-Runtime:
570
+ - '0.195509'
571
+ Server:
572
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
573
+ Date:
574
+ - Mon, 03 Aug 2015 22:12:00 GMT
575
+ Content-Length:
576
+ - '281'
577
+ Connection:
578
+ - Keep-Alive
579
+ Set-Cookie:
580
+ - _internal_session=bDhRNjBkU2NONTgzaXpMOW5IdlJwbWJ1OFptQjVNNmI1OXR6QUhYcENmNTFaN2Q4ajBaOUdCU3RqN1phalh5NFpQbFI2eFd3aUgrMjhUWWVxSDRLZFVnYzNYUXVIQllZOXJZWUF6TmpYVWhKSGtNdUxrSFJlT0h5SVNtWHRXQm1KQ09zc3ZOZmNydnNnVTNRSy9ZcytQODlvNy9pZXpxWWVWNk45aWVkeHd1d2h4bGJzajdCb0dYMWpaZXRaNEpDV1NEOFBXRWhGbXhpK0NMcFprMWkyRGRLN0Qrdm9sbFFoaEJxWlJ3NHlqVVRQN1RGTmRtU3NmRDhRcU1IRWhuOUZWblN5S0x4ZTRJWmFnYm8ybVk1Ym4rbzV1THpRelkzSGN6VFdTdE9GdnBrZW0wTFMvbmxRY0MxRVVlbTAxd1YrWW1MMjZGc0V6VnArWkF1dWlVYnZWRkl4SmkzbUNGK0d5Sk0xakEvZzg5OTA3YzRrN3RMMG0wTjhwdzRMdUZzZWlNd2gvUVVyaDNVTW9CN0FXZStyOE8vbjUrbU0rRmdkQ3hGdVI5MjRoT0hheHBUOU4rNHhUU1VWM1A0dnhLcS9uVEdqL1BjMGw3b2F0MG90NXBEZDBTMFZlam03UG5DdTFNckZMblZsS05PaW16WnhmOE5IbEh4UitZTVgyYms5bkZhbmlhQ0xxWllIYmxnNG9wYWUza2VYaXR3WmQzd3NSSThOQUcyRE10anNFWlo0dlVsOUNwaXpWZUg4Z1A4TG9tSGJvMFBmblZCdFFkU1dYbXRjc09EaFJRRVQzblk3dElBb25MOStWUXAyRUNlRjIwcjNZWmRId0hWTFhaZlZVQTJhN2hWaG80Y092T3QrR2ZLZmlkeU5VaUlLMnQwd0hCaXRGVVpSUkh4MmdpUHJ2NVFlc1l6dmExVENSb0l5R0lEOUhJSEJuUzBmY1ovekM1azYwWWcxaUJyNjRkcG9CNVZQQUsyU09CSytTVFFNblpUTDhkYjF0WHVlRWpOaG1BakxPdkZWWHJHVVdBT1FrQUZzWCtHOW55ZG9SVVN4aUl6NFdDUEQyUXdyL01LNkdKbTJTTWJVajZqNXhvZWh6WDFTQnNTdy90cVdQWGVUaTZqNUtmWVY5M3B0Vy9xc2JFYnE1NkM2L2FMbnJpSDBZOWJCQWloSVFlQlplTkdrNXdLQjBmalNHUnB0WlZWK2tVc29RZ2kxSEoyVG1td1pwWEk3dXVWSE9zZHY0MXJHME9DbVFqemc0TkJHT29PTzF4S0d6ZGJ6bmM1eFZZQ2NMMERLL2N4b21nV3NXOCtFcUt0YXJYVnBBcz0tLVdKT2o2OGg3cnUxcVZBcnJvVTJZOEE9PQ%3D%3D--1c9bb820962adb1e2cfb5d886ef3deb769b2f113;
581
+ path=/; HttpOnly
582
+ - request_method=DELETE; path=/
583
+ body:
584
+ encoding: UTF-8
585
+ string: "<h2>error getting bar//66/75/cc/61/6675cc61-4a6d-4959-ba09-8d64f5c5d03e
586
+ from LDP</h2>Discovered tombstone resource at /anno/bar/66/75/cc/61/6675cc61-4a6d-4959-ba09-8d64f5c5d03e
587
+ {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-08-03T15:11:53.089-07:00}"
588
+ http_version:
589
+ recorded_at: Mon, 03 Aug 2015 22:12:00 GMT
590
+ recorded_with: VCR 2.9.3