pho 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/CHANGES +21 -0
  2. data/README +1 -2
  3. data/Rakefile +1 -1
  4. data/bin/talis_store +13 -22
  5. data/doc/rdoc/classes/Pho/CommandLine.html +162 -124
  6. data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
  7. data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
  8. data/doc/rdoc/classes/Pho/Etags.html +36 -36
  9. data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
  10. data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
  11. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +102 -102
  12. data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
  13. data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +262 -103
  14. data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +34 -14
  15. data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +10 -5
  16. data/doc/rdoc/classes/Pho/Job.html +64 -64
  17. data/doc/rdoc/classes/Pho/Jobs.html +60 -60
  18. data/doc/rdoc/classes/Pho/OAI/Record.html +6 -6
  19. data/doc/rdoc/classes/Pho/OAI/Records.html +24 -24
  20. data/doc/rdoc/classes/Pho/OAI/Statistics.html +12 -12
  21. data/doc/rdoc/classes/Pho/QueryProfile.html +66 -66
  22. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
  23. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
  24. data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
  25. data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +74 -74
  26. data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +78 -78
  27. data/doc/rdoc/classes/Pho/Status.html +26 -26
  28. data/doc/rdoc/classes/Pho/Store.html +215 -215
  29. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
  30. data/doc/rdoc/classes/Pho/Update/Changeset.html +63 -63
  31. data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
  32. data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +6 -6
  33. data/doc/rdoc/classes/Pho/Update/Changesets.html +12 -12
  34. data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
  35. data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
  36. data/doc/rdoc/classes/Pho/Update/Statement.html +24 -24
  37. data/doc/rdoc/created.rid +1 -1
  38. data/doc/rdoc/files/CHANGES.html +34 -1
  39. data/doc/rdoc/files/README.html +3 -4
  40. data/doc/rdoc/files/lib/pho/command_line_rb.html +1 -1
  41. data/doc/rdoc/files/lib/pho/file_management_rb.html +1 -1
  42. data/doc/rdoc/files/lib/pho/file_manager_rb.html +1 -1
  43. data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
  44. data/doc/rdoc/fr_method_index.html +212 -205
  45. data/lib/pho/command_line.rb +29 -11
  46. data/lib/pho/file_management.rb +85 -29
  47. data/lib/pho/file_manager.rb +10 -11
  48. data/lib/pho/rdf_collection.rb +8 -3
  49. data/tests/tc_file_manager.rb +144 -26
  50. data/tests/tc_rdf_collection.rb +76 -68
  51. metadata +4 -4
@@ -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="#M000088">parse</a>&nbsp;&nbsp;
96
- <a href="#M000084">parse_json</a>&nbsp;&nbsp;
97
- <a href="#M000086">parse_ntriples</a>&nbsp;&nbsp;
98
- <a href="#M000085">parse_rdfxml</a>&nbsp;&nbsp;
99
- <a href="#M000087">parse_turtle</a>&nbsp;&nbsp;
100
- <a href="#M000089">serialize_json</a>&nbsp;&nbsp;
95
+ <a href="#M000094">parse</a>&nbsp;&nbsp;
96
+ <a href="#M000090">parse_json</a>&nbsp;&nbsp;
97
+ <a href="#M000092">parse_ntriples</a>&nbsp;&nbsp;
98
+ <a href="#M000091">parse_rdfxml</a>&nbsp;&nbsp;
99
+ <a href="#M000093">parse_turtle</a>&nbsp;&nbsp;
100
+ <a href="#M000095">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-M000088" class="method-detail">
123
- <a name="M000088"></a>
122
+ <div id="method-M000094" class="method-detail">
123
+ <a name="M000094"></a>
124
124
 
125
125
  <div class="method-heading">
126
- <a href="#M000088" class="method-signature">
126
+ <a href="#M000094" class="method-signature">
127
127
  <span class="method-name">parse</span><span class="method-args">(data, format=:rdfxml)</span>
128
128
  </a>
129
129
  </div>
@@ -138,8 +138,8 @@ href="../ResourceHash.html">ResourceHash</a>
138
138
  data:: String containing the data to be parsed
139
139
  </pre>
140
140
  <p><a class="source-toggle" href="#"
