pho 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/CHANGES +4 -0
  2. data/Rakefile +1 -1
  3. data/bin/talis_store +1 -1
  4. data/doc/rdoc/classes/Pho/CommandLine.html +108 -108
  5. data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
  6. data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
  7. data/doc/rdoc/classes/Pho/Etags.html +36 -36
  8. data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
  9. data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
  10. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +90 -90
  11. data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
  12. data/doc/rdoc/classes/Pho/Job.html +64 -64
  13. data/doc/rdoc/classes/Pho/Jobs.html +60 -60
  14. data/doc/rdoc/classes/Pho/OAI/Record.html +11 -11
  15. data/doc/rdoc/classes/Pho/OAI/Records.html +96 -18
  16. data/doc/rdoc/classes/Pho/QueryProfile.html +60 -60
  17. data/doc/rdoc/classes/Pho/RDF/Parser.html +24 -24
  18. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
  19. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
  20. data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
  21. data/doc/rdoc/classes/Pho/Status.html +26 -26
  22. data/doc/rdoc/classes/Pho/Store.html +232 -222
  23. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +14 -14
  24. data/doc/rdoc/classes/String.html +1 -1
  25. data/doc/rdoc/created.rid +1 -1
  26. data/doc/rdoc/files/CHANGES.html +8 -1
  27. data/doc/rdoc/files/lib/pho/oai_rb.html +1 -1
  28. data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
  29. data/doc/rdoc/files/lib/pho_rb.html +2 -1
  30. data/doc/rdoc/fr_method_index.html +148 -147
  31. data/lib/pho.rb +1 -0
  32. data/lib/pho/oai.rb +53 -16
  33. data/lib/pho/store.rb +12 -2
  34. data/tests/tc_oai.rb +109 -2
  35. metadata +3 -3
@@ -95,10 +95,10 @@ Currently a convenience wrapper around the Redland Ruby bindings
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000089">parse_ntriples</a>&nbsp;&nbsp;
99
- <a href="#M000090">parse_ntriples_from_string</a>&nbsp;&nbsp;
100
- <a href="#M000091">store_ntriples</a>&nbsp;&nbsp;
101
- <a href="#M000092">store_ntriples_from_string</a>&nbsp;&nbsp;
98
+ <a href="#M000090">parse_ntriples</a>&nbsp;&nbsp;
99
+ <a href="#M000091">parse_ntriples_from_string</a>&nbsp;&nbsp;
100
+ <a href="#M000092">store_ntriples</a>&nbsp;&nbsp;
101
+ <a href="#M000093">store_ntriples_from_string</a>&nbsp;&nbsp;
102
102
  </div>
103
103
  </div>
104
104
 
@@ -120,11 +120,11 @@ Currently a convenience wrapper around the Redland Ruby bindings
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Class methods</h3>
122
122
 
123
- <div id="method-M000089" class="method-detail">
124
- <a name="M000089"></a>
123
+ <div id="method-M000090" class="method-detail">
124
+ <a name="M000090"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="#M000089" class="method-signature">
127
+ <a href="#M000090" class="method-signature">
128
128
  <span class="method-name">parse_ntriples</span><span class="method-args">(file, base_uri=nil)</span>
129
129
  </a>
130
130
  </div>
@@ -140,8 +140,8 @@ Returns a string
140
140
  relative to the File
141
141
  </pre>
142
142
  <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000089-source">
143
+ onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
144
+ <div class="method-source-code" id="M000090-source">
145
145
  <pre>
146
146
  <span class="ruby-comment cmt"># File lib/pho/rdf.rb, line 24</span>
147
147
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">parse_ntriples</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">base_uri</span>=<span class="ruby-keyword kw">nil</span>)
@@ -159,11 +159,11 @@ Returns a string
159
159
  </div>
160
160
  </div>
161
161
 
162
- <div id="method-M000090" class="method-detail">
163
- <a name="M000090"></a>
162
+ <div id="method-M000091" class="method-detail">
163
+ <a name="M000091"></a>
164
164
 
165
165
  <div class="method-heading">
166
- <a href="#M000090" class="method-signature">
166
+ <a href="#M000091" class="method-signature">
167
167
  <span class="method-name">parse_ntriples_from_string</span><span class="method-args">(string, base_uri)</span>
168
168
  </a>
169
169
  </div>
@@ -178,8 +178,8 @@ Returns a string
178
178
  base_uri:: base uri for parsing the data
