triannon-client 0.2.1.pre.0.rc1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/lib/triannon-client/triannon_client.rb +3 -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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- 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 +33 -33
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +46 -46
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +34 -34
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +33 -33
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +33 -33
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trig_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trix_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/n3_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_empty_string_ID.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/requests_an_open_annotation_by_ID_accepting_a_default_JSON-LD_content.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_for_a_500_server_response.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +40 -335
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml +46 -46
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +42 -42
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/deletes_an_open_annotation_that_exists.yml +34 -34
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/fails_to_delete_an_open_annotation_that_does_NOT_exist.yml +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_false_for_a_500_response_to_a_DELETE_request.yml +4 -4
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_200_response_to_a_DELETE_request.yml +4 -4
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_202_response_to_a_DELETE_request.yml +4 -4
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_204_response_to_a_DELETE_request.yml +4 -4
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +4 -4
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +16 -16
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +16 -16
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +44 -44
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/{_annotation_uri → _annotation_uris}/returns_an_RDF_URI_that_is_a_valid_URI.yml +34 -34
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/{_annotation_uri/returns_an_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml → _annotation_uris/returns_an_array_of_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml} +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +38 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +26 -26
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +26 -26
- data/spec/lib/triannon-client/triannon_client_spec.rb +7 -6
- data/triannon-client.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad2bdd8eea9fad891aa01ca7bd58807e78f6a338
|
4
|
+
data.tar.gz: 899c3ddeec8c273651e340b97228b63327af3be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 716bcc044314815b1bc05043ddf3b99a9e60f3a8dabf7940694dcb6eed3c6b72ad01bdf034236836dab2ac231e9c3c2fe56492d3fcb482be5d18d3ba3375c5cd
|
7
|
+
data.tar.gz: a912faf2ff692943aaa703ebe9771d5e1e8e62c09548489c96ad8fdcb8c909cb8ce97ff30867be2ecdda6695e9de38b70da94cfe7102c987b00d4db0bbd07bab
|
data/README.md
CHANGED
@@ -54,6 +54,8 @@ tc = TriannonClient::TriannonClient.new
|
|
54
54
|
```ruby
|
55
55
|
# return an RDF::Graph
|
56
56
|
graph = tc.get_annotations
|
57
|
+
anno_uris = tc.annotation_uris(graph)
|
58
|
+
anno_ids = anno_uris.collect {|uri| tc.annotation_id(uri) }
|
57
59
|
```
|
58
60
|
|
59
61
|
### Get a particular annotation
|
@@ -83,11 +85,19 @@ tc.post_annotation(open_annotation_jsonld)
|
|
83
85
|
### Delete an annotation
|
84
86
|
|
85
87
|
```ruby
|
86
|
-
uri = RDF::URI.
|
87
|
-
|
88
|
+
uri = RDF::URI.new("http://your.triannon-server.com/annotations/45/4a/c0/93/454ac093-b37d-4580-bebd-449f8dabddc9")
|
89
|
+
tc.annotation_id(uri) #=> "45%2F4a%2Fc0%2F93%2F454ac093-b37d-4580-bebd-449f8dabddc9"
|
88
90
|
tc.delete_annotation(id)
|
89
91
|
```
|
90
92
|
|
93
|
+
Note that the annotation URI contains a pair-tree path that is created by
|
94
|
+
the Fedora 4 instance that triannon server works on. The annotation ID is
|
95
|
+
the entire pair-tree path after it is URI escaped. This makes it easier to
|
96
|
+
work with the ID for tc.get_annotation(id) and tc.delete_annotation(id).
|
97
|
+
For more information on object storage using pair-trees, see
|
98
|
+
http://www.slideshare.net/jakkbl/dcc-pair-posterppt
|
99
|
+
https://wiki.ucop.edu/display/Curation/PairTree
|
100
|
+
|
91
101
|
## Development
|
92
102
|
|
93
103
|
Clone and install:
|
@@ -161,11 +161,11 @@ module TriannonClient
|
|
161
161
|
|
162
162
|
# query an annotation graph to extract a URI for the first open annotation
|
163
163
|
# @param graph [RDF::Graph] An RDF::Graph of an open annotation
|
164
|
-
# @response uri [RDF::URI
|
165
|
-
def
|
164
|
+
# @response uri [Array<RDF::URI>] An array of URIs for open annotations
|
165
|
+
def annotation_uris(graph)
|
166
166
|
raise ArgumentError, 'graph is not an RDF::Graph' unless graph.instance_of? RDF::Graph
|
167
167
|
q = [:s, RDF.type, RDF::Vocab::OA.Annotation]
|
168
|
-
graph.query(q).collect {|s| s.subject }
|
168
|
+
graph.query(q).collect {|s| s.subject }
|
169
169
|
end
|
170
170
|
|
171
171
|
# extract an annotation ID from the URI
|
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"8f8df37d15aa1d0f88aee7cc98fae9c9"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- c0e914fc-9c99-4ace-91b2-f84548e645e5
|
39
39
|
X-Runtime:
|
40
|
-
- '1.
|
40
|
+
- '1.391616'
|
41
41
|
Server:
|
42
42
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
-
|
44
|
+
- Wed, 13 May 2015 22:31:08 GMT
|
45
45
|
Content-Length:
|
46
46
|
- '443'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=b3RJalQxbHoxNzNuWlg2QUExYTBaeUdCZHVQMjZ0WTNOVm1TV0M4ak9VZUV0dFUvYXNhbkYzZzJMOW5neDdqYjZrc1A2aG5jT3gybklyYXRlZ1lNcFJVSVBoT1d2YXRCYVh5SHdVdWtUMm9qVnJaUTcyZndsS3h2NUhzWmFFVTZNK2F2WFpJUHlLb0lpR21YSWVzc0NjcUwraFhjQStLKzNWQ3hQUkhVUzRJc2I1NWxFTEJSOVRwREJacFhqU2xTZ01WSzFsRDdHbjZvSVJ3RWZaOFl5NXVKTklYODJwWUJ3WHAwMTBwcFRLY1doaXZFdWNXTkNMTmI0bm0zRjllMi0tMXZQR2FVMkp2cTIyd3lCTzlVdTBxZz09--9ccb4bcbeb7a57d8615dfd2ed013177d9ec5f518;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70052527030620","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/12/27/8d/7e/12278d7e-405a-4372-9527-63d130721bbb","@type":"oa:Annotation","hasBody":"_:g70052527030620","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Wed, 13 May 2015 22:31:08 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Wed, 13 May 2015 22:31:08 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
-
|
86
|
+
- Thu, 14 May 2015 04:31:08 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at:
|
102
|
+
recorded_at: Wed, 13 May 2015 22:31:08 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Wed, 13 May 2015 22:31:08 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
-
|
138
|
+
- Thu, 14 May 2015 04:31:08 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at:
|
1256
|
+
recorded_at: Wed, 13 May 2015 22:31:08 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
-
|
1276
|
+
- Wed, 13 May 2015 22:31:08 GMT
|
1277
1277
|
Server:
|
1278
1278
|
- Apache/2
|
1279
1279
|
Location:
|
@@ -1281,7 +1281,7 @@ http_interactions:
|
|
1281
1281
|
Cache-Control:
|
1282
1282
|
- max-age=21600
|
1283
1283
|
Expires:
|
1284
|
-
-
|
1284
|
+
- Thu, 14 May 2015 04:31:08 GMT
|
1285
1285
|
Content-Length:
|
1286
1286
|
- '240'
|
1287
1287
|
Content-Type:
|
@@ -1297,7 +1297,7 @@ http_interactions:
|
|
1297
1297
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
1298
1298
|
</body></html>
|
1299
1299
|
http_version:
|
1300
|
-
recorded_at:
|
1300
|
+
recorded_at: Wed, 13 May 2015 22:31:08 GMT
|
1301
1301
|
- request:
|
1302
1302
|
method: get
|
1303
1303
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -1319,7 +1319,7 @@ http_interactions:
|
|
1319
1319
|
message: OK
|
1320
1320
|
headers:
|
1321
1321
|
Date:
|
1322
|
-
-
|
1322
|
+
- Wed, 13 May 2015 22:31:09 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
-
|
1336
|
+
- Thu, 14 May 2015 04:31:09 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:
|
2454
|
+
recorded_at: Wed, 13 May 2015 22:31:09 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
|
-
uri: http://localhost:3000/annotations/
|
2457
|
+
uri: http://localhost:3000/annotations/12%2F27%2F8d%2F7e%2F12278d7e-405a-4372-9527-63d130721bbb
|
2458
2458
|
body:
|
2459
2459
|
encoding: US-ASCII
|
2460
2460
|
string: ''
|
@@ -2475,13 +2475,13 @@ http_interactions:
|
|
2475
2475
|
Content-Length:
|
2476
2476
|
- '129098'
|
2477
2477
|
X-Request-Id:
|
2478
|
-
-
|
2478
|
+
- c8ae68fd-57d2-402f-a927-245c3979d375
|
2479
2479
|
X-Runtime:
|
2480
|
-
- '0.
|
2480
|
+
- '0.262155'
|
2481
2481
|
Server:
|
2482
2482
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2483
2483
|
Date:
|
2484
|
-
-
|
2484
|
+
- Wed, 13 May 2015 22:31:09 GMT
|
2485
2485
|
Connection:
|
2486
2486
|
- Keep-Alive
|
2487
2487
|
body:
|
@@ -3830,7 +3830,7 @@ http_interactions:
|
|
3830
3830
|
&& el) {\n currentSource.className += \" hidden\";\n el.className
|
3831
3831
|
= el.className.replace(\" hidden\", \"\");\n currentSource = el;\n
|
3832
3832
|
\ }\n }\n }\n </script>\n</div>\n\n \n\n<h2 style=\"margin-top:
|
3833
|
-
30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"
|
3833
|
+
30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"12/27/8d/7e/12278d7e-405a-4372-9527-63d130721bbb"}</pre>\n\n<div
|
3834
3834
|
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
3835
3835
|
toggleSessionDump()\">Toggle session dump</a></div>\n <div id=\"session_dump\"
|
3836
3836
|
style=\"display:none\"><pre></pre></div>\n</div>\n\n<div class=\"details\">\n
|
@@ -3840,7 +3840,7 @@ http_interactions:
|
|
3840
3840
|
"gzip, deflate"\nREMOTE_ADDR: "127.0.0.1"\nREMOTE_HOST:
|
3841
3841
|
"127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
3842
3842
|
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
3843
|
-
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n<div id=\"console\"\n data-remote-path='console/repl_sessions/
|
3843
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n<div id=\"console\"\n data-remote-path='console/repl_sessions/e9f5563b5904549edd08beb1298efe89'\n
|
3844
3844
|
\ data-initial-prompt='>> '>\n</div>\n\n\n<script type=\"text/javascript\">\n(function()
|
3845
3845
|
{\n // DOM helpers\nfunction hasClass(el, className) {\n var regex = new
|
3846
3846
|
RegExp('(?:^|\\\\s)' + className + '(?!\\\\S)', 'g');\n return el.className.match(regex);\n}\n\nfunction
|
@@ -4037,10 +4037,10 @@ http_interactions:
|
|
4037
4037
|
\ resizerElement.addEventListener('mouseup', recordConsoleElementHeight);\n
|
4038
4038
|
\ });\n});\n\n}).call(this);\n</script>\n\n"
|
4039
4039
|
http_version:
|
4040
|
-
recorded_at:
|
4040
|
+
recorded_at: Wed, 13 May 2015 22:31:09 GMT
|
4041
4041
|
- request:
|
4042
4042
|
method: delete
|
4043
|
-
uri: http://localhost:3000/annotations/
|
4043
|
+
uri: http://localhost:3000/annotations/12%2F27%2F8d%2F7e%2F12278d7e-405a-4372-9527-63d130721bbb
|
4044
4044
|
body:
|
4045
4045
|
encoding: US-ASCII
|
4046
4046
|
string: ''
|
@@ -4067,22 +4067,22 @@ http_interactions:
|
|
4067
4067
|
Cache-Control:
|
4068
4068
|
- no-cache
|
4069
4069
|
X-Request-Id:
|
4070
|
-
-
|
4070
|
+
- 68de7636-5675-4dd5-a42e-c755fd64ddcb
|
4071
4071
|
X-Runtime:
|
4072
|
-
- '0.
|
4072
|
+
- '0.167672'
|
4073
4073
|
Server:
|
4074
4074
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
4075
4075
|
Date:
|
4076
|
-
-
|
4076
|
+
- Wed, 13 May 2015 22:31:09 GMT
|
4077
4077
|
Connection:
|
4078
4078
|
- Keep-Alive
|
4079
4079
|
Set-Cookie:
|
4080
|
-
- _internal_session=
|
4080
|
+
- _internal_session=SzVTY1ZDUXdISFdRR1lSRkR3VlVuQ2d6VDdDcDljNmRqRE5NbVpQUndKaGtuMHgxU0hvYkxQNGlCelA1ZnZIa2pEemZqejc4VitHM1hRRWhIdG1qNmhPOGRGRXhZNTNDMTlxcWV0VHlKT0dFNnNxNW5hYnV5NWpmYlZTUUQ5QnNaT2UrQTQwWUtFN05JOGF5clJPeFhtVFFranVjQUYrQVVDTHhubW4zcFUzdnJ3eHBQRmkva0FGeDBpZEN4MldnLS1VbkpNUUtIWFZyNjVEWk1ieUFhS2tBPT0%3D--71575cf2d8ea90ab8d81be2d509aaf23bf24bbc9;
|
4081
4081
|
path=/; HttpOnly
|
4082
4082
|
- request_method=DELETE; path=/
|
4083
4083
|
body:
|
4084
4084
|
encoding: UTF-8
|
4085
4085
|
string: ''
|
4086
4086
|
http_version:
|
4087
|
-
recorded_at:
|
4087
|
+
recorded_at: Wed, 13 May 2015 22:31:09 GMT
|
4088
4088
|
recorded_with: VCR 2.9.3
|
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"6a665d47494cd937762303f6438ad4c4"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- bdc8d586-5f31-47cb-b96f-bd740dae3dcc
|
39
39
|
X-Runtime:
|
40
|
-
- '1.
|
40
|
+
- '1.616044'
|
41
41
|
Server:
|
42
42
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
-
|
44
|
+
- Wed, 13 May 2015 22:30:45 GMT
|
45
45
|
Content-Length:
|
46
46
|
- '443'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=VlFoRW4reDNPR1FOY1VscXpxTGp0TlowR041UWorQXVRT0FJaHI4TzBzeHRUMDQ1VlRSUjNzYmthS0lRUEQxd0swZHgybGZoOEdmQ0dqVnNacUJjRTRESjBwOUF5UDJRVEFkWWRpM2FTbUdFdG5RMUJPWVJBVHVzeU5GbDh4THVrZTRHOUJjL0Z0eFZMYjJZNWFQUzBFRVM0bnRNbGVqSS9RNXZMVGpUUUhPd1lLbndxckZDT28vVEJXTW5kTjVDczV3VEErUUNWMmVHcFZmNDJsL1ptTnVta0VUK3RnOGM2MmlzRStrb1pZeUZVSW11UHNtRFNzZFplek01VW9hZy0taVNOUTljVkVqb21idG4wL2M4M2NKUT09--ac54c310c56d47cd736dcac0991153c5e33c39d7;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70052623960480","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/42/21/83/48/42218348-b4da-45f7-8ed3-70ebe7647283","@type":"oa:Annotation","hasBody":"_:g70052623960480","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Wed, 13 May 2015 22:30:45 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Wed, 13 May 2015 22:30:45 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
-
|
86
|
+
- Thu, 14 May 2015 04:30:45 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at:
|
102
|
+
recorded_at: Wed, 13 May 2015 22:30:45 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Wed, 13 May 2015 22:30:45 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
-
|
138
|
+
- Thu, 14 May 2015 04:30:45 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at:
|
1256
|
+
recorded_at: Wed, 13 May 2015 22:30:45 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
-
|
1276
|
+
- Wed, 13 May 2015 22:30: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
|
-
-
|
1284
|
+
- Thu, 14 May 2015 04:30: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:
|
1300
|
+
recorded_at: Wed, 13 May 2015 22:30: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
|
-
-
|
1322
|
+
- Wed, 13 May 2015 22:30:46 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
-
|
1336
|
+
- Thu, 14 May 2015 04:30:46 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:
|
2454
|
+
recorded_at: Wed, 13 May 2015 22:30:46 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
|
-
uri: http://localhost:3000/annotations/
|
2457
|
+
uri: http://localhost:3000/annotations/42%2F21%2F83%2F48%2F42218348-b4da-45f7-8ed3-70ebe7647283
|
2458
2458
|
body:
|
2459
2459
|
encoding: US-ASCII
|
2460
2460
|
string: ''
|
@@ -2475,13 +2475,13 @@ http_interactions:
|
|
2475
2475
|
Content-Length:
|
2476
2476
|
- '129100'
|
2477
2477
|
X-Request-Id:
|
2478
|
-
-
|
2478
|
+
- 75d62dad-93bc-43e8-8bb2-622728fba329
|
2479
2479
|
X-Runtime:
|
2480
|
-
- '0.
|
2480
|
+
- '0.233293'
|
2481
2481
|
Server:
|
2482
2482
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2483
2483
|
Date:
|
2484
|
-
-
|
2484
|
+
- Wed, 13 May 2015 22:30:46 GMT
|
2485
2485
|
Connection:
|
2486
2486
|
- Keep-Alive
|
2487
2487
|
body:
|
@@ -3830,7 +3830,7 @@ http_interactions:
|
|
3830
3830
|
&& el) {\n currentSource.className += \" hidden\";\n el.className
|
3831
3831
|
= el.className.replace(\" hidden\", \"\");\n currentSource = el;\n
|
3832
3832
|
\ }\n }\n }\n </script>\n</div>\n\n \n\n<h2 style=\"margin-top:
|
3833
|
-
30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"
|
3833
|
+
30px\">Request</h2>\n<p><b>Parameters</b>:</p> <pre>{"id"=>"42/21/83/48/42218348-b4da-45f7-8ed3-70ebe7647283"}</pre>\n\n<div
|
3834
3834
|
class=\"details\">\n <div class=\"summary\"><a href=\"#\" onclick=\"return
|
3835
3835
|
toggleSessionDump()\">Toggle session dump</a></div>\n <div id=\"session_dump\"
|
3836
3836
|
style=\"display:none\"><pre></pre></div>\n</div>\n\n<div class=\"details\">\n
|
@@ -3840,7 +3840,7 @@ http_interactions:
|
|
3840
3840
|
"gzip, deflate"\nREMOTE_ADDR: "127.0.0.1"\nREMOTE_HOST:
|
3841
3841
|
"127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
3842
3842
|
"HTTP/1.1"</pre></div>\n</div>\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:</p>
|
3843
|
-
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n<div id=\"console\"\n data-remote-path='console/repl_sessions/
|
3843
|
+
<pre>None</pre>\n\n</div>\n\n\n</body>\n</html>\n<div id=\"console\"\n data-remote-path='console/repl_sessions/62548066f212268843cc3020d0e2e6a7'\n
|
3844
3844
|
\ data-initial-prompt='>> '>\n</div>\n\n\n<script type=\"text/javascript\">\n(function()
|
3845
3845
|
{\n // DOM helpers\nfunction hasClass(el, className) {\n var regex = new
|
3846
3846
|
RegExp('(?:^|\\\\s)' + className + '(?!\\\\S)', 'g');\n return el.className.match(regex);\n}\n\nfunction
|
@@ -4037,10 +4037,10 @@ http_interactions:
|
|
4037
4037
|
\ resizerElement.addEventListener('mouseup', recordConsoleElementHeight);\n
|
4038
4038
|
\ });\n});\n\n}).call(this);\n</script>\n\n"
|
4039
4039
|
http_version:
|
4040
|
-
recorded_at:
|
4040
|
+
recorded_at: Wed, 13 May 2015 22:30:46 GMT
|
4041
4041
|
- request:
|
4042
4042
|
method: delete
|
4043
|
-
uri: http://localhost:3000/annotations/
|
4043
|
+
uri: http://localhost:3000/annotations/42%2F21%2F83%2F48%2F42218348-b4da-45f7-8ed3-70ebe7647283
|
4044
4044
|
body:
|
4045
4045
|
encoding: US-ASCII
|
4046
4046
|
string: ''
|
@@ -4067,22 +4067,22 @@ http_interactions:
|
|
4067
4067
|
Cache-Control:
|
4068
4068
|
- no-cache
|
4069
4069
|
X-Request-Id:
|
4070
|
-
-
|
4070
|
+
- 094c3fb3-a5fc-426a-952a-f93701930dda
|
4071
4071
|
X-Runtime:
|
4072
|
-
- '0.
|
4072
|
+
- '0.186602'
|
4073
4073
|
Server:
|
4074
4074
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
4075
4075
|
Date:
|
4076
|
-
-
|
4076
|
+
- Wed, 13 May 2015 22:30:46 GMT
|
4077
4077
|
Connection:
|
4078
4078
|
- Keep-Alive
|
4079
4079
|
Set-Cookie:
|
4080
|
-
- _internal_session=
|
4080
|
+
- _internal_session=a2xKeURTNFZmM0xLWExhNm50N1V1d2lVRmpOalJldytNbnd2S2s1MEZYOGFrdVhHVjVhZnRiY21oa0ZZTkNzU0hGdmlrWjViaUZZRzRqblV6S2xibnFKUmVzNTF0NW94TzI4UVdZSWhxV0tPeDl0U1dPR3lhSDNYamxYbHdBRnhlWm1VaVliVFZpTzZLeTNZZm5ZUWhLQzk3ODhMU2JyVG1qR2tVdWlQTDluUFVTcEpJMGgwZGw5V0hxU3FORFVDLS1DMkdIVGQvNGU2cktmcUp3MDVkZU9RPT0%3D--d378e5d405c1660cf12591616cf8052b2e925f85;
|
4081
4081
|
path=/; HttpOnly
|
4082
4082
|
- request_method=DELETE; path=/
|
4083
4083
|
body:
|
4084
4084
|
encoding: UTF-8
|
4085
4085
|
string: ''
|
4086
4086
|
http_version:
|
4087
|
-
recorded_at:
|
4087
|
+
recorded_at: Wed, 13 May 2015 22:30:46 GMT
|
4088
4088
|
recorded_with: VCR 2.9.3
|