141
- onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
142
- <div class="method-source-code" id="M000088-source">
141
+ onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
142
+ <div class="method-source-code" id="M000094-source">
143
143
  <pre>
144
144
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 42</span>
145
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>)
@@ -165,11 +165,11 @@ href="../ResourceHash.html">ResourceHash</a>
165
165
  </div>
166
166
  </div>
167
167
 
168
- <div id="method-M000084" class="method-detail">
169
- <a name="M000084"></a>
168
+ <div id="method-M000090" class="method-detail">
169
+ <a name="M000090"></a>
170
170
 
171
171
  <div class="method-heading">
172
- <a href="#M000084" class="method-signature">
172
+ <a href="#M000090" class="method-signature">
173
173
  <span class="method-name">parse_json</span><span class="method-args">(json)</span>
174
174
  </a>
175
175
  </div>
@@ -183,8 +183,8 @@ Ruby resource hash. Simply invokes the JSON parser.
183
183
  json:: valid RDF-in-JSON
184
184
  </pre>
185
185
  <p><a class="source-toggle" href="#"
186
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
187
- <div class="method-source-code" id="M000084-source">
186
+ onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
187
+ <div class="method-source-code" id="M000090-source">
188
188
  <pre>
189
189
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 13</span>
190
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>)
@@ -195,11 +195,11 @@ Ruby resource hash. Simply invokes the JSON parser.
195
195
  </div>
196
196
  </div>
197
197
 
198
- <div id="method-M000086" class="method-detail">
199
- <a name="M000086"></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="#M000086" class="method-signature">
202
+ <a href="#M000092" class="method-signature">
203
203
  <span class="method-name">parse_ntriples</span><span class="method-args">(ntriples)</span>
204
204
  </a>
205
205
  </div>
@@ -212,8 +212,8 @@ Parse a string containing N-Triples into a resource hash
212
212
  ntriples:: a String containing N-Triples
213
213
  </pre>
214
214
  <p><a class="source-toggle" href="#"
215
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
216
- <div class="method-source-code" id="M000086-source">
215
+ onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
216
+ <div class="method-source-code" id="M000092-source">
217
217
  <pre>
218
218
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 27</span>
219
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>)
@@ -224,11 +224,11 @@ Parse a string containing N-Triples into a resource hash
224
224
  </div>
225
225
  </div>
226
226
 
227
- <div id="method-M000085" class="method-detail">
228
- <a name="M000085"></a>
227
+ <div id="method-M000091" class="method-detail">
228
+ <a name="M000091"></a>
229
229
 
230
230
  <div class="method-heading">
231
- <a href="#M000085" class="method-signature">
231
+ <a href="#M000091" class="method-signature">
232
232
  <span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml)</span>
233
233
  </a>
234
234
  </div>
@@ -241,8 +241,8 @@ Parse a string containing RDF/XML into a resource hash
241
241
  rdfxml: a String containing RDF/XML
242
242
  </pre>
243
243
  <p><a class="source-toggle" href="#"
244
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
245
- <div class="method-source-code" id="M000085-source">
244
+ onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
245
+ <div class="method-source-code" id="M000091-source">
246
246
  <pre>
247
247
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 20</span>
248
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>)
@@ -253,11 +253,11 @@ Parse a string containing RDF/XML into a resource hash
253
253
  </div>
254
254
  </div>
255
255
 
256
- <div id="method-M000087" class="method-detail">
257
- <a name="M000087"></a>
256
+ <div id="method-M000093" class="method-detail">
257
+ <a name="M000093"></a>
258
258
 
259
259
  <div class="method-heading">
260
- <a href="#M000087" class="method-signature">
260
+ <a href="#M000093" class="method-signature">
261
261
  <span class="method-name">parse_turtle</span><span class="method-args">(turtle)</span>
262
262
  </a>
263
263
  </div>
@@ -270,8 +270,8 @@ Parse a string containing Turtle into a resource hash
270
270
  ntriples:: a String containing Turtle
271
271
  </pre>
272
272
  <p><a class="source-toggle" href="#"
273
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
274
- <div class="method-source-code" id="M000087-source">
273
+ onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
274
+ <div class="method-source-code" id="M000093-source">
275
275
  <pre>
276
276
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 34</span>
277
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>)
@@ -282,11 +282,11 @@ Parse a string containing Turtle into a resource hash
282
282
  </div>