179
179
  </pre>
180
180
  <p><a class="source-toggle" href="#"
181
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
182
- <div class="method-source-code" id="M000090-source">
181
+ onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
182
+ <div class="method-source-code" id="M000091-source">
183
183
  <pre>
184
184
  <span class="ruby-comment cmt"># File lib/pho/rdf.rb, line 39</span>
185
185
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">parse_ntriples_from_string</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">base_uri</span>)
@@ -195,11 +195,11 @@ Returns a string
195
195
  </div>
196
196
  </div>
197
197
 
198
- <div id="method-M000091" class="method-detail">
199
- <a name="M000091"></a>
198
+ <div id="method-M000092" class="method-detail">
199
+ <a name="M000092"></a>
200
200
 
201
201
  <div class="method-heading">
202
- <a href="#M000091" class="method-signature">
202
+ <a href="#M000092" class="method-signature">
203
203
  <span class="method-name">store_ntriples</span><span class="method-args">(file, store, base_uri=nil, graph_name=nil)</span>
204
204
  </a>
205
205
  </div>
@@ -216,8 +216,8 @@ Convenience method to parse an ntriples file and store it a Platform store
216
216
  TODO: can now be submitted as turtle
217
217
  </pre>
218
218
  <p><a class="source-toggle" href="#"
219
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
220
- <div class="method-source-code" id="M000091-source">
219
+ onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
220
+ <div class="method-source-code" id="M000092-source">
221
221
  <pre>
222
222
  <span class="ruby-comment cmt"># File lib/pho/rdf.rb, line 55</span>
223
223
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">store_ntriples</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">base_uri</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">graph_name</span>=<span class="ruby-keyword kw">nil</span>)
@@ -229,11 +229,11 @@ Convenience method to parse an ntriples file and store it a Platform store
229
229
  </div>
230
230
  </div>
231
231
 
232
- <div id="method-M000092" class="method-detail">
233
- <a name="M000092"></a>
232
+ <div id="method-M000093" class="method-detail">
233
+ <a name="M000093"></a>
234
234
 
235
235
  <div class="method-heading">
236
- <a href="#M000092" class="method-signature">
236
+ <a href="#M000093" class="method-signature">
237
237
  <span class="method-name">store_ntriples_from_string</span><span class="method-args">(string, store, base_uri, graph_name=nil)</span>
238
238
  </a>
239
239
  </div>
@@ -251,8 +251,8 @@ store
251
251
  TODO: can now be submitted as turtle
252
252
  </pre>
253
253
  <p><a class="source-toggle" href="#"
254
- onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
255
- <div class="method-source-code" id="M000092-source">
254
+ onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
255
+ <div class="method-source-code" id="M000093-source">
256
256
  <pre>
257
257
  <span class="ruby-comment cmt"># File lib/pho/rdf.rb, line 67</span>
258
258
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">store_ntriples_from_string</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">base_uri</span>, <span class="ruby-identifier">graph_name</span>=<span class="ruby-keyword kw">nil</span>)
@@ -92,12 +92,12 @@ Class for converting to and from resource hashes
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000085">parse</a>&nbsp;&nbsp;
96
- <a href="#M000081">parse_json</a>&nbsp;&nbsp;
97
- <a href="#M000083">parse_ntriples</a>&nbsp;&nbsp;
98
- <a href="#M000082">parse_rdfxml</a>&nbsp;&nbsp;
99
- <a href="#M000084">parse_turtle</a>&nbsp;&nbsp;
100
- <a href="#M000086">serialize_json</a>&nbsp;&nbsp;
95
+ <a href="#M000086">parse</a>&nbsp;&nbsp;
96
+ <a href="#M000082">parse_json</a>&nbsp;&nbsp;
97
+ <a href="#M000084">parse_ntriples</a>&nbsp;&nbsp;
98
+ <a href="#M000083">parse_rdfxml</a>&nbsp;&nbsp;
99
+ <a href="#M000085">parse_turtle</a>&nbsp;&nbsp;
100
+ <a href="#M000087">serialize_json</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -119,11 +119,11 @@ Class for converting to and from resource hashes
119
119
  <div id="methods">
120
120
  <h3 class="section-bar">Public Class methods</h3>
121
121
 
122
- <div id="method-M000085" class="method-detail">
123
- <a name="M000085"></a>
122
+ <div id="method-M000086" class="method-detail">
123
+ <a name="M000086"></a>
124
124
 
