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
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/delete_does_not_log_404_exceptions
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 698aa0c4-6487-414a-8c86-823dc77d3018
33
- X-Runtime:
34
- - '0.027546'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:46 GMT
39
- Content-Length:
40
- - '1490'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/delete_does_not_log_404_exceptions from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/delete_does_not_log_404_exceptions. Reason:\n<pre>
51
- \ Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n<br/> \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
64
- recorded_with: VCR 2.9.3
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/delete_does_not_log_410_exceptions
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 202013ff-0754-4dde-bd06-aba80f116b96
33
- X-Runtime:
34
- - '0.029823'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:46 GMT
39
- Content-Length:
40
- - '1490'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/delete_does_not_log_410_exceptions from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/delete_does_not_log_410_exceptions. Reason:\n<pre>
51
- \ Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n<br/> \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
64
- recorded_with: VCR 2.9.3
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/delete_logs_exceptions
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 1dabd250-f2e9-4fbe-b1e0-b8b04be99db9
33
- X-Runtime:
34
- - '0.028808'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:46 GMT
39
- Content-Length:
40
- - '1466'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/delete_logs_exceptions from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/delete_logs_exceptions. Reason:\n<pre> Not
51
- Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
64
- recorded_with: VCR 2.9.3
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/500_is_false
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 61e53acf-5c6e-4ddf-b575-a1944ed48bff
33
- X-Runtime:
34
- - '0.037267'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:41 GMT
39
- Content-Length:
40
- - '1446'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/500_is_false from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/500_is_false. Reason:\n<pre> Not Found</pre></p><hr
51
- /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:41 GMT
64
- recorded_with: VCR 2.9.3
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/200_is_true
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 0b2e399a-e132-42ff-8b81-22b3cfeee012
33
- X-Runtime:
34
- - '0.022067'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:41 GMT
39
- Content-Length:
40
- - '1444'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/200_is_true from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/200_is_true. Reason:\n<pre> Not Found</pre></p><hr
51
- /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:41 GMT
64
- recorded_with: VCR 2.9.3
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/202_is_true
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 52dcb50d-fa39-4ef0-b7b2-ff1357b627b6
33
- X-Runtime:
34
- - '0.022346'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:41 GMT
39
- Content-Length:
40
- - '1444'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/202_is_true from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/202_is_true. Reason:\n<pre> Not Found</pre></p><hr
51
- /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:41 GMT
64
- recorded_with: VCR 2.9.3
@@ -1,64 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: delete
5
- uri: http://localhost:3000/annotations/foo/204_is_true
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 404
19
- message: 'Not Found '
20
- headers:
21
- X-Frame-Options:
22
- - SAMEORIGIN
23
- X-Xss-Protection:
24
- - 1; mode=block
25
- X-Content-Type-Options:
26
- - nosniff
27
- Content-Type:
28
- - text/html; charset=utf-8
29
- Cache-Control:
30
- - no-cache
31
- X-Request-Id:
32
- - 02a40bb3-158e-4834-924d-774feea3a02c
33
- X-Runtime:
34
- - '0.022483'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
37
- Date:
38
- - Fri, 19 Jun 2015 18:37:41 GMT
39
- Content-Length:
40
- - '1444'
41
- Connection:
42
- - Keep-Alive
43
- Set-Cookie:
44
- - request_method=DELETE; path=/
45
- body:
46
- encoding: UTF-8
47
- string: "<h2>error getting foo/204_is_true from LDP</h2><html>\n<head>\n<meta
48
- http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"/>\n<title>Error
49
- 404 Not Found</title>\n</head>\n<body><h2>HTTP ERROR 404</h2>\n<p>Problem
50
- accessing /fedora/rest/anno/foo/204_is_true. Reason:\n<pre> Not Found</pre></p><hr
51
- /><i><small>Powered by Jetty://</small></i><br/> \n<br/>
52
- \ \n<br/> \n<br/>
53
- \ \n<br/> \n<br/>
54
- \ \n<br/> \n<br/>
55
- \ \n<br/> \n<br/>
56
- \ \n<br/> \n<br/>
57
- \ \n<br/> \n<br/>
58
- \ \n<br/> \n<br/>
59
- \ \n<br/> \n<br/>
60
- \ \n<br/> \n<br/>
61
- \ \n\n</body>\n</html>\n"
62
- http_version:
63
- recorded_at: Fri, 19 Jun 2015 18:37:41 GMT
64
- recorded_with: VCR 2.9.3