283
283
  </div>
284
284
 
285
- <div id="method-M000089" class="method-detail">
286
- <a name="M000089"></a>
285
+ <div id="method-M000095" class="method-detail">
286
+ <a name="M000095"></a>
287
287
 
288
288
  <div class="method-heading">
289
- <a href="#M000089" class="method-signature">
289
+ <a href="#M000095" class="method-signature">
290
290
  <span class="method-name">serialize_json</span><span class="method-args">(hash)</span>
291
291
  </a>
292
292
  </div>
@@ -299,8 +299,8 @@ Serialize a resource hash as RDF-in-JSON
299
299
  hash:: the resource hash to serialize
300
300
  </pre>
301
301
  <p><a class="source-toggle" href="#"
302
- onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
303
- <div class="method-source-code" id="M000089-source">
302
+ onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
303
+ <div class="method-source-code" id="M000095-source">
304
304
  <pre>
305
305
  <span class="ruby-comment cmt"># File lib/pho/converter.rb, line 64</span>
306
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>)
@@ -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="#M000090">minus</a>&nbsp;&nbsp;
96
- <a href="#M000091">object_in_array?</a>&nbsp;&nbsp;
95
+ <a href="#M000096">minus</a>&nbsp;&nbsp;
96
+ <a href="#M000097">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-M000090" class="method-detail">
119
- <a name="M000090"></a>
118
+ <div id="method-M000096" class="method-detail">
119
+ <a name="M000096"></a>
120
120
 
121
121
  <div class="method-heading">
122
- <a href="#M000090" class="method-signature">
122
+ <a href="#M000096" class="method-signature">
123
123
  <span class="method-name">minus</span><span class="method-args">(first, second)</span>
124
124
  </a>
125
125
  </div>
@@ -138,8 +138,8 @@ first graph but which are not present in the second.
138
138
  second:: the second graph.
139
139
  </pre>
140
140
  <p><a class="source-toggle" href="#"
141
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
142
- <div class="method-source-code" id="M000090-source">
141
+ onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
142
+ <div class="method-source-code" id="M000096-source">
143
143
  <pre>
144
144
  <span class="ruby-comment cmt"># File lib/pho/resource_hash.rb, line 20</span>
145
145
  <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>)
@@ -182,11 +182,11 @@ first graph but which are not present in the second.
182
182
  </div>
183
183
  </div>
184
184
 
185
- <div id="method-M000091" class="method-detail">
186
- <a name="M000091"></a>
185
+ <div id="method-M000097" class="method-detail">
186
+ <a name="M000097"></a>
187
187
 
188
188
  <div class="method-heading">
189
- <a href="#M000091" class="method-signature">
189
+ <a href="#M000097" class="method-signature">
190
190
  <span class="method-name">object_in_array?</span><span class="method-args">(array, val)</span>
191
191
  </a>
192
192
  </div>
@@ -197,8 +197,8 @@ Is there an object in the specified array, that matches the provided
197
197
  description
198
198
  </p>
199
199
  <p><a class="source-toggle" href="#"
200
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
201
- <div class="method-source-code" id="M000091-source">
200
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
201
+ <div class="method-source-code" id="M000097-source">
202
202
  <pre>
203
203
  <span class="ruby-comment cmt"># File lib/pho/resource_hash.rb, line 57</span>
204
204
  <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#M000194">backup</a> of the contents of a <a
84
+ href="Snapshot.html#M000201">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="#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;
105
+ <a href="#M000201">backup</a>&nbsp;&nbsp;
106
+ <a href="#M000199">new</a>&nbsp;&nbsp;
107
+ <a href="#M000198">parse</a>&nbsp;&nbsp;
108
+ <a href="#M000197">read_from_store</a>&nbsp;&nbsp;
109
+ <a href="#M000200">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-M000192" class="method-detail">
180
- <a name="M000192"></a>
179
+ <div id="method-M000199" class="method-detail">
180
+ <a name="M000199"></a>
181
181
 
182
182
  <div class="method-heading">
