pho 0.7.5 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/CHANGES +21 -0
  2. data/Rakefile +1 -1
  3. data/doc/rdoc/classes/Pho.html +0 -5
  4. data/doc/rdoc/classes/Pho/CommandLine.html +108 -108
  5. data/doc/rdoc/classes/Pho/DatatypeProperty.html +15 -15
  6. data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +3 -3
  7. data/doc/rdoc/classes/Pho/Etags.html +36 -36
  8. data/doc/rdoc/classes/Pho/Facet/Results.html +1 -1
  9. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +106 -106
  10. data/doc/rdoc/classes/Pho/FieldWeighting.html +14 -14
  11. data/doc/rdoc/classes/Pho/Job.html +67 -68
  12. data/doc/rdoc/classes/Pho/Jobs.html +62 -62
  13. data/doc/rdoc/classes/Pho/OAI/Records.html +7 -6
  14. data/doc/rdoc/classes/Pho/OAI/Statistics.html +194 -0
  15. data/doc/rdoc/classes/Pho/QueryProfile.html +86 -81
  16. data/doc/rdoc/classes/Pho/ResourceHash.html +1 -1
  17. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -35
  18. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +2 -3
  19. data/doc/rdoc/classes/Pho/Snapshot.html +36 -36
  20. data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +3 -4
  21. data/doc/rdoc/classes/Pho/Status.html +26 -26
  22. data/doc/rdoc/classes/Pho/Store.html +257 -254
  23. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +14 -14
  24. data/doc/rdoc/classes/Pho/Update/Changeset.html +5 -6
  25. data/doc/rdoc/classes/Pho/Update/Changesets.html +2 -3
  26. data/doc/rdoc/classes/Pho/Update/Statement.html +3 -4
  27. data/doc/rdoc/classes/String.html +1 -1
  28. data/doc/rdoc/created.rid +1 -1
  29. data/doc/rdoc/files/CHANGES.html +33 -4
  30. data/doc/rdoc/files/lib/pho/converter_rb.html +1 -8
  31. data/doc/rdoc/files/lib/pho/oai_rb.html +1 -1
  32. data/doc/rdoc/files/lib/pho/query_profile_rb.html +1 -1
  33. data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
  34. data/doc/rdoc/files/lib/pho_rb.html +5 -3
  35. data/doc/rdoc/fr_class_index.html +0 -2
  36. data/doc/rdoc/fr_file_index.html +0 -1
  37. data/doc/rdoc/fr_method_index.html +132 -136
  38. data/lib/pho.rb +7 -3
  39. data/lib/pho/converter.rb +23 -30
  40. data/lib/pho/oai.rb +5 -4
  41. data/lib/pho/query_profile.rb +6 -1
  42. data/lib/pho/store.rb +17 -12
  43. data/tests/tc_changeset_builder.rb +2 -2
  44. data/tests/tc_converter.rb +3 -3
  45. data/tests/tc_oai.rb +1 -1
  46. data/tests/tc_query_profile.rb +37 -1
  47. data/tests/ts_pho.rb +0 -1
  48. metadata +5 -9
  49. data/doc/rdoc/classes/Pho/RDF.html +0 -120
  50. data/doc/rdoc/classes/Pho/RDF/Parser.html +0 -279
  51. data/doc/rdoc/files/lib/pho/rdf_rb.html +0 -108
  52. data/lib/pho/rdf.rb +0 -76
  53. data/tests/tc_rdf_parser.rb +0 -37
@@ -79,7 +79,7 @@
79
79
  <div id="description">
80
80
  <p>
81
81
  Module providing code for manipulating resource hashes structured according
82
- to the <a href="RDF.html">RDF</a> in JSON spec
82
+ to the RDF in JSON spec
83
83
  </p>
84
84
 
85
85
  </div>
@@ -124,7 +124,7 @@ Class for converting to and from resource hashes
124
124
 
125
125
  <div class="method-heading">
126
126
  <a href="#M000088" class="method-signature">
127
- <span class="method-name">parse</span><span class="method-args">(data, base_uri, format=&quot;rdfxml&quot;)</span>
127
+ <span class="method-name">parse</span><span class="method-args">(data, format=:rdfxml)</span>
128
128
  </a>
129
129
  </div>
130
130
 
@@ -134,28 +134,31 @@ Convert specified format into a <a
134
134
  href="../ResourceHash.html">ResourceHash</a>