125
125
  <div class="method-heading">
126
- <a href="#M000085" class="method-signature">
126
+ <a href="#M000086" class="method-signature">
127
127
  <span class="method-name">parse</span><span class="method-args">(data, base_uri, format=&quot;rdfxml&quot;)</span>
128
128
  </a>
129
129
  </div>
@@ -139,8 +139,8 @@ href="../ResourceHash.html">ResourceHash</a>
139
139
  base_uri:: base uri of the data
140
140
  </pre>
141
141
  <p><a class="source-toggle" href="#"
142
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
143
- <div class="method-source-code" id="M000085-source">
142
+ onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
143
+ <div class="method-source-code" id="M000086-source">
144
144
  <pre>
145
145
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 53</span>
146
146
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">base_uri</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">&quot;rdfxml&quot;</span>)
@@ -162,11 +162,11 @@ href="../ResourceHash.html">ResourceHash</a>
162
162
  </div>
163
163
  </div>
164
164
 
165
- <div id="method-M000081" class="method-detail">
166
- <a name="M000081"></a>
165
+ <div id="method-M000082" class="method-detail">
166
+ <a name="M000082"></a>
167
167
 
168
168
  <div class="method-heading">
169
- <a href="#M000081" class="method-signature">
169
+ <a href="#M000082" class="method-signature">
170
170
  <span class="method-name">parse_json</span><span class="method-args">(json)</span>
171
171
  </a>
172
172
  </div>
@@ -181,8 +181,8 @@ Simply invokes the JSON parser.
181
181
  json:: valid RDF-in-JSON
182
182
  </pre>
183
183
  <p><a class="source-toggle" href="#"
184
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
185
- <div class="method-source-code" id="M000081-source">
184
+ onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
185
+ <div class="method-source-code" id="M000082-source">
186
186
  <pre>
187
187
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 23</span>
188
188
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>(<span class="ruby-identifier">json</span>)
@@ -193,11 +193,11 @@ Simply invokes the JSON parser.
193
193
  </div>
194
194
  </div>
195
195
 
196
- <div id="method-M000083" class="method-detail">
197
- <a name="M000083"></a>
196
+ <div id="method-M000084" class="method-detail">
197
+ <a name="M000084"></a>
198
198
 
199
199
  <div class="method-heading">
200
- <a href="#M000083" class="method-signature">
200
+ <a href="#M000084" class="method-signature">
201
201
  <span class="method-name">parse_ntriples</span><span class="method-args">(ntriples, base_uri)</span>
202
202
  </a>
203
203
  </div>
@@ -210,8 +210,8 @@ Parse a string containing N-Triples into a resource hash
210
210
  ntriples:: a String containing N-Triples
211
211
  </pre>
212
212
  <p><a class="source-toggle" href="#"
213
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
214
- <div class="method-source-code" id="M000083-source">
213
+ onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
214
+ <div class="method-source-code" id="M000084-source">
215
215
  <pre>
216
216
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 37</span>
217
217
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_ntriples</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier">base_uri</span>)
@@ -222,11 +222,11 @@ Parse a string containing N-Triples into a resource hash
222
222
  </div>
223
223
  </div>
224
224
 
225
- <div id="method-M000082" class="method-detail">
226
- <a name="M000082"></a>
225
+ <div id="method-M000083" class="method-detail">
226
+ <a name="M000083"></a>
227
227
 
228
228
  <div class="method-heading">
229
- <a href="#M000082" class="method-signature">
229
+ <a href="#M000083" class="method-signature">
230
230
  <span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml, base_uri)</span>
231
231
  </a>
232
232
  </div>
@@ -240,8 +240,8 @@ hash
240
240
  rdfxml: a String containing RDF/XML
241
241
  </pre>
242
242
  <p><a class="source-toggle" href="#"
243
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
244
- <div class="method-source-code" id="M000082-source">
243
+ onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
244
+ <div class="method-source-code" id="M000083-source">
245
245
  <pre>
246
246
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 30</span>
247
247
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_rdfxml</span>(<span class="ruby-identifier">rdfxml</span>, <span class="ruby-identifier">base_uri</span>)
@@ -252,11 +252,11 @@ hash
252
252
  </div>
253
253
  </div>
254
254
 