183
- <a href="#M000192" class="method-signature">
183
+ <a href="#M000199" 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('M000192-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000192-source">
190
+ onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000199-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-M000191" class="method-detail">
207
- <a name="M000191"></a>
206
+ <div id="method-M000198" class="method-detail">
207
+ <a name="M000198"></a>
208
208
 
209
209
  <div class="method-heading">
210
- <a href="#M000191" class="method-signature">
210
+ <a href="#M000198" 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#M000191">parse</a> the RDF response
217
+ Class method to <a href="Snapshot.html#M000198">parse</a> the RDF response
218
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>
219
+ href="Store.html#M000191">Store.get_snapshots</a> method and create a <a
220
+ href="Snapshot.html#M000199">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('M000191-source');return false;">[Source]</a></p>
233
- <div class="method-source-code" id="M000191-source">
232
+ onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000198-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-M000190" class="method-detail">
269
- <a name="M000190"></a>
268
+ <div id="method-M000197" class="method-detail">
269
+ <a name="M000197"></a>
270
270
 
271
271
  <div class="method-heading">
272
- <a href="#M000190" class="method-signature">
272
+ <a href="#M000197" 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('M000190-source');return false;">[Source]</a></p>
288
- <div class="method-source-code" id="M000190-source">
287
+ onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
288
+ <div class="method-source-code" id="M000197-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-M000194" class="method-detail">
309
- <a name="M000194"></a>
308
+ <div id="method-M000201" class="method-detail">
309
+ <a name="M000201"></a>
310
310
 
311
311
  <div class="method-heading">
312
- <a href="#M000194" class="method-signature">
312
+ <a href="#M000201" 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#M000194">backup</a>
325
+ <tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000201">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('M000194-source');return false;">[Source]</a></p>
334
- <div class="method-source-code" id="M000194-source">
333
+ onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
334
+ <div class="method-source-code" id="M000201-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-M000193" class="method-detail">
365
- <a name="M000193"></a>
364
+ <div id="method-M000200" class="method-detail">
365
+ <a name="M000200"></a>
366
366
 
367
367
  <div class="method-heading">
368
- <a href="#M000193" class="method-signature">
368
+ <a href="#M000200" 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('M000193-source');return false;">[Source]</a></p>
379
- <div class="method-source-code" id="M000193-source">
378
+ onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
379
+ <div class="method-source-code" id="M000200-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>())
@@ -92,16 +92,16 @@ A simple SPARQL client that handles the basic HTTP traffic
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000048">add_default_graph</a>&nbsp;&nbsp;
96
- <a href="#M000049">add_named_graph</a>&nbsp;&nbsp;
97
- <a href="#M000055">ask</a>&nbsp;&nbsp;
98
- <a href="#M000054">construct</a>&nbsp;&nbsp;
99
- <a href="#M000052">describe</a>&nbsp;&nbsp;
100
- <a href="#M000051">describe_uri</a>&nbsp;&nbsp;
101
- <a href="#M000053">multi_describe</a>&nbsp;&nbsp;
102
- <a href="#M000047">new</a>&nbsp;&nbsp;
103
- <a href="#M000050">query</a>&nbsp;&nbsp;
104
- <a href="#M000056">select</a>&nbsp;&nbsp;
95
+ <a href="#M000054">add_default_graph</a>&nbsp;&nbsp;
96
+ <a href="#M000055">add_named_graph</a>&nbsp;&nbsp;
97
+ <a href="#M000061">ask</a>&nbsp;&nbsp;
98
+ <a href="#M000060">construct</a>&nbsp;&nbsp;
99
+ <a href="#M000058">describe</a>&nbsp;&nbsp;
100
+ <a href="#M000057">describe_uri</a>&nbsp;&nbsp;
101
+ <a href="#M000059">multi_describe</a>&nbsp;&nbsp;
102
+ <a href="#M000053">new</a>&nbsp;&nbsp;
103
+ <a href="#M000056">query</a>&nbsp;&nbsp;
104
+ <a href="#M000062">select</a>&nbsp;&nbsp;
105
105
  </div>
106
106
  </div>
107
107
 
@@ -153,7 +153,7 @@ URI of the endpoint
153
153
  <td class="context-item-desc">
154
154
  Name of output parameter to use to control response format. If set then
155
155
  this parameter is added to the <a
156
- href="SparqlClient.html#M000050">query</a> string, rather than using
156
+ href="SparqlClient.html#M000056">query</a> string, rather than using
157
157
  Content Negotiation
158
158
 
159
159
  </td>
@@ -186,11 +186,11 @@ Will default to true.
186
186
  <div id="methods">
187
187
  <h3 class="section-bar">Public Class methods</h3>
188
188
 
189
- <div id="method-M000047" class="method-detail">
190
- <a name="M000047"></a>
189
+ <div id="method-M000053" class="method-detail">
190
+ <a name="M000053"></a>
191
191
 
192
192
  <div class="method-heading">
193
- <a href="#M000047" class="method-signature">
193
+ <a href="#M000053" class="method-signature">
194
194
  <span class="method-name">new</span><span class="method-args">(endpoint, client=HTTPClient.new() )</span>
195
195
  </a>
196
196
  </div>
@@ -208,8 +208,8 @@ Initialize a client for a specific endpoint
208
208
  </td></tr>
209
209
  </table>
210
210
  <p><a class="source-toggle" href="#"
211
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
212
- <div class="method-source-code" id="M000047-source">
211
+ onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
212
+ <div class="method-source-code" id="M000053-source">
213
213
  <pre>
214
214
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 121</span>
215
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">endpoint</span>, <span class="ruby-identifier">client</span>=<span class="ruby-constant">HTTPClient</span>.<span class="ruby-identifier">new</span>() )
@@ -228,11 +228,11 @@ Initialize a client for a specific endpoint
228
228
 
229
229
  <h3 class="section-bar">Public Instance methods</h3>
230
230
 
231
- <div id="method-M000048" class="method-detail">
232
- <a name="M000048"></a>
231
+ <div id="method-M000054" class="method-detail">
232
+ <a name="M000054"></a>
233
233
 
234
234
  <div class="method-heading">
235
- <a href="#M000048" class="method-signature">
235
+ <a href="#M000054" class="method-signature">
236
236
  <span class="method-name">add_default_graph</span><span class="method-args">(graph_uri)</span>
237
237
  </a>
238
238
  </div>
@@ -243,8 +243,8 @@ Add a default graph. This will be added as a default graph in the request
243
243
  protocol
244
244
  </p>
245
245
  <p><a class="source-toggle" href="#"
246
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
247
- <div class="method-source-code" id="M000048-source">
246
+ onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
247
+ <div class="method-source-code" id="M000054-source">
248
248
  <pre>
249
249
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 132</span>
250
250
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_default_graph</span>(<span class="ruby-identifier">graph_uri</span>)
@@ -258,11 +258,11 @@ protocol
258
258
  </div>
259
259
  </div>
260
260
 
261
- <div id="method-M000049" class="method-detail">
262
- <a name="M000049"></a>
261
+ <div id="method-M000055" class="method-detail">
262
+ <a name="M000055"></a>
263
263
 
264
264
  <div class="method-heading">
265
- <a href="#M000049" class="method-signature">
265
+ <a href="#M000055" class="method-signature">
266
266
  <span class="method-name">add_named_graph</span><span class="method-args">(graph_uri)</span>
267
267
  </a>
268
268
  </div>
@@ -273,8 +273,8 @@ Add a named graph. This will be added as a named graph in the request
273
273
  protocol
274
274
  </p>
275
275
  <p><a class="source-toggle" href="#"
276
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
277
- <div class="method-source-code" id="M000049-source">
276
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
277
+ <div class="method-source-code" id="M000055-source">
278
278
  <pre>
279
279
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 140</span>
280
280
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_named_graph</span>(<span class="ruby-identifier">graph_uri</span>)
@@ -288,21 +288,21 @@ protocol
288
288
  </div>
289
289
  </div>
290
290
 
291
- <div id="method-M000055" class="method-detail">
292
- <a name="M000055"></a>
291
+ <div id="method-M000061" class="method-detail">
292
+ <a name="M000061"></a>
293
293
 
294
294
  <div class="method-heading">
295
- <a href="#M000055" class="method-signature">
295
+ <a href="#M000061" class="method-signature">
296
296
  <span class="method-name">ask</span><span class="method-args">(query, format=Pho::Sparql::SPARQL_RESULTS_XML)</span>
297
297
  </a>
298
298
  </div>
299
299
 
300
300
  <div class="method-description">
301
301
  <p>
302
- Perform a SPARQL ASK <a href="SparqlClient.html#M000050">query</a>.
302
+ Perform a SPARQL ASK <a href="SparqlClient.html#M000056">query</a>.
303
303
  </p>
304
304
  <table>
305
- <tr><td valign="top"><a href="SparqlClient.html#M000050">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000050">query</a>
305
+ <tr><td valign="top"><a href="SparqlClient.html#M000056">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000056">query</a>
306
306
 
307
307
  </td></tr>
308
308
  <tr><td valign="top">format:</td><td>the preferred response format
@@ -310,8 +310,8 @@ Perform a SPARQL ASK <a href="SparqlClient.html#M000050">query</a>.
310
310
  </td></tr>
311
311
  </table>
312
312
  <p><a class="source-toggle" href="#"
313
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
314
- <div class="method-source-code" id="M000055-source">
313
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
314
+ <div class="method-source-code" id="M000061-source">
315
315
  <pre>
316
316
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 231</span>
317
317
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-constant">Pho</span><span class="ruby-operator">::</span><span class="ruby-constant">Sparql</span><span class="ruby-operator">::</span><span class="ruby-constant">SPARQL_RESULTS_XML</span>)
@@ -322,21 +322,21 @@ Perform a SPARQL ASK <a href="SparqlClient.html#M000050">query</a>.
322
322
  </div>
323
323
  </div>
324
324
 
325
- <div id="method-M000054" class="method-detail">
326
- <a name="M000054"></a>
325
+ <div id="method-M000060" class="method-detail">
326
+ <a name="M000060"></a>
327
327
 
328
328
  <div class="method-heading">
329
- <a href="#M000054" class="method-signature">
329
+ <a href="#M000060" class="method-signature">
330
330
  <span class="method-name">construct</span><span class="method-args">(query, format=&quot;application/rdf+xml&quot;)</span>
331
331
  </a>
332
332
  </div>
333
333
 
334
334
  <div class="method-description">
335
335
  <p>
336
- Perform a SPARQL CONSTRUCT <a href="SparqlClient.html#M000050">query</a>.
336
+ Perform a SPARQL CONSTRUCT <a href="SparqlClient.html#M000056">query</a>.
337
337
  </p>
338
338
  <table>
339
- <tr><td valign="top"><a href="SparqlClient.html#M000050">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000050">query</a>
339
+ <tr><td valign="top"><a href="SparqlClient.html#M000056">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000056">query</a>
340
340
 
341
341
  </td></tr>
342
342
  <tr><td valign="top">format:</td><td>the preferred response format
@@ -344,8 +344,8 @@ Perform a SPARQL CONSTRUCT <a href="SparqlClient.html#M000050">query</a>.
344
344
  </td></tr>
345
345
  </table>
346
346
  <p><a class="source-toggle" href="#"
347
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
348
- <div class="method-source-code" id="M000054-source">
347
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
348
+ <div class="method-source-code" id="M000060-source">
349
349
  <pre>
350
350
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 223</span>
351
351
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">construct</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">&quot;application/rdf+xml&quot;</span>)
@@ -356,21 +356,21 @@ Perform a SPARQL CONSTRUCT <a href="SparqlClient.html#M000050">query</a>.
356
356
  </div>