135
135
  </p>
136
136
  <pre>
137
- format:: one of rdfxml, ntriples, turtle
137
+ format:: one of :rdfxml, :ntriples, :turtle
138
138
  data:: String containing the data to be parsed
139
- base_uri:: base uri of the data
140
139
  </pre>
141
140
  <p><a class="source-toggle" href="#"
142
141
  onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
143
142
  <div class="method-source-code" id="M000088-source">
144
143
  <pre>
145
- <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 53</span>
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>)
147
- <span class="ruby-identifier">model</span> = <span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-constant">Model</span>.<span class="ruby-identifier">new</span>()
148
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">format</span>
149
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;rdfxml&quot;</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">mime</span>=<span class="ruby-value str">&quot;application/rdf+xml&quot;</span>
150
- <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;json&quot;</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">mime</span>=<span class="ruby-value str">&quot;application/json&quot;</span>
151
- <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">mime</span>=<span class="ruby-value str">&quot;&quot;</span>
144
+ <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 42</span>
145
+ <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">format</span>=<span class="ruby-identifier">:rdfxml</span>)
146
+ <span class="ruby-identifier">graph</span> = <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Graph</span>.<span class="ruby-identifier">new</span>()
147
+ <span class="ruby-identifier">io</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">data</span> )
148
+
149
+ <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Reader</span>.<span class="ruby-identifier">for</span>(<span class="ruby-identifier">format</span>).<span class="ruby-identifier">new</span>(<span class="ruby-identifier">io</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">reader</span><span class="ruby-operator">|</span>
150
+ <span class="ruby-identifier">reader</span>.<span class="ruby-identifier">each_statement</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">statement</span><span class="ruby-operator">|</span>
151
+ <span class="ruby-identifier">graph</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">statement</span>
152
+ <span class="ruby-keyword kw">end</span>
153
+ <span class="ruby-keyword kw">end</span>
154
+
155
+ <span class="ruby-identifier">json</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>()
156
+
157
+ <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Writer</span>.<span class="ruby-identifier">for</span>(<span class="ruby-identifier">:json</span>).<span class="ruby-identifier">new</span>(<span class="ruby-identifier">json</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">writer</span><span class="ruby-operator">|</span>
158
+ <span class="ruby-identifier">writer</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">graph</span>
152
159
  <span class="ruby-keyword kw">end</span>
153
160
 
154
- <span class="ruby-identifier">parser</span> = <span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">format</span>, <span class="ruby-identifier">mime</span>)
155
- <span class="ruby-identifier">parser</span>.<span class="ruby-identifier">parse_string_into_model</span>(<span class="ruby-identifier">model</span>, <span class="ruby-identifier">data</span>, <span class="ruby-identifier">base_uri</span>)
156
- <span class="ruby-identifier">serializer</span> = <span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-constant">Serializer</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">&quot;json&quot;</span>, <span class="ruby-value str">&quot;application/json&quot;</span> )
157
- <span class="ruby-identifier">json</span> = <span class="ruby-identifier">serializer</span>.<span class="ruby-identifier">model_to_string</span>(<span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-constant">Uri</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">base_uri</span>), <span class="ruby-identifier">model</span>)
158
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>( <span class="ruby-identifier">json</span> )
161
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>( <span class="ruby-identifier">json</span>.<span class="ruby-identifier">string</span> )
159
162
  <span class="ruby-keyword kw">end</span>
160
163
  </pre>
161
164
  </div>
@@ -173,9 +176,8 @@ href="../ResourceHash.html">ResourceHash</a>
173
176
 
174
177
  <div class="method-description">
175
178
  <p>
176
- Parse JSON structured according to the <a
177
- href="../RDF.html">RDF</a>-in-JSON specification into a Ruby resource hash.
178
- Simply invokes the JSON parser.
179
+ Parse JSON structured according to the RDF-in-JSON specification into a
180
+ Ruby resource hash. Simply invokes the JSON parser.
179
181
  </p>
180
182
  <pre>
181
183
  json:: valid RDF-in-JSON
@@ -184,7 +186,7 @@ Simply invokes the JSON parser.
184
186
  onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
185
187
  <div class="method-source-code" id="M000084-source">
186
188
  <pre>
187
- <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 23</span>
189
+ <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 13</span>
188
190
  <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>)
189
191
  <span class="ruby-keyword kw">return</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">json</span>)