255
- <div id="method-M000084" class="method-detail">
256
- <a name="M000084"></a>
255
+ <div id="method-M000085" class="method-detail">
256
+ <a name="M000085"></a>
257
257
 
258
258
  <div class="method-heading">
259
- <a href="#M000084" class="method-signature">
259
+ <a href="#M000085" class="method-signature">
260
260
  <span class="method-name">parse_turtle</span><span class="method-args">(turtle, base_uri)</span>
261
261
  </a>
262
262
  </div>
@@ -269,8 +269,8 @@ Parse a string containing Turtle into a resource hash
269
269
  ntriples:: a String containing Turtle
270
270
  </pre>
271
271
  <p><a class="source-toggle" href="#"
272
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
273
- <div class="method-source-code" id="M000084-source">
272
+ onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
273
+ <div class="method-source-code" id="M000085-source">
274
274
  <pre>
275
275
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 44</span>
276
276
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_turtle</span>(<span class="ruby-identifier">turtle</span>, <span class="ruby-identifier">base_uri</span>)
@@ -281,11 +281,11 @@ Parse a string containing Turtle into a resource hash
281
281
  </div>
282
282
  </div>
283
283
 
284
- <div id="method-M000086" class="method-detail">
285
- <a name="M000086"></a>
284
+ <div id="method-M000087" class="method-detail">
285
+ <a name="M000087"></a>
286
286
 
287
287
  <div class="method-heading">
288
- <a href="#M000086" class="method-signature">
288
+ <a href="#M000087" class="method-signature">
289
289
  <span class="method-name">serialize_json</span><span class="method-args">(hash)</span>
290
290
  </a>
291
291
  </div>
@@ -298,8 +298,8 @@ Serialize a resource hash as <a href="../RDF.html">RDF</a>-in-JSON
298
298
  hash:: the resource hash to serialize
299
299
  </pre>
300
300
  <p><a class="source-toggle" href="#"
301
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
302
- <div class="method-source-code" id="M000086-source">
301
+ onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
302
+ <div class="method-source-code" id="M000087-source">
303
303
  <pre>
304
304
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 71</span>
305
305
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">serialize_json</span>(<span class="ruby-identifier">hash</span>)
@@ -92,8 +92,8 @@ Class providing set algebra methods over triple hashes
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000087">minus</a>&nbsp;&nbsp;
96
- <a href="#M000088">object_in_array?</a>&nbsp;&nbsp;
95
+ <a href="#M000088">minus</a>&nbsp;&nbsp;
96
+ <a href="#M000089">object_in_array?</a>&nbsp;&nbsp;
97
97
  </div>
98
98
  </div>
99
99
 
@@ -115,11 +115,11 @@ Class providing set algebra methods over triple hashes
115
115
  <div id="methods">
116
116
  <h3 class="section-bar">Public Class methods</h3>
117
117
 
118
- <div id="method-M000087" class="method-detail">
119
- <a name="M000087"></a>
118
+ <div id="method-M000088" class="method-detail">
119
+ <a name="M000088"></a>
120
120
 
121
121
  <div class="method-heading">
122
- <a href="#M000087" class="method-signature">
122
+ <a href="#M000088" class="method-signature">
123
123
  <span class="method-name">minus</span><span class="method-args">(first, second)</span>
124
124
  </a>
125
125
  </div>
@@ -139,8 +139,8 @@ first graph but which are not present in the second.
139
139
  second:: the second graph.
140
140
  </pre>
141
141
  <p><a class="source-toggle" href="#"
142
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
143
- <div class="method-source-code" id="M000087-source">
142
+ onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
143
+ <div class="method-source-code" id="M000088-source">
144
144
  <pre>
145
145
  <span class="ruby-comment cmt"># File lib/pho/resource_hash.rb, line 20</span>
146
146
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetAlgebra</span>.<span class="ruby-identifier">minus</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">second</span>)
@@ -183,11 +183,11 @@ first graph but which are not present in the second.
183
183
  </div>
184
184
  </div>
185
185
 
186
- <div id="method-M000088" class="method-detail">
187
- <a name="M000088"></a>
186
+ <div id="method-M000089" class="method-detail">
187
+ <a name="M000089"></a>
188
188
 
189
189
  <div class="method-heading">
190
- <a href="#M000088" class="method-signature">
190
+ <a href="#M000089" class="method-signature">
191
191
  <span class="method-name">object_in_array?</span><span class="method-args">(array, val)</span>