357
357
  </div>
358
358
 
359
- <div id="method-M000052" class="method-detail">
360
- <a name="M000052"></a>
359
+ <div id="method-M000058" class="method-detail">
360
+ <a name="M000058"></a>
361
361
 
362
362
  <div class="method-heading">
363
- <a href="#M000052" class="method-signature">
363
+ <a href="#M000058" class="method-signature">
364
364
  <span class="method-name">describe</span><span class="method-args">(query, format=&quot;application/rdf+xml&quot;)</span>
365
365
  </a>
366
366
  </div>
367
367
 
368
368
  <div class="method-description">
369
369
  <p>
370
- Perform a SPARQL DESCRIBE <a href="SparqlClient.html#M000050">query</a>.
370
+ Perform a SPARQL DESCRIBE <a href="SparqlClient.html#M000056">query</a>.
371
371
  </p>
372
372
  <table>
373
- <tr><td valign="top"><a href="SparqlClient.html#M000050">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000050">query</a>
373
+ <tr><td valign="top"><a href="SparqlClient.html#M000056">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000056">query</a>
374
374
 
375
375
  </td></tr>
376
376
  <tr><td valign="top">format:</td><td>the preferred response format
@@ -378,8 +378,8 @@ Perform a SPARQL DESCRIBE <a href="SparqlClient.html#M000050">query</a>.
378
378
  </td></tr>