190
192
  <span class="ruby-keyword kw">end</span>
@@ -198,7 +200,7 @@ Simply invokes the JSON parser.
198
200
 
199
201
  <div class="method-heading">
200
202
  <a href="#M000086" class="method-signature">
201
- <span class="method-name">parse_ntriples</span><span class="method-args">(ntriples, base_uri)</span>
203
+ <span class="method-name">parse_ntriples</span><span class="method-args">(ntriples)</span>
202
204
  </a>
203
205
  </div>
204
206
 
@@ -213,9 +215,9 @@ Parse a string containing N-Triples into a resource hash
213
215
  onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
214
216
  <div class="method-source-code" id="M000086-source">
215
217
  <pre>
216
- <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 37</span>
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>)
218
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier">base_uri</span>, <span class="ruby-value str">&quot;ntriples&quot;</span>)
218
+ <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 27</span>
219
+ <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>)
220
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier">:ntriples</span>)
219
221
  <span class="ruby-keyword kw">end</span>
220
222
  </pre>
221
223
  </div>
@@ -227,14 +229,13 @@ Parse a string containing N-Triples into a resource hash
227
229
 
228
230
  <div class="method-heading">
229
231
  <a href="#M000085" class="method-signature">
230
- <span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml, base_uri)</span>
232
+ <span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml)</span>
231
233
  </a>
232
234
  </div>
233
235
 
234
236
  <div class="method-description">
235
237
  <p>
236
- Parse a string containing <a href="../RDF.html">RDF</a>/XML into a resource
237
- hash
238
+ Parse a string containing RDF/XML into a resource hash
238
239
  </p>
239
240
  <pre>
240
241
  rdfxml: a String containing RDF/XML
@@ -243,9 +244,9 @@ hash
243
244
  onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
244
245
  <div class="method-source-code" id="M000085-source">
245
246
  <pre>
246
- <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 30</span>
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>)
248
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">rdfxml</span>, <span class="ruby-identifier">base_uri</span>, <span class="ruby-value str">&quot;rdfxml&quot;</span>)
247
+ <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 20</span>
248
+ <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>)
249
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">rdfxml</span>, <span class="ruby-identifier">:rdfxml</span>)
249
250
  <span class="ruby-keyword kw">end</span>
250
251
  </pre>
251
252
  </div>
@@ -257,7 +258,7 @@ hash
257
258
 
258
259
  <div class="method-heading">
259
260
  <a href="#M000087" class="method-signature">
260
- <span class="method-name">parse_turtle</span><span class="method-args">(turtle, base_uri)</span>
261
+ <span class="method-name">parse_turtle</span><span class="method-args">(turtle)</span>
261
262
  </a>
262
263
  </div>
263
264
 
@@ -272,9 +273,9 @@ Parse a string containing Turtle into a resource hash
272
273
  onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
273
274
  <div class="method-source-code" id="M000087-source">
274
275
  <pre>
275
- <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 44</span>
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>)
277
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">turtle</span>, <span class="ruby-identifier">base_uri</span>, <span class="ruby-value str">&quot;turtle&quot;</span>)
276
+ <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 34</span>
277
+ <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>)
278
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">turtle</span>, <span class="ruby-identifier">:turtle</span>)
278
279
  <span class="ruby-keyword kw">end</span>
279
280
  </pre>
280
281
  </div>
@@ -292,7 +293,7 @@ Parse a string containing Turtle into a resource hash
292
293
 
293
294
  <div class="method-description">
294
295
  <p>
295
- Serialize a resource hash as <a href="../RDF.html">RDF</a>-in-JSON
296
+ Serialize a resource hash as RDF-in-JSON
296
297
  </p>
297
298
  <pre>
298
299
  hash:: the resource hash to serialize
@@ -301,7 +302,7 @@ Serialize a resource hash as <a href="../RDF.html">RDF</a>-in-JSON
301
302
  onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
302
303
  <div class="method-source-code" id="M000089-source">
303
304
  <pre>
304
- <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 71</span>
305
+ <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 64</span>
305
306
  <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>)
306
307
  <span class="ruby-keyword kw">return</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-identifier">hash</span>)
307
308
  <span class="ruby-keyword kw">end</span>
@@ -126,9 +126,8 @@ Class providing set algebra methods over triple hashes
126
126
 
127
127
  <div class="method-description">