192
192
  </a>
193
193
  </div>
@@ -198,8 +198,8 @@ Is there an object in the specified array, that matches the provided
198
198
  description
199
199
  </p>
200
200
  <p><a class="source-toggle" href="#"
201
- onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
202
- <div class="method-source-code" id="M000088-source">
201
+ onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
202
+ <div class="method-source-code" id="M000089-source">
203
203
  <pre>
204
204
  <span class="ruby-comment cmt"># File lib/pho/resource_hash.rb, line 57</span>
205
205
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">SetAlgebra</span>.<span class="ruby-identifier">object_in_array?</span>(<span class="ruby-identifier">array</span>, <span class="ruby-identifier">val</span>)
@@ -81,7 +81,7 @@
81
81
  <div id="description">
82
82
  <p>
83
83
  In the Talis Platform a &quot;snapshot&quot; is an <a
84
- href="Snapshot.html#M000192">backup</a> of the contents of a <a
84
+ href="Snapshot.html#M000193">backup</a> of the contents of a <a
85
85
  href="Store.html">Store</a>
86
86
  </p>
87
87
  <p>
@@ -102,11 +102,11 @@ A snapshot can be generated (or scheduled) using the Store.snapshot method.
102
102
  <h3 class="section-bar">Methods</h3>
103
103
 
104
104
  <div class="name-list">
105
- <a href="#M000192">backup</a>&nbsp;&nbsp;
106
- <a href="#M000190">new</a>&nbsp;&nbsp;
107
- <a href="#M000189">parse</a>&nbsp;&nbsp;
108
- <a href="#M000188">read_from_store</a>&nbsp;&nbsp;
109
- <a href="#M000191">read_md5</a>&nbsp;&nbsp;
105
+ <a href="#M000193">backup</a>&nbsp;&nbsp;
106
+ <a href="#M000191">new</a>&nbsp;&nbsp;
107
+ <a href="#M000190">parse</a>&nbsp;&nbsp;
108
+ <a href="#M000189">read_from_store</a>&nbsp;&nbsp;
109
+ <a href="#M000192">read_md5</a>&nbsp;&nbsp;
110
110
  </div>
111
111
  </div>
112
112
 
@@ -176,19 +176,19 @@ The URL from which the snapshot can be retrieved
176
176
  <div id="methods">
177
177
  <h3 class="section-bar">Public Class methods</h3>
178
178
 
179
- <div id="method-M000190" class="method-detail">
180
- <a name="M000190"></a>
179
+ <div id="method-M000191" class="method-detail">
180
+ <a name="M000191"></a>
181
181
 
182
182
  <div class="method-heading">
183
- <a href="#M000190" class="method-signature">
183
+ <a href="#M000191" class="method-signature">
184
184
  <span class="method-name">new</span><span class="method-args">(url, md5_url, size, units, date)</span>
185
185
  </a>
186
186
  </div>
187
187
 
188
188
  <div class="method-description">
189
189
  <p><a class="source-toggle" href="#"
190
- onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000190-source">
190
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000191-source">
192
192
  <pre>
193
193
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 76</span>
194
194
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">md5_url</span>, <span class="ruby-identifier">size</span>, <span class="ruby-identifier">units</span>, <span class="ruby-identifier">date</span>)
@@ -203,21 +203,21 @@ The URL from which the snapshot can be retrieved
203
203
  </div>
204
204
  </div>
205
205
 
206
- <div id="method-M000189" class="method-detail">
207
- <a name="M000189"></a>
206
+ <div id="method-M000190" class="method-detail">
207
+ <a name="M000190"></a>
208
208
 
209
209
  <div class="method-heading">
210
- <a href="#M000189" class="method-signature">
210
+ <a href="#M000190" class="method-signature">
211
211
  <span class="method-name">parse</span><span class="method-args">(storeuri, content)</span>
212
212
  </a>
213
213
  </div>
214
214
 
215
215
  <div class="method-description">
216
216
  <p>
217
- Class method to <a href="Snapshot.html#M000189">parse</a> the <a
217
+ Class method to <a href="Snapshot.html#M000190">parse</a> the <a
218
218
  href="RDF.html">RDF</a> response from the API, e.g. as produced by the <a