379
379
  </table>
380
380
  <p><a class="source-toggle" href="#"
381
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
382
- <div class="method-source-code" id="M000052-source">
381
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
382
+ <div class="method-source-code" id="M000058-source">
383
383
  <pre>
384
384
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 202</span>
385
385
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">&quot;application/rdf+xml&quot;</span>)
@@ -390,11 +390,11 @@ Perform a SPARQL DESCRIBE <a href="SparqlClient.html#M000050">query</a>.
390
390
  </div>
391
391
  </div>
392
392
 
393
- <div id="method-M000051" class="method-detail">
394
- <a name="M000051"></a>
393
+ <div id="method-M000057" class="method-detail">
394
+ <a name="M000057"></a>
395
395
 
396
396
  <div class="method-heading">
397
- <a href="#M000051" class="method-signature">
397
+ <a href="#M000057" class="method-signature">
398
398
  <span class="method-name">describe_uri</span><span class="method-args">(uri, format=&quot;application/rdf+xml&quot;, type=:cbd)</span>
399
399
  </a>
400
400
  </div>
@@ -404,7 +404,7 @@ Perform a SPARQL DESCRIBE <a href="SparqlClient.html#M000050">query</a>.
404
404
  Describe a uri, optionally specifying a form of bounded description
405
405
  </p>