128
128
  <p>
129
- Accepts two triple hashes, expressed as <a
130
- href="../RDF.html">RDF</a>-in-JSON and returns a new Ruby data structure
131
- that constitutes the different between the two graphs
129
+ Accepts two triple hashes, expressed as RDF-in-JSON and returns a new Ruby
130
+ data structure that constitutes the different between the two graphs
132
131
  </p>
133
132
  <p>
134
133
  i.e. the return value will be a hash containing the triples that are in the
@@ -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#M000198">backup</a> of the contents of a <a
84
+ href="Snapshot.html#M000194">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="#M000198">backup</a>&nbsp;&nbsp;
106
- <a href="#M000196">new</a>&nbsp;&nbsp;
107
- <a href="#M000195">parse</a>&nbsp;&nbsp;
108
- <a href="#M000194">read_from_store</a>&nbsp;&nbsp;
109
- <a href="#M000197">read_md5</a>&nbsp;&nbsp;
105
+ <a href="#M000194">backup</a>&nbsp;&nbsp;
106
+ <a href="#M000192">new</a>&nbsp;&nbsp;
107
+ <a href="#M000191">parse</a>&nbsp;&nbsp;
108
+ <a href="#M000190">read_from_store</a>&nbsp;&nbsp;
109
+ <a href="#M000193">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-M000196" class="method-detail">
180
- <a name="M000196"></a>
179
+ <div id="method-M000192" class="method-detail">
180
+ <a name="M000192"></a>
181
181
 
182
182
  <div class="method-heading">
183
- <a href="#M000196" class="method-signature">
183
+ <a href="#M000192" 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('M000196-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000196-source">
190
+ onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000192-source">
192
192
  <pre>
193
193
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 81</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-M000195" class="method-detail">
207
- <a name="M000195"></a>
206
+ <div id="method-M000191" class="method-detail">
207
+ <a name="M000191"></a>
208
208
 
209
209
  <div class="method-heading">
210
- <a href="#M000195" class="method-signature">
210
+ <a href="#M000191" 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#M000195">parse</a> the <a
218
- href="RDF.html">RDF</a> response from the API, e.g. as produced by the <a
219
- href="Store.html#M000188">Store.get_snapshots</a> method and create a <a
220
- href="Snapshot.html#M000196">new</a> <a href="Snapshot.html">Snapshot</a>
217
+ Class method to <a href="Snapshot.html#M000191">parse</a> the RDF response
218
+ from the API, e.g. as produced by the <a
219
+ href="Store.html#M000184">Store.get_snapshots</a> method and create a <a
220
+ href="Snapshot.html#M000192">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>
@@ -229,8 +229,8 @@ snapshot can be found, then the method returns nil
229
229
  content:: response from the API
230
230
  </pre>
231
231
  <p><a class="source-toggle" href="#"
232
- onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
233
- <div class="method-source-code" id="M000195-source">
232
+ onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000191-source">
234
234
  <pre>
235
235
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 53</span>
236
236
  <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>)
@@ -265,11 +265,11 @@ snapshot can be found, then the method returns nil
265
265
  </div>
266
266
  </div>
267
267
 
268
- <div id="method-M000194" class="method-detail">
269
- <a name="M000194"></a>
268
+ <div id="method-M000190" class="method-detail">
269
+ <a name="M000190"></a>
270
270
 
271
271
  <div class="method-heading">
272
- <a href="#M000194" class="method-signature">
272
+ <a href="#M000190" class="method-signature">
273
273
  <span class="method-name">read_from_store</span><span class="method-args">(store)</span>
274
274
  </a>
275
275
  </div>
@@ -284,8 +284,8 @@ Read snapshot data from the given store
284
284
  </td></tr>
285
285
  </table>
286
286
  <p><a class="source-toggle" href="#"
287
- onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
288
- <div class="method-source-code" id="M000194-source">
287
+ onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
288
+ <div class="method-source-code" id="M000190-source">
289
289
  <pre>
290
290
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 34</span>
291
291
  <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>)
@@ -305,11 +305,11 @@ Read snapshot data from the given store
305
305
 
306
306
  <h3 class="section-bar">Public Instance methods</h3>
307
307
 
308
- <div id="method-M000198" class="method-detail">
309
- <a name="M000198"></a>
308
+ <div id="method-M000194" class="method-detail">
309
+ <a name="M000194"></a>
310
310
 