219
- href="Store.html#M000182">Store.get_snapshots</a> method and create a <a
220
- href="Snapshot.html#M000190">new</a> <a href="Snapshot.html">Snapshot</a>
219
+ href="Store.html#M000183">Store.get_snapshots</a> method and create a <a
220
+ href="Snapshot.html#M000191">new</a> <a href="Snapshot.html">Snapshot</a>
221
221
  object. At the moment the Platform only supports single snapshot.
222
222
  </p>
223
223
  <p>
@@ -228,8 +228,8 @@ If the response was an error, then an exception will be thrown
228
228
  content:: response from the API
229
229
  </pre>
230
230
  <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000189-source">
231
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
232
+ <div class="method-source-code" id="M000190-source">
233
233
  <pre>
234
234
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 52</span>
235
235
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Snapshot</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">storeuri</span>, <span class="ruby-identifier">content</span>)
@@ -260,11 +260,11 @@ If the response was an error, then an exception will be thrown
260
260
  </div>
261
261
  </div>
262
262
 
263
- <div id="method-M000188" class="method-detail">
264
- <a name="M000188"></a>
263
+ <div id="method-M000189" class="method-detail">
264
+ <a name="M000189"></a>
265
265
 
266
266
  <div class="method-heading">
267
- <a href="#M000188" class="method-signature">
267
+ <a href="#M000189" class="method-signature">
268
268
  <span class="method-name">read_from_store</span><span class="method-args">(store)</span>
269
269
  </a>
270
270
  </div>
@@ -279,8 +279,8 @@ Read snapshot data from the given store
279
279
  </td></tr>
280
280
  </table>
281
281
  <p><a class="source-toggle" href="#"
282
- onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
283
- <div class="method-source-code" id="M000188-source">
282
+ onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
283
+ <div class="method-source-code" id="M000189-source">
284
284
  <pre>
285
285
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 34</span>
286
286
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Snapshot</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
@@ -300,11 +300,11 @@ Read snapshot data from the given store
300
300
 
301
301
  <h3 class="section-bar">Public Instance methods</h3>
302
302
 
303
- <div id="method-M000192" class="method-detail">
304
- <a name="M000192"></a>
303
+ <div id="method-M000193" class="method-detail">
304
+ <a name="M000193"></a>
305
305
 
306
306
  <div class="method-heading">
307
- <a href="#M000192" class="method-signature">
307
+ <a href="#M000193" class="method-signature">
308
308
  <span class="method-name">backup</span><span class="method-args">(store, dir=Dir.tmpdir)</span>
309
309
  </a>
310
310
  </div>
@@ -317,7 +317,7 @@ published value. If they don&#8216;t match then a RuntimeError will be
317
317
  raised
318
318
  </p>
319
319
  <table>
320
- <tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000192">backup</a>
320
+ <tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000193">backup</a>
321
321
 
322
322
  </td></tr>
323
323
  <tr><td valign="top">dir:</td><td>directory in which snapshot will be stored
@@ -325,8 +325,8 @@ raised
325
325
  </td></tr>
326
326
  </table>
327
327
  <p><a class="source-toggle" href="#"
328
- onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
329
- <div class="method-source-code" id="M000192-source">
328
+ onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
329
+ <div class="method-source-code" id="M000193-source">
330
330
  <pre>
331
331
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 96</span>
332
332
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backup</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">dir</span>=<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">tmpdir</span>)
@@ -356,11 +356,11 @@ raised
356
356
  </div>
357
357
  </div>
358
358
 
359
- <div id="method-M000191" class="method-detail">
360
- <a name="M000191"></a>
359
+ <div id="method-M000192" class="method-detail">
360
+ <a name="M000192"></a>
361
361
 
362
362
  <div class="method-heading">
363
- <a href="#M000191" class="method-signature">
363
+ <a href="#M000192" class="method-signature">
364
364
  <span class="method-name">read_md5</span><span class="method-args">(client=HttpClient.new())</span>
365
365
  </a>
366
366
  </div>
@@ -370,8 +370,8 @@ raised
370
370
  Read the published MD5 value
371
371
  </p>
372
372
  <p><a class="source-toggle" href="#"
373
- onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
374
- <div class="method-source-code" id="M000191-source">
373
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
374
+ <div class="method-source-code" id="M000192-source">
375
375
  <pre>
376
376
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 86</span>
377
377
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_md5</span>(<span class="ruby-identifier">client</span>=<span class="ruby-constant">HttpClient</span>.<span class="ruby-identifier">new</span>())