406
406
  <table>
407
- <tr><td valign="top">uri:</td><td>the uri to <a href="SparqlClient.html#M000052">describe</a>
407
+ <tr><td valign="top">uri:</td><td>the uri to <a href="SparqlClient.html#M000058">describe</a>
408
408
 
409
409
  </td></tr>
410
410
  <tr><td valign="top">format:</td><td>mimetype for results
@@ -416,8 +416,8 @@ Describe a uri, optionally specifying a form of bounded description
416
416
  </td></tr>
417
417
  </table>
418
418
  <p><a class="source-toggle" href="#"
419
- onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
420
- <div class="method-source-code" id="M000051-source">
419
+ onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
420
+ <div class="method-source-code" id="M000057-source">
421
421
  <pre>
422
422
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 189</span>
423
423
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe_uri</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">&quot;application/rdf+xml&quot;</span>, <span class="ruby-identifier">type</span>=<span class="ruby-identifier">:cbd</span>)
@@ -433,11 +433,11 @@ Describe a uri, optionally specifying a form of bounded description
433
433
  </div>
434
434
  </div>
435
435
 
436
- <div id="method-M000053" class="method-detail">
437
- <a name="M000053"></a>
436
+ <div id="method-M000059" class="method-detail">
437
+ <a name="M000059"></a>
438
438
 
439
439
  <div class="method-heading">
440
- <a href="#M000053" class="method-signature">
440
+ <a href="#M000059" class="method-signature">
441
441
  <span class="method-name">multi_describe</span><span class="method-args">(uris, format=&quot;application/rdf+xml&quot;)</span>
442
442
  </a>
443
443
  </div>
@@ -445,11 +445,11 @@ Describe a uri, optionally specifying a form of bounded description
445
445
  <div class="method-description">
446
446
  <p>
447
447
  DESCRIBE multiple resources in a single <a
448
- href="SparqlClient.html#M000050">query</a>. The provided array should
448
+ href="SparqlClient.html#M000056">query</a>. The provided array should
449
449
  contain the uris that are to be described
450
450
  </p>
451
451
  <p>
452
- This will generate a <a href="SparqlClient.html#M000050">query</a> like:
452
+ This will generate a <a href="SparqlClient.html#M000056">query</a> like:
453
453
  </p>
454
454
  <pre>
455
455
  DESCRIBE &lt;http://www.example.org&gt; &lt;http://www.example.com&gt; ...
@@ -463,8 +463,8 @@ This will generate a <a href="SparqlClient.html#M000050">query</a> like:
463
463
  </td></tr>
464
464
  </table>
465
465
  <p><a class="source-toggle" href="#"
466
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
467
- <div class="method-source-code" id="M000053-source">
466
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
467
+ <div class="method-source-code" id="M000059-source">
468
468
  <pre>