311
311
  <div class="method-heading">
312
- <a href="#M000198" class="method-signature">
312
+ <a href="#M000194" class="method-signature">
313
313
  <span class="method-name">backup</span><span class="method-args">(store, dir=Dir.tmpdir)</span>
314
314
  </a>
315
315
  </div>
@@ -322,7 +322,7 @@ published value. If they don&#8216;t match then a RuntimeError will be
322
322
  raised
323
323
  </p>
324
324
  <table>
325
- <tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000198">backup</a>
325
+ <tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000194">backup</a>
326
326
 
327
327
  </td></tr>
328
328
  <tr><td valign="top">dir:</td><td>directory in which snapshot will be stored
@@ -330,8 +330,8 @@ raised
330
330
  </td></tr>
331
331
  </table>
332
332
  <p><a class="source-toggle" href="#"
333
- onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
334
- <div class="method-source-code" id="M000198-source">
333
+ onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
334
+ <div class="method-source-code" id="M000194-source">
335
335
  <pre>
336
336
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 101</span>
337
337
  <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>)
@@ -361,11 +361,11 @@ raised
361
361
  </div>
362
362
  </div>
363
363
 
364
- <div id="method-M000197" class="method-detail">
365
- <a name="M000197"></a>
364
+ <div id="method-M000193" class="method-detail">
365
+ <a name="M000193"></a>
366
366
 
367
367
  <div class="method-heading">
368
- <a href="#M000197" class="method-signature">
368
+ <a href="#M000193" class="method-signature">
369
369
  <span class="method-name">read_md5</span><span class="method-args">(client=HttpClient.new())</span>
370
370
  </a>
371
371
  </div>
@@ -375,8 +375,8 @@ raised
375
375
  Read the published MD5 value
376
376
  </p>
377
377
  <p><a class="source-toggle" href="#"
378
- onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
379
- <div class="method-source-code" id="M000197-source">
378
+ onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
379
+ <div class="method-source-code" id="M000193-source">
380
380
  <pre>
381
381
  <span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 91</span>
382
382
  <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>())
@@ -162,9 +162,8 @@ Content Negotiation
162
162
  <td class="context-item-name">supports_rdf_json</td>
163
163
  <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
164
164
  <td class="context-item-desc">
165
- Configures whether the remote endpoint supports the <a
166
- href="../RDF.html">RDF</a>-in-JSON specification for serializing <a
167
- href="../RDF.html">RDF</a> graphs as JSON. Will default to false.
165
+ Configures whether the remote endpoint supports the RDF-in-JSON
166
+ specification for serializing RDF graphs as JSON. Will default to false.
168
167
 
169
168
  </td>
170
169
  </tr>
@@ -459,7 +458,7 @@ This will generate a <a href="SparqlClient.html#M000050">query</a> like:
459
458
  <tr><td valign="top">uris:</td><td>list of the uris to be described
460
459
 
461
460
  </td></tr>
462
- <tr><td valign="top">format:</td><td>the preferred response format. Default is <a href="../RDF.html">RDF</a>/XML
461
+ <tr><td valign="top">format:</td><td>the preferred response format. Default is RDF/XML
463
462
 
464
463
  </td></tr>
465
464
  </table>
@@ -92,10 +92,10 @@ Captures status information relating to a store
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000131">new</a>&nbsp;&nbsp;
96
- <a href="#M000132">read_from_store</a>&nbsp;&nbsp;
97
- <a href="#M000133">readable?</a>&nbsp;&nbsp;
98
- <a href="#M000134">writeable?</a>&nbsp;&nbsp;
95
+ <a href="#M000127">new</a>&nbsp;&nbsp;
96
+ <a href="#M000128">read_from_store</a>&nbsp;&nbsp;
97
+ <a href="#M000129">readable?</a>&nbsp;&nbsp;
98
+ <a href="#M000130">writeable?</a>&nbsp;&nbsp;
99
99
  </div>
100
100
  </div>
101
101
 
@@ -153,19 +153,19 @@ Interval before status should be requested again.
153
153
  <div id="methods">
154
154
  <h3 class="section-bar">Public Class methods</h3>
155
155
 
156
- <div id="method-M000131" class="method-detail">
157
- <a name="M000131"></a>
156
+ <div id="method-M000127" class="method-detail">
157
+ <a name="M000127"></a>
158
158
 