469
469
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 214</span>
470
470
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multi_describe</span>(<span class="ruby-identifier">uris</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">&quot;application/rdf+xml&quot;</span>)
@@ -476,21 +476,21 @@ This will generate a <a href="SparqlClient.html#M000050">query</a> like:
476
476
  </div>
477
477
  </div>
478
478
 
479
- <div id="method-M000050" class="method-detail">
480
- <a name="M000050"></a>
479
+ <div id="method-M000056" class="method-detail">
480
+ <a name="M000056"></a>
481
481
 
482
482
  <div class="method-heading">
483
- <a href="#M000050" class="method-signature">
483
+ <a href="#M000056" class="method-signature">
484
484
  <span class="method-name">query</span><span class="method-args">(sparql, format=nil, graphs=nil, named_graphs=nil)</span>
485
485
  </a>
486
486
  </div>
487
487
 
488
488
  <div class="method-description">
489
489
  <p>
490
- Perform a sparql <a href="SparqlClient.html#M000050">query</a>
490
+ Perform a sparql <a href="SparqlClient.html#M000056">query</a>
491
491
  </p>
492
492
  <table>
493
- <tr><td valign="top">sparql:</td><td>a valid SPARQL <a href="SparqlClient.html#M000050">query</a>
493
+ <tr><td valign="top">sparql:</td><td>a valid SPARQL <a href="SparqlClient.html#M000056">query</a>
494
494
 
495
495
  </td></tr>
496
496
  <tr><td valign="top">format:</td><td>specific a request format. Usually a media-type, but may be a name for a
@@ -505,8 +505,8 @@ type, if not using Conneg
505
505
  </td></tr>
506
506
  </table>
507
507
  <p><a class="source-toggle" href="#"
508
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
509
- <div class="method-source-code" id="M000050-source">
508
+ onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
509
+ <div class="method-source-code" id="M000056-source">
510
510
  <pre>
511
511
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 153</span>
512
512
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query</span>(<span class="ruby-identifier">sparql</span>, <span class="ruby-identifier">format</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">graphs</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">named_graphs</span>=<span class="ruby-keyword kw">nil</span>)
@@ -544,21 +544,21 @@ type, if not using Conneg
544
544
  </div>
545
545
  </div>
546
546
 
547
- <div id="method-M000056" class="method-detail">
548
- <a name="M000056"></a>
547
+ <div id="method-M000062" class="method-detail">
548
+ <a name="M000062"></a>
549
549
 
550
550
  <div class="method-heading">
551
- <a href="#M000056" class="method-signature">
551
+ <a href="#M000062" class="method-signature">
552
552
  <span class="method-name">select</span><span class="method-args">(query, format=Pho::Sparql::SPARQL_RESULTS_XML)</span>
553
553
  </a>
554
554
  </div>
555
555
 
556
556
  <div class="method-description">
557
557
  <p>
558
- Perform a SPARQL SELECT <a href="SparqlClient.html#M000050">query</a>.
558
+ Perform a SPARQL SELECT <a href="SparqlClient.html#M000056">query</a>.
559
559
  </p>
560
560
  <table>
561
- <tr><td valign="top"><a href="SparqlClient.html#M000050">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000050">query</a>
561
+ <tr><td valign="top"><a href="SparqlClient.html#M000056">query</a>:</td><td>the SPARQL <a href="SparqlClient.html#M000056">query</a>
562
562
 
563
563
  </td></tr>
564
564
  <tr><td valign="top">format:</td><td>the preferred response format
@@ -566,8 +566,8 @@ Perform a SPARQL SELECT <a href="SparqlClient.html#M000050">query</a>.
566
566
  </td></tr>
567
567
  </table>
568
568
  <p><a class="source-toggle" href="#"
569
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
570
- <div class="method-source-code" id="M000056-source">
569
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
570
+ <div class="method-source-code" id="M000062-source">
571
571
  <pre>
572
572
  <span class="ruby-comment cmt"># File lib/pho/sparql.rb, line 239</span>
573
573
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-constant">Pho</span><span class="ruby-operator">::</span><span class="ruby-constant">Sparql</span><span class="ruby-operator">::</span><span class="ruby-constant">SPARQL_RESULTS_XML</span>)