159
159
  <div class="method-heading">
160
- <a href="#M000131" class="method-signature">
160
+ <a href="#M000127" class="method-signature">
161
161
  <span class="method-name">new</span><span class="method-args">(retry_interval, status_message, access_mode)</span>
162
162
  </a>
163
163
  </div>
164
164
 
165
165
  <div class="method-description">
166
166
  <p><a class="source-toggle" href="#"
167
- onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
168
- <div class="method-source-code" id="M000131-source">
167
+ onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
168
+ <div class="method-source-code" id="M000127-source">
169
169
  <pre>
170
170
  <span class="ruby-comment cmt"># File lib/pho/status.rb, line 25</span>
171
171
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">retry_interval</span>, <span class="ruby-identifier">status_message</span>, <span class="ruby-identifier">access_mode</span>)
@@ -178,11 +178,11 @@ Interval before status should be requested again.
178
178
  </div>
179
179
  </div>
180
180
 
181
- <div id="method-M000132" class="method-detail">
182
- <a name="M000132"></a>
181
+ <div id="method-M000128" class="method-detail">
182
+ <a name="M000128"></a>
183
183
 
184
184
  <div class="method-heading">
185
- <a href="#M000132" class="method-signature">
185
+ <a href="#M000128" class="method-signature">
186
186
  <span class="method-name">read_from_store</span><span class="method-args">(store)</span>
187
187
  </a>
188
188
  </div>
@@ -202,8 +202,8 @@ href="Status.html">Status</a> object.
202
202
  </td></tr>
203
203
  </table>
204
204
  <p><a class="source-toggle" href="#"
205
- onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
206
- <div class="method-source-code" id="M000132-source">
205
+ onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
206
+ <div class="method-source-code" id="M000128-source">
207
207
  <pre>
208
208
  <span class="ruby-comment cmt"># File lib/pho/status.rb, line 36</span>
209
209
  <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Status</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
@@ -229,22 +229,22 @@ href="Status.html">Status</a> object.
229
229
 
230
230
  <h3 class="section-bar">Public Instance methods</h3>
231
231
 
232
- <div id="method-M000133" class="method-detail">
233
- <a name="M000133"></a>
232
+ <div id="method-M000129" class="method-detail">
233
+ <a name="M000129"></a>
234
234
 
235
235
  <div class="method-heading">
236
- <a href="#M000133" class="method-signature">
236
+ <a href="#M000129" class="method-signature">
237
237
  <span class="method-name">readable?</span><span class="method-args">()</span>
238
238
  </a>
239
239
  </div>
240
240
 
241
241
  <div class="method-description">
242
242
  <p>
243
- Is the store <a href="Status.html#M000133">readable?</a>
243
+ Is the store <a href="Status.html#M000129">readable?</a>
244
244
  </p>
245
245
  <p><a class="source-toggle" href="#"
246
- onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
247
- <div class="method-source-code" id="M000133-source">
246
+ onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
247
+ <div class="method-source-code" id="M000129-source">
248
248
  <pre>
249
249
  <span class="ruby-comment cmt"># File lib/pho/status.rb, line 54</span>
250
250
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readable?</span>
@@ -255,22 +255,22 @@ Is the store <a href="Status.html#M000133">readable?</a>
255
255
  </div>
256
256
  </div>
257
257
 
258
- <div id="method-M000134" class="method-detail">
259
- <a name="M000134"></a>
258
+ <div id="method-M000130" class="method-detail">
259
+ <a name="M000130"></a>
260
260
 
261
261
  <div class="method-heading">
262
- <a href="#M000134" class="method-signature">
262
+ <a href="#M000130" class="method-signature">
263
263
  <span class="method-name">writeable?</span><span class="method-args">()</span>
264
264
  </a>
265
265
  </div>
266
266
 
267
267
  <div class="method-description">
268
268
  <p>
269
- Is the store <a href="Status.html#M000134">writeable?</a>
269
+ Is the store <a href="Status.html#M000130">writeable?</a>
270
270
  </p>
271
271
  <p><a class="source-toggle" href="#"
272
- onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
273
- <div class="method-source-code" id="M000134-source">
272
+ onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
273
+ <div class="method-source-code" id="M000130-source">
274
274
  <pre>
275
275
  <span class="ruby-comment cmt"># File lib/pho/status.rb, line 59</span>
276
276
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">writeable?</span>