pho 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +21 -0
- data/README +1 -2
- data/Rakefile +1 -1
- data/bin/talis_store +13 -22
- data/doc/rdoc/classes/Pho/CommandLine.html +162 -124
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
- data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +102 -102
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +262 -103
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +34 -14
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +10 -5
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +60 -60
- data/doc/rdoc/classes/Pho/OAI/Record.html +6 -6
- data/doc/rdoc/classes/Pho/OAI/Records.html +24 -24
- data/doc/rdoc/classes/Pho/OAI/Statistics.html +12 -12
- data/doc/rdoc/classes/Pho/QueryProfile.html +66 -66
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
- data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +74 -74
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +78 -78
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +215 -215
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
- data/doc/rdoc/classes/Pho/Update/Changeset.html +63 -63
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
- data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +6 -6
- data/doc/rdoc/classes/Pho/Update/Changesets.html +12 -12
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Statement.html +24 -24
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +34 -1
- data/doc/rdoc/files/README.html +3 -4
- data/doc/rdoc/files/lib/pho/command_line_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_management_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +212 -205
- data/lib/pho/command_line.rb +29 -11
- data/lib/pho/file_management.rb +85 -29
- data/lib/pho/file_manager.rb +10 -11
- data/lib/pho/rdf_collection.rb +8 -3
- data/tests/tc_file_manager.rb +144 -26
- data/tests/tc_rdf_collection.rb +76 -68
- metadata +4 -4
@@ -109,40 +109,40 @@ See the examples directory in the distribution
|
|
109
109
|
<h3 class="section-bar">Methods</h3>
|
110
110
|
|
111
111
|
<div class="name-list">
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
131
|
-
<a href="#
|
132
|
-
<a href="#
|
133
|
-
<a href="#
|
134
|
-
<a href="#
|
135
|
-
<a href="#
|
136
|
-
<a href="#
|
137
|
-
<a href="#
|
138
|
-
<a href="#
|
139
|
-
<a href="#
|
140
|
-
<a href="#
|
141
|
-
<a href="#
|
142
|
-
<a href="#
|
143
|
-
<a href="#
|
144
|
-
<a href="#
|
145
|
-
<a href="#
|
112
|
+
<a href="#M000181">augment</a>
|
113
|
+
<a href="#M000180">augment_uri</a>
|
114
|
+
<a href="#M000165">build_uri</a>
|
115
|
+
<a href="#M000182">configure_headers_for_conditional_get</a>
|
116
|
+
<a href="#M000185">delete_item</a>
|
117
|
+
<a href="#M000169">describe</a>
|
118
|
+
<a href="#M000178">facet</a>
|
119
|
+
<a href="#M000193">get_field_predicate_map</a>
|
120
|
+
<a href="#M000186">get_item</a>
|
121
|
+
<a href="#M000187">get_job</a>
|
122
|
+
<a href="#M000188">get_jobs</a>
|
123
|
+
<a href="#M000195">get_query_profile</a>
|
124
|
+
<a href="#M000179">get_search_params</a>
|
125
|
+
<a href="#M000191">get_snapshots</a>
|
126
|
+
<a href="#M000190">get_status</a>
|
127
|
+
<a href="#M000192">list_records</a>
|
128
|
+
<a href="#M000163">new</a>
|
129
|
+
<a href="#M000194">put_field_predicate_map</a>
|
130
|
+
<a href="#M000196">put_query_profile</a>
|
131
|
+
<a href="#M000183">record_etags</a>
|
132
|
+
<a href="#M000177">search</a>
|
133
|
+
<a href="#M000164">set_credentials</a>
|
134
|
+
<a href="#M000176">sparql</a>
|
135
|
+
<a href="#M000174">sparql_ask</a>
|
136
|
+
<a href="#M000171">sparql_client</a>
|
137
|
+
<a href="#M000173">sparql_construct</a>
|
138
|
+
<a href="#M000172">sparql_describe</a>
|
139
|
+
<a href="#M000175">sparql_select</a>
|
140
|
+
<a href="#M000166">store_data</a>
|
141
|
+
<a href="#M000167">store_file</a>
|
142
|
+
<a href="#M000168">store_url</a>
|
143
|
+
<a href="#M000170">submit_changeset</a>
|
144
|
+
<a href="#M000189">submit_job</a>
|
145
|
+
<a href="#M000184">upload_item</a>
|
146
146
|
</div>
|
147
147
|
</div>
|
148
148
|
|
@@ -204,11 +204,11 @@ Retrieve the admin username configured in this instance
|
|
204
204
|
<div id="methods">
|
205
205
|
<h3 class="section-bar">Public Class methods</h3>
|
206
206
|
|
207
|
-
<div id="method-
|
208
|
-
<a name="
|
207
|
+
<div id="method-M000163" class="method-detail">
|
208
|
+
<a name="M000163"></a>
|
209
209
|
|
210
210
|
<div class="method-heading">
|
211
|
-
<a href="#
|
211
|
+
<a href="#M000163" class="method-signature">
|
212
212
|
<span class="method-name">new</span><span class="method-args">(storeuri, username=nil, password=nil, client = HTTPClient.new() )</span>
|
213
213
|
</a>
|
214
214
|
</div>
|
@@ -232,8 +232,8 @@ Create an instance of the store class
|
|
232
232
|
</td></tr>
|
233
233
|
</table>
|
234
234
|
<p><a class="source-toggle" href="#"
|
235
|
-
onclick="toggleCode('
|
236
|
-
<div class="method-source-code" id="
|
235
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
236
|
+
<div class="method-source-code" id="M000163-source">
|
237
237
|
<pre>
|
238
238
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 45</span>
|
239
239
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">storeuri</span>, <span class="ruby-identifier">username</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">password</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">client</span> = <span class="ruby-constant">HTTPClient</span>.<span class="ruby-identifier">new</span>() )
|
@@ -251,11 +251,11 @@ Create an instance of the store class
|
|
251
251
|
|
252
252
|
<h3 class="section-bar">Public Instance methods</h3>
|
253
253
|
|
254
|
-
<div id="method-
|
255
|
-
<a name="
|
254
|
+
<div id="method-M000181" class="method-detail">
|
255
|
+
<a name="M000181"></a>
|
256
256
|
|
257
257
|
<div class="method-heading">
|
258
|
-
<a href="#
|
258
|
+
<a href="#M000181" class="method-signature">
|
259
259
|
<span class="method-name">augment</span><span class="method-args">(data)</span>
|
260
260
|
</a>
|
261
261
|
</div>
|
@@ -271,8 +271,8 @@ Platform
|
|
271
271
|
</td></tr>
|
272
272
|
</table>
|
273
273
|
<p><a class="source-toggle" href="#"
|
274
|
-
onclick="toggleCode('
|
275
|
-
<div class="method-source-code" id="
|
274
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000181-source">
|
276
276
|
<pre>
|
277
277
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 310</span>
|
278
278
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">augment</span>(<span class="ruby-identifier">data</span>)
|
@@ -285,11 +285,11 @@ Platform
|
|
285
285
|
</div>
|
286
286
|
</div>
|
287
287
|
|
288
|
-
<div id="method-
|
289
|
-
<a name="
|
288
|
+
<div id="method-M000180" class="method-detail">
|
289
|
+
<a name="M000180"></a>
|
290
290
|
|
291
291
|
<div class="method-heading">
|
292
|
-
<a href="#
|
292
|
+
<a href="#M000180" class="method-signature">
|
293
293
|
<span class="method-name">augment_uri</span><span class="method-args">(uri)</span>
|
294
294
|
</a>
|
295
295
|
</div>
|
@@ -305,8 +305,8 @@ data in this store
|
|
305
305
|
</td></tr>
|
306
306
|
</table>
|
307
307
|
<p><a class="source-toggle" href="#"
|
308
|
-
onclick="toggleCode('
|
309
|
-
<div class="method-source-code" id="
|
308
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
309
|
+
<div class="method-source-code" id="M000180-source">
|
310
310
|
<pre>
|
311
311
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 301</span>
|
312
312
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">augment_uri</span>(<span class="ruby-identifier">uri</span>)
|
@@ -319,11 +319,11 @@ data in this store
|
|
319
319
|
</div>
|
320
320
|
</div>
|
321
321
|
|
322
|
-
<div id="method-
|
323
|
-
<a name="
|
322
|
+
<div id="method-M000165" class="method-detail">
|
323
|
+
<a name="M000165"></a>
|
324
324
|
|
325
325
|
<div class="method-heading">
|
326
|
-
<a href="#
|
326
|
+
<a href="#M000165" class="method-signature">
|
327
327
|
<span class="method-name">build_uri</span><span class="method-args">(uri)</span>
|
328
328
|
</a>
|
329
329
|
</div>
|
@@ -338,8 +338,8 @@ Build a request uri, by concatenating it with the base uri of the store
|
|
338
338
|
</td></tr>
|
339
339
|
</table>
|
340
340
|
<p><a class="source-toggle" href="#"
|
341
|
-
onclick="toggleCode('
|
342
|
-
<div class="method-source-code" id="
|
341
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
342
|
+
<div class="method-source-code" id="M000165-source">
|
343
343
|
<pre>
|
344
344
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 64</span>
|
345
345
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build_uri</span>(<span class="ruby-identifier">uri</span>)
|
@@ -357,11 +357,11 @@ Build a request uri, by concatenating it with the base uri of the store
|
|
357
357
|
</div>
|
358
358
|
</div>
|
359
359
|
|
360
|
-
<div id="method-
|
361
|
-
<a name="
|
360
|
+
<div id="method-M000182" class="method-detail">
|
361
|
+
<a name="M000182"></a>
|
362
362
|
|
363
363
|
<div class="method-heading">
|
364
|
-
<a href="#
|
364
|
+
<a href="#M000182" class="method-signature">
|
365
365
|
<span class="method-name">configure_headers_for_conditional_get</span><span class="method-args">(u, headers, etags, if_match)</span>
|
366
366
|
</a>
|
367
367
|
</div>
|
@@ -371,8 +371,8 @@ Build a request uri, by concatenating it with the base uri of the store
|
|
371
371
|
Added appropriate http header for conditional get requests
|
372
372
|
</p>
|
373
373
|
<p><a class="source-toggle" href="#"
|
374
|
-
onclick="toggleCode('
|
375
|
-
<div class="method-source-code" id="
|
374
|
+
onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
|
375
|
+
<div class="method-source-code" id="M000182-source">
|
376
376
|
<pre>
|
377
377
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 317</span>
|
378
378
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure_headers_for_conditional_get</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">headers</span>, <span class="ruby-identifier">etags</span>, <span class="ruby-identifier">if_match</span>)
|
@@ -390,11 +390,11 @@ Added appropriate http header for conditional get requests
|
|
390
390
|
</div>
|
391
391
|
</div>
|
392
392
|
|
393
|
-
<div id="method-
|
394
|
-
<a name="
|
393
|
+
<div id="method-M000185" class="method-detail">
|
394
|
+
<a name="M000185"></a>
|
395
395
|
|
396
396
|
<div class="method-heading">
|
397
|
-
<a href="#
|
397
|
+
<a href="#M000185" class="method-signature">
|
398
398
|
<span class="method-name">delete_item</span><span class="method-args">(uri)</span>
|
399
399
|
</a>
|
400
400
|
</div>
|
@@ -412,8 +412,8 @@ Delete an item from the Contentbox in this <a href="Store.html">Store</a>
|
|
412
412
|
TODO: conditional deletes
|
413
413
|
</p>
|
414
414
|
<p><a class="source-toggle" href="#"
|
415
|
-
onclick="toggleCode('
|
416
|
-
<div class="method-source-code" id="
|
415
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
416
|
+
<div class="method-source-code" id="M000185-source">
|
417
417
|
<pre>
|
418
418
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 372</span>
|
419
419
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_item</span>(<span class="ruby-identifier">uri</span>)
|
@@ -427,11 +427,11 @@ TODO: conditional deletes
|
|
427
427
|
</div>
|
428
428
|
</div>
|
429
429
|
|
430
|
-
<div id="method-
|
431
|
-
<a name="
|
430
|
+
<div id="method-M000169" class="method-detail">
|
431
|
+
<a name="M000169"></a>
|
432
432
|
|
433
433
|
<div class="method-heading">
|
434
|
-
<a href="#
|
434
|
+
<a href="#M000169" class="method-signature">
|
435
435
|
<span class="method-name">describe</span><span class="method-args">(uri, format="application/rdf+xml", etags=nil, if_match=false)</span>
|
436
436
|
</a>
|
437
437
|
</div>
|
@@ -443,7 +443,7 @@ be to retrieve an RDF/XML document, but other formats can be requested, as
|
|
443
443
|
supported by the Talis Platform. E.g. application/json
|
444
444
|
</p>
|
445
445
|
<table>
|
446
|
-
<tr><td valign="top">uri:</td><td>the URI of the resource to <a href="Store.html#
|
446
|
+
<tr><td valign="top">uri:</td><td>the URI of the resource to <a href="Store.html#M000169">describe</a>
|
447
447
|
|
448
448
|
</td></tr>
|
449
449
|
<tr><td valign="top">format:</td><td>the preferred response format
|
@@ -460,18 +460,18 @@ false to perform a Conditional GET
|
|
460
460
|
</table>
|
461
461
|
<p>
|
462
462
|
Note that this method is different from <a
|
463
|
-
href="Store.html#
|
463
|
+
href="Store.html#M000172">sparql_describe</a> in that it is intended to be
|
464
464
|
used to generate a description of a single URI, using an separated service
|
465
465
|
exposed by the Platform. This service is optimised for retrieval of
|
466
466
|
descriptions for single resources and supports HTTP caching and conditional
|
467
|
-
retrieval. The <a href="Store.html#
|
467
|
+
retrieval. The <a href="Store.html#M000172">sparql_describe</a> method
|
468
468
|
should be used to submit more complex DESCRIBE queries to the Platform,
|
469
469
|
e.g. to generate descriptions of resources matching a particular graph
|
470
470
|
pattern.
|
471
471
|
</p>
|
472
472
|
<p><a class="source-toggle" href="#"
|
473
|
-
onclick="toggleCode('
|
474
|
-
<div class="method-source-code" id="
|
473
|
+
onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
|
474
|
+
<div class="method-source-code" id="M000169-source">
|
475
475
|
<pre>
|
476
476
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 151</span>
|
477
477
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/rdf+xml"</span>, <span class="ruby-identifier">etags</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">if_match</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -487,18 +487,18 @@ pattern.
|
|
487
487
|
</div>
|
488
488
|
</div>
|
489
489
|
|
490
|
-
<div id="method-
|
491
|
-
<a name="
|
490
|
+
<div id="method-M000178" class="method-detail">
|
491
|
+
<a name="M000178"></a>
|
492
492
|
|
493
493
|
<div class="method-heading">
|
494
|
-
<a href="#
|
494
|
+
<a href="#M000178" class="method-signature">
|
495
495
|
<span class="method-name">facet</span><span class="method-args">(query, facets, params=nil)</span>
|
496
496
|
</a>
|
497
497
|
</div>
|
498
498
|
|
499
499
|
<div class="method-description">
|
500
500
|
<p>
|
501
|
-
Perform a facetted <a href="Store.html#
|
501
|
+
Perform a facetted <a href="Store.html#M000177">search</a> against the
|
502
502
|
Metabox indexes.
|
503
503
|
</p>
|
504
504
|
<table>
|
@@ -517,7 +517,7 @@ The <em>params</em> hash can contain the following values:
|
|
517
517
|
</p>
|
518
518
|
<ul>
|
519
519
|
<li><b>top</b>: the maximum number of results to return for each <a
|
520
|
-
href="Store.html#
|
520
|
+
href="Store.html#M000178">facet</a>
|
521
521
|
|
522
522
|
</li>
|
523
523
|
<li><b>output</b>: the preferred response format, can be html or xml (the
|
@@ -526,8 +526,8 @@ default)
|
|
526
526
|
</li>
|
527
527
|
</ul>
|
528
528
|
<p><a class="source-toggle" href="#"
|
529
|
-
onclick="toggleCode('
|
530
|
-
<div class="method-source-code" id="
|
529
|
+
onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
|
530
|
+
<div class="method-source-code" id="M000178-source">
|
531
531
|
<pre>
|
532
532
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 276</span>
|
533
533
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">facet</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">facets</span>, <span class="ruby-identifier">params</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -546,11 +546,11 @@ default)
|
|
546
546
|
</div>
|
547
547
|
</div>
|
548
548
|
|
549
|
-
<div id="method-
|
550
|
-
<a name="
|
549
|
+
<div id="method-M000193" class="method-detail">
|
550
|
+
<a name="M000193"></a>
|
551
551
|
|
552
552
|
<div class="method-heading">
|
553
|
-
<a href="#
|
553
|
+
<a href="#M000193" class="method-signature">
|
554
554
|
<span class="method-name">get_field_predicate_map</span><span class="method-args">(output=ACCEPT_JSON)</span>
|
555
555
|
</a>
|
556
556
|
</div>
|
@@ -560,7 +560,7 @@ default)
|
|
560
560
|
Read the field predicate map configuration for this store. The config can
|
561
561
|
be requested in any format supported by the platform, but the default will
|
562
562
|
return JSON. See <a
|
563
|
-
href="FieldPredicateMap.html#
|
563
|
+
href="FieldPredicateMap.html#M000098">FieldPredicateMap.read_from_store</a>
|
564
564
|
for a convenient way to quickly create a <a
|
565
565
|
href="FieldPredicateMap.html">FieldPredicateMap</a> object based on a
|
566
566
|
specific stores‘s configuration.
|
@@ -571,8 +571,8 @@ specific stores‘s configuration.
|
|
571
571
|
</td></tr>
|
572
572
|
</table>
|
573
573
|
<p><a class="source-toggle" href="#"
|
574
|
-
onclick="toggleCode('
|
575
|
-
<div class="method-source-code" id="
|
574
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
575
|
+
<div class="method-source-code" id="M000193-source">
|
576
576
|
<pre>
|
577
577
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 479</span>
|
578
578
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_field_predicate_map</span>(<span class="ruby-identifier">output</span>=<span class="ruby-constant">ACCEPT_JSON</span>)
|
@@ -585,11 +585,11 @@ specific stores‘s configuration.
|
|
585
585
|
</div>
|
586
586
|
</div>
|
587
587
|
|
588
|
-
<div id="method-
|
589
|
-
<a name="
|
588
|
+
<div id="method-M000186" class="method-detail">
|
589
|
+
<a name="M000186"></a>
|
590
590
|
|
591
591
|
<div class="method-heading">
|
592
|
-
<a href="#
|
592
|
+
<a href="#M000186" class="method-signature">
|
593
593
|
<span class="method-name">get_item</span><span class="method-args">(uri, etags=nil, if_match=false)</span>
|
594
594
|
</a>
|
595
595
|
</div>
|
@@ -612,8 +612,8 @@ the Metabox.
|
|
612
612
|
TODO: document etags, redirects
|
613
613
|
</p>
|
614
614
|
<p><a class="source-toggle" href="#"
|
615
|
-
onclick="toggleCode('
|
616
|
-
<div class="method-source-code" id="
|
615
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
616
|
+
<div class="method-source-code" id="M000186-source">
|
617
617
|
<pre>
|
618
618
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 386</span>
|
619
619
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_item</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">etags</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">if_match</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -629,11 +629,11 @@ TODO: document etags, redirects
|
|
629
629
|
</div>
|
630
630
|
</div>
|
631
631
|
|
632
|
-
<div id="method-
|
633
|
-
<a name="
|
632
|
+
<div id="method-M000187" class="method-detail">
|
633
|
+
<a name="M000187"></a>
|
634
634
|
|
635
635
|
<div class="method-heading">
|
636
|
-
<a href="#
|
636
|
+
<a href="#M000187" class="method-signature">
|
637
637
|
<span class="method-name">get_job</span><span class="method-args">(uri)</span>
|
638
638
|
</a>
|
639
639
|
</div>
|
@@ -641,7 +641,7 @@ TODO: document etags, redirects
|
|
641
641
|
<div class="method-description">
|
642
642
|
<p>
|
643
643
|
Retrieve metadata about a single job. Use <a
|
644
|
-
href="Job.html#
|
644
|
+
href="Job.html#M000205">Job.read_from_store</a> as a convenience function
|
645
645
|
which will return a fully-populated <a href="Job.html">Job</a> object
|
646
646
|
</p>
|
647
647
|
<table>
|
@@ -650,8 +650,8 @@ which will return a fully-populated <a href="Job.html">Job</a> object
|
|
650
650
|
</td></tr>
|
651
651
|
</table>
|
652
652
|
<p><a class="source-toggle" href="#"
|
653
|
-
onclick="toggleCode('
|
654
|
-
<div class="method-source-code" id="
|
653
|
+
onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
|
654
|
+
<div class="method-source-code" id="M000187-source">
|
655
655
|
<pre>
|
656
656
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 403</span>
|
657
657
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_job</span>(<span class="ruby-identifier">uri</span>)
|
@@ -664,11 +664,11 @@ which will return a fully-populated <a href="Job.html">Job</a> object
|
|
664
664
|
</div>
|
665
665
|
</div>
|
666
666
|
|
667
|
-
<div id="method-
|
668
|
-
<a name="
|
667
|
+
<div id="method-M000188" class="method-detail">
|
668
|
+
<a name="M000188"></a>
|
669
669
|
|
670
670
|
<div class="method-heading">
|
671
|
-
<a href="#
|
671
|
+
<a href="#M000188" class="method-signature">
|
672
672
|
<span class="method-name">get_jobs</span><span class="method-args">()</span>
|
673
673
|
</a>
|
674
674
|
</div>
|
@@ -679,8 +679,8 @@ Retrieve metadata about the Scheduled <a href="Jobs.html">Jobs</a>
|
|
679
679
|
Collection from the store
|
680
680
|
</p>
|
681
681
|
<p><a class="source-toggle" href="#"
|
682
|
-
onclick="toggleCode('
|
683
|
-
<div class="method-source-code" id="
|
682
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
683
|
+
<div class="method-source-code" id="M000188-source">
|
684
684
|
<pre>
|
685
685
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 410</span>
|
686
686
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_jobs</span>()
|
@@ -693,11 +693,11 @@ Collection from the store
|
|
693
693
|
</div>
|
694
694
|
</div>
|
695
695
|
|
696
|
-
<div id="method-
|
697
|
-
<a name="
|
696
|
+
<div id="method-M000195" class="method-detail">
|
697
|
+
<a name="M000195"></a>
|
698
698
|
|
699
699
|
<div class="method-heading">
|
700
|
-
<a href="#
|
700
|
+
<a href="#M000195" class="method-signature">
|
701
701
|
<span class="method-name">get_query_profile</span><span class="method-args">(output=ACCEPT_JSON)</span>
|
702
702
|
</a>
|
703
703
|
</div>
|
@@ -707,7 +707,7 @@ Collection from the store
|
|
707
707
|
Read the query profile configuration for this store. The config can be
|
708
708
|
requested in any format supported by the platform, but the default will
|
709
709
|
return JSON. See <a
|
710
|
-
href="QueryProfile.html#
|
710
|
+
href="QueryProfile.html#M000138">QueryProfile.read_from_store</a> for a
|
711
711
|
convenient way to quickly create a <a
|
712
712
|
href="QueryProfile.html">QueryProfile</a> object based on a specific
|
713
713
|
stores‘s configuration.
|
@@ -718,8 +718,8 @@ stores‘s configuration.
|
|
718
718
|
</td></tr>
|
719
719
|
</table>
|
720
720
|
<p><a class="source-toggle" href="#"
|
721
|
-
onclick="toggleCode('
|
722
|
-
<div class="method-source-code" id="
|
721
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
722
|
+
<div class="method-source-code" id="M000195-source">
|
723
723
|
<pre>
|
724
724
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 500</span>
|
725
725
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_query_profile</span>(<span class="ruby-identifier">output</span>=<span class="ruby-constant">ACCEPT_JSON</span>)
|
@@ -732,19 +732,19 @@ stores‘s configuration.
|
|
732
732
|
</div>
|
733
733
|
</div>
|
734
734
|
|
735
|
-
<div id="method-
|
736
|
-
<a name="
|
735
|
+
<div id="method-M000179" class="method-detail">
|
736
|
+
<a name="M000179"></a>
|
737
737
|
|
738
738
|
<div class="method-heading">
|
739
|
-
<a href="#
|
739
|
+
<a href="#M000179" class="method-signature">
|
740
740
|
<span class="method-name">get_search_params</span><span class="method-args">(u, query, params)</span>
|
741
741
|
</a>
|
742
742
|
</div>
|
743
743
|
|
744
744
|
<div class="method-description">
|
745
745
|
<p><a class="source-toggle" href="#"
|
746
|
-
onclick="toggleCode('
|
747
|
-
<div class="method-source-code" id="
|
746
|
+
onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
|
747
|
+
<div class="method-source-code" id="M000179-source">
|
748
748
|
<pre>
|
749
749
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 288</span>
|
750
750
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_search_params</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">query</span>, <span class="ruby-identifier">params</span>)
|
@@ -761,11 +761,11 @@ stores‘s configuration.
|
|
761
761
|
</div>
|
762
762
|
</div>
|
763
763
|
|
764
|
-
<div id="method-
|
765
|
-
<a name="
|
764
|
+
<div id="method-M000191" class="method-detail">
|
765
|
+
<a name="M000191"></a>
|
766
766
|
|
767
767
|
<div class="method-heading">
|
768
|
-
<a href="#
|
768
|
+
<a href="#M000191" class="method-signature">
|
769
769
|
<span class="method-name">get_snapshots</span><span class="method-args">()</span>
|
770
770
|
</a>
|
771
771
|
</div>
|
@@ -776,12 +776,12 @@ Retrieve the list of snapshots for this store
|
|
776
776
|
</p>
|
777
777
|
<p>
|
778
778
|
Currently the response will contain an HTML document. Use <a
|
779
|
-
href="Snapshot.html#
|
779
|
+
href="Snapshot.html#M000198">Snapshot.parse</a> to turn this into a <a
|
780
780
|
href="Snapshot.html">Snapshot</a> object
|
781
781
|
</p>
|
782
782
|
<p><a class="source-toggle" href="#"
|
783
|
-
onclick="toggleCode('
|
784
|
-
<div class="method-source-code" id="
|
783
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
784
|
+
<div class="method-source-code" id="M000191-source">
|
785
785
|
<pre>
|
786
786
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 439</span>
|
787
787
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_snapshots</span>()
|
@@ -794,11 +794,11 @@ href="Snapshot.html">Snapshot</a> object
|
|
794
794
|
</div>
|
795
795
|
</div>
|
796
796
|
|
797
|
-
<div id="method-
|
798
|
-
<a name="
|
797
|
+
<div id="method-M000190" class="method-detail">
|
798
|
+
<a name="M000190"></a>
|
799
799
|
|
800
800
|
<div class="method-heading">
|
801
|
-
<a href="#
|
801
|
+
<a href="#M000190" class="method-signature">
|
802
802
|
<span class="method-name">get_status</span><span class="method-args">()</span>
|
803
803
|
</a>
|
804
804
|
</div>
|
@@ -808,8 +808,8 @@ href="Snapshot.html">Snapshot</a> object
|
|
808
808
|
ADMIN
|
809
809
|
</p>
|
810
810
|
<p><a class="source-toggle" href="#"
|
811
|
-
onclick="toggleCode('
|
812
|
-
<div class="method-source-code" id="
|
811
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
812
|
+
<div class="method-source-code" id="M000190-source">
|
813
813
|
<pre>
|
814
814
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 429</span>
|
815
815
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_status</span>()
|
@@ -822,11 +822,11 @@ ADMIN
|
|
822
822
|
</div>
|
823
823
|
</div>
|
824
824
|
|
825
|
-
<div id="method-
|
826
|
-
<a name="
|
825
|
+
<div id="method-M000192" class="method-detail">
|
826
|
+
<a name="M000192"></a>
|
827
827
|
|
828
828
|
<div class="method-heading">
|
829
|
-
<a href="#
|
829
|
+
<a href="#M000192" class="method-signature">
|
830
830
|
<span class="method-name">list_records</span><span class="method-args">(from=nil, to=nil, resumption_token=nil)</span>
|
831
831
|
</a>
|
832
832
|
</div>
|
@@ -836,8 +836,8 @@ ADMIN
|
|
836
836
|
<a href="OAI.html">OAI</a>
|
837
837
|
</p>
|
838
838
|
<p><a class="source-toggle" href="#"
|
839
|
-
onclick="toggleCode('
|
840
|
-
<div class="method-source-code" id="
|
839
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
840
|
+
<div class="method-source-code" id="M000192-source">
|
841
841
|
<pre>
|
842
842
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 449</span>
|
843
843
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list_records</span>(<span class="ruby-identifier">from</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">to</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">resumption_token</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -865,11 +865,11 @@ ADMIN
|
|
865
865
|
</div>
|
866
866
|
</div>
|
867
867
|
|
868
|
-
<div id="method-
|
869
|
-
<a name="
|
868
|
+
<div id="method-M000194" class="method-detail">
|
869
|
+
<a name="M000194"></a>
|
870
870
|
|
871
871
|
<div class="method-heading">
|
872
|
-
<a href="#
|
872
|
+
<a href="#M000194" class="method-signature">
|
873
873
|
<span class="method-name">put_field_predicate_map</span><span class="method-args">(data)</span>
|
874
874
|
</a>
|
875
875
|
</div>
|
@@ -879,7 +879,7 @@ ADMIN
|
|
879
879
|
<a href="Update.html">Update</a>/replace the current Field Predicate map
|
880
880
|
configuration in the store. Assumes that the provided data is valid
|
881
881
|
RDF/XML. Use <a
|
882
|
-
href="FieldPredicateMap.html#
|
882
|
+
href="FieldPredicateMap.html#M000114">FieldPredicateMap.upload</a> as a
|
883
883
|
convenience function
|
884
884
|
</p>
|
885
885
|
<table>
|
@@ -888,8 +888,8 @@ convenience function
|
|
888
888
|
</td></tr>
|
889
889
|
</table>
|
890
890
|
<p><a class="source-toggle" href="#"
|
891
|
-
onclick="toggleCode('
|
892
|
-
<div class="method-source-code" id="
|
891
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
892
|
+
<div class="method-source-code" id="M000194-source">
|
893
893
|
<pre>
|
894
894
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 489</span>
|
895
895
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_field_predicate_map</span>(<span class="ruby-identifier">data</span>)
|
@@ -902,11 +902,11 @@ convenience function
|
|
902
902
|
</div>
|
903
903
|
</div>
|
904
904
|
|
905
|
-
<div id="method-
|
906
|
-
<a name="
|
905
|
+
<div id="method-M000196" class="method-detail">
|
906
|
+
<a name="M000196"></a>
|
907
907
|
|
908
908
|
<div class="method-heading">
|
909
|
-
<a href="#
|
909
|
+
<a href="#M000196" class="method-signature">
|
910
910
|
<span class="method-name">put_query_profile</span><span class="method-args">(data)</span>
|
911
911
|
</a>
|
912
912
|
</div>
|
@@ -915,7 +915,7 @@ convenience function
|
|
915
915
|
<p>
|
916
916
|
<a href="Update.html">Update</a>/replace the current Query Profile
|
917
917
|
configuration in the store. Assumes that the provided data is valid
|
918
|
-
RDF/XML. Use <a href="QueryProfile.html#
|
918
|
+
RDF/XML. Use <a href="QueryProfile.html#M000148">QueryProfile.upload</a> as
|
919
919
|
a convenience function
|
920
920
|
</p>
|
921
921
|
<table>
|
@@ -924,8 +924,8 @@ a convenience function
|
|
924
924
|
</td></tr>
|
925
925
|
</table>
|
926
926
|
<p><a class="source-toggle" href="#"
|
927
|
-
onclick="toggleCode('
|
928
|
-
<div class="method-source-code" id="
|
927
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
928
|
+
<div class="method-source-code" id="M000196-source">
|
929
929
|
<pre>
|
930
930
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 510</span>
|
931
931
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_query_profile</span>(<span class="ruby-identifier">data</span>)
|
@@ -938,19 +938,19 @@ a convenience function
|
|
938
938
|
</div>
|
939
939
|
</div>
|
940
940
|
|
941
|
-
<div id="method-
|
942
|
-
<a name="
|
941
|
+
<div id="method-M000183" class="method-detail">
|
942
|
+
<a name="M000183"></a>
|
943
943
|
|
944
944
|
<div class="method-heading">
|
945
|
-
<a href="#
|
945
|
+
<a href="#M000183" class="method-signature">
|
946
946
|
<span class="method-name">record_etags</span><span class="method-args">(u, etags, response)</span>
|
947
947
|
</a>
|
948
948
|
</div>
|
949
949
|
|
950
950
|
<div class="method-description">
|
951
951
|
<p><a class="source-toggle" href="#"
|
952
|
-
onclick="toggleCode('
|
953
|
-
<div class="method-source-code" id="
|
952
|
+
onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
|
953
|
+
<div class="method-source-code" id="M000183-source">
|
954
954
|
<pre>
|
955
955
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 328</span>
|
956
956
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">record_etags</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">etags</span>, <span class="ruby-identifier">response</span>)
|
@@ -963,11 +963,11 @@ a convenience function
|
|
963
963
|
</div>
|
964
964
|
</div>
|
965
965
|
|
966
|
-
<div id="method-
|
967
|
-
<a name="
|
966
|
+
<div id="method-M000177" class="method-detail">
|
967
|
+
<a name="M000177"></a>
|
968
968
|
|
969
969
|
<div class="method-heading">
|
970
|
-
<a href="#
|
970
|
+
<a href="#M000177" class="method-signature">
|
971
971
|
<span class="method-name">search</span><span class="method-args">(query, params=nil)</span>
|
972
972
|
</a>
|
973
973
|
</div>
|
@@ -1014,8 +1014,8 @@ transformation is being applied, in which case they will be provided as
|
|
1014
1014
|
parameters to the stylesheet.
|
1015
1015
|
</p>
|
1016
1016
|
<p><a class="source-toggle" href="#"
|
1017
|
-
onclick="toggleCode('
|
1018
|
-
<div class="method-source-code" id="
|
1017
|
+
onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
|
1018
|
+
<div class="method-source-code" id="M000177-source">
|
1019
1019
|
<pre>
|
1020
1020
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 259</span>
|
1021
1021
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">search</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">params</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1030,11 +1030,11 @@ parameters to the stylesheet.
|
|
1030
1030
|
</div>
|
1031
1031
|
</div>
|
1032
1032
|
|
1033
|
-
<div id="method-
|
1034
|
-
<a name="
|
1033
|
+
<div id="method-M000164" class="method-detail">
|
1034
|
+
<a name="M000164"></a>
|
1035
1035
|
|
1036
1036
|
<div class="method-heading">
|
1037
|
-
<a href="#
|
1037
|
+
<a href="#M000164" class="method-signature">
|
1038
1038
|
<span class="method-name">set_credentials</span><span class="method-args">(username, password)</span>
|
1039
1039
|
</a>
|
1040
1040
|
</div>
|
@@ -1052,8 +1052,8 @@ Set credentials that this store will use when carrying out authorization
|
|
1052
1052
|
</td></tr>
|
1053
1053
|
</table>
|
1054
1054
|
<p><a class="source-toggle" href="#"
|
1055
|
-
onclick="toggleCode('
|
1056
|
-
<div class="method-source-code" id="
|
1055
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
1056
|
+
<div class="method-source-code" id="M000164-source">
|
1057
1057
|
<pre>
|
1058
1058
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 58</span>
|
1059
1059
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_credentials</span>(<span class="ruby-identifier">username</span>, <span class="ruby-identifier">password</span>)
|
@@ -1064,11 +1064,11 @@ Set credentials that this store will use when carrying out authorization
|
|
1064
1064
|
</div>
|
1065
1065
|
</div>
|
1066
1066
|
|
1067
|
-
<div id="method-
|
1068
|
-
<a name="
|
1067
|
+
<div id="method-M000176" class="method-detail">
|
1068
|
+
<a name="M000176"></a>
|
1069
1069
|
|
1070
1070
|
<div class="method-heading">
|
1071
|
-
<a href="#
|
1071
|
+
<a href="#M000176" class="method-signature">
|
1072
1072
|
<span class="method-name">sparql</span><span class="method-args">(query, format=nil, multisparql=false)</span>
|
1073
1073
|
</a>
|
1074
1074
|
</div>
|
@@ -1083,8 +1083,8 @@ Perform a SPARQL query
|
|
1083
1083
|
multisparql:: use default sparql service or multisparql service
|
1084
1084
|
</pre>
|
1085
1085
|
<p><a class="source-toggle" href="#"
|
1086
|
-
onclick="toggleCode('
|
1087
|
-
<div class="method-source-code" id="
|
1086
|
+
onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
|
1087
|
+
<div class="method-source-code" id="M000176-source">
|
1088
1088
|
<pre>
|
1089
1089
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 240</span>
|
1090
1090
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">multisparql</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1095,11 +1095,11 @@ Perform a SPARQL query
|
|
1095
1095
|
</div>
|
1096
1096
|
</div>
|
1097
1097
|
|
1098
|
-
<div id="method-
|
1099
|
-
<a name="
|
1098
|
+
<div id="method-M000174" class="method-detail">
|
1099
|
+
<a name="M000174"></a>
|
1100
1100
|
|
1101
1101
|
<div class="method-heading">
|
1102
|
-
<a href="#
|
1102
|
+
<a href="#M000174" class="method-signature">
|
1103
1103
|
<span class="method-name">sparql_ask</span><span class="method-args">(query, format="application/sparql-results+xml", multisparql=false)</span>
|
1104
1104
|
</a>
|
1105
1105
|
</div>
|
@@ -1113,8 +1113,8 @@ Perform a SPARQL ASK query.
|
|
1113
1113
|
format:: the preferred response format
|
1114
1114
|
</pre>
|
1115
1115
|
<p><a class="source-toggle" href="#"
|
1116
|
-
onclick="toggleCode('
|
1117
|
-
<div class="method-source-code" id="
|
1116
|
+
onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
|
1117
|
+
<div class="method-source-code" id="M000174-source">
|
1118
1118
|
<pre>
|
1119
1119
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 223</span>
|
1120
1120
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql_ask</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/sparql-results+xml"</span>, <span class="ruby-identifier">multisparql</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1125,11 +1125,11 @@ Perform a SPARQL ASK query.
|
|
1125
1125
|
</div>
|
1126
1126
|
</div>
|
1127
1127
|
|
1128
|
-
<div id="method-
|
1129
|
-
<a name="
|
1128
|
+
<div id="method-M000171" class="method-detail">
|
1129
|
+
<a name="M000171"></a>
|
1130
1130
|
|
1131
1131
|
<div class="method-heading">
|
1132
|
-
<a href="#
|
1132
|
+
<a href="#M000171" class="method-signature">
|
1133
1133
|
<span class="method-name">sparql_client</span><span class="method-args">(multisparql=false)</span>
|
1134
1134
|
</a>
|
1135
1135
|
</div>
|
@@ -1143,8 +1143,8 @@ store
|
|
1143
1143
|
multisparql:: optional, set to true to retrieve client for multisparql endpoint
|
1144
1144
|
</pre>
|
1145
1145
|
<p><a class="source-toggle" href="#"
|
1146
|
-
onclick="toggleCode('
|
1147
|
-
<div class="method-source-code" id="
|
1146
|
+
onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
|
1147
|
+
<div class="method-source-code" id="M000171-source">
|
1148
1148
|
<pre>
|
1149
1149
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 189</span>
|
1150
1150
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql_client</span>(<span class="ruby-identifier">multisparql</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1165,11 +1165,11 @@ store
|
|
1165
1165
|
</div>
|
1166
1166
|
</div>
|
1167
1167
|
|
1168
|
-
<div id="method-
|
1169
|
-
<a name="
|
1168
|
+
<div id="method-M000173" class="method-detail">
|
1169
|
+
<a name="M000173"></a>
|
1170
1170
|
|
1171
1171
|
<div class="method-heading">
|
1172
|
-
<a href="#
|
1172
|
+
<a href="#M000173" class="method-signature">
|
1173
1173
|
<span class="method-name">sparql_construct</span><span class="method-args">(query, format="application/rdf+xml", multisparql=false)</span>
|
1174
1174
|
</a>
|
1175
1175
|
</div>
|
@@ -1183,8 +1183,8 @@ Perform a SPARQL CONSTRUCT query.
|
|
1183
1183
|
format:: the preferred response format
|
1184
1184
|
</pre>
|
1185
1185
|
<p><a class="source-toggle" href="#"
|
1186
|
-
onclick="toggleCode('
|
1187
|
-
<div class="method-source-code" id="
|
1186
|
+
onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
|
1187
|
+
<div class="method-source-code" id="M000173-source">
|
1188
1188
|
<pre>
|
1189
1189
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 215</span>
|
1190
1190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql_construct</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/rdf+xml"</span>, <span class="ruby-identifier">multisparql</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1195,11 +1195,11 @@ Perform a SPARQL CONSTRUCT query.
|
|
1195
1195
|
</div>
|
1196
1196
|
</div>
|
1197
1197
|
|
1198
|
-
<div id="method-
|
1199
|
-
<a name="
|
1198
|
+
<div id="method-M000172" class="method-detail">
|
1199
|
+
<a name="M000172"></a>
|
1200
1200
|
|
1201
1201
|
<div class="method-heading">
|
1202
|
-
<a href="#
|
1202
|
+
<a href="#M000172" class="method-signature">
|
1203
1203
|
<span class="method-name">sparql_describe</span><span class="method-args">(query, format="application/rdf+xml", multisparql=false)</span>
|
1204
1204
|
</a>
|
1205
1205
|
</div>
|
@@ -1213,8 +1213,8 @@ Perform a SPARQL DESCRIBE query.
|
|
1213
1213
|
format:: the preferred response format
|
1214
1214
|
</pre>
|
1215
1215
|
<p><a class="source-toggle" href="#"
|
1216
|
-
onclick="toggleCode('
|
1217
|
-
<div class="method-source-code" id="
|
1216
|
+
onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
|
1217
|
+
<div class="method-source-code" id="M000172-source">
|
1218
1218
|
<pre>
|
1219
1219
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 207</span>
|
1220
1220
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql_describe</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/rdf+xml"</span>, <span class="ruby-identifier">multisparql</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1225,11 +1225,11 @@ Perform a SPARQL DESCRIBE query.
|
|
1225
1225
|
</div>
|
1226
1226
|
</div>
|
1227
1227
|
|
1228
|
-
<div id="method-
|
1229
|
-
<a name="
|
1228
|
+
<div id="method-M000175" class="method-detail">
|
1229
|
+
<a name="M000175"></a>
|
1230
1230
|
|
1231
1231
|
<div class="method-heading">
|
1232
|
-
<a href="#
|
1232
|
+
<a href="#M000175" class="method-signature">
|
1233
1233
|
<span class="method-name">sparql_select</span><span class="method-args">(query, format="application/sparql-results+xml", multisparql=false)</span>
|
1234
1234
|
</a>
|
1235
1235
|
</div>
|
@@ -1243,8 +1243,8 @@ Perform a SPARQL SELECT query.
|
|
1243
1243
|
format:: the preferred response format
|
1244
1244
|
</pre>
|
1245
1245
|
<p><a class="source-toggle" href="#"
|
1246
|
-
onclick="toggleCode('
|
1247
|
-
<div class="method-source-code" id="
|
1246
|
+
onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
|
1247
|
+
<div class="method-source-code" id="M000175-source">
|
1248
1248
|
<pre>
|
1249
1249
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 231</span>
|
1250
1250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql_select</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/sparql-results+xml"</span>, <span class="ruby-identifier">multisparql</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -1255,11 +1255,11 @@ Perform a SPARQL SELECT query.
|
|
1255
1255
|
</div>
|
1256
1256
|
</div>
|
1257
1257
|
|
1258
|
-
<div id="method-
|
1259
|
-
<a name="
|
1258
|
+
<div id="method-M000166" class="method-detail">
|
1259
|
+
<a name="M000166"></a>
|
1260
1260
|
|
1261
1261
|
<div class="method-heading">
|
1262
|
-
<a href="#
|
1262
|
+
<a href="#M000166" class="method-signature">
|
1263
1263
|
<span class="method-name">store_data</span><span class="method-args">(data, graph_name=nil, format="application/rdf+xml")</span>
|
1264
1264
|
</a>
|
1265
1265
|
</div>
|
@@ -1278,8 +1278,8 @@ Perform a SPARQL SELECT query.
|
|
1278
1278
|
</td></tr>
|
1279
1279
|
</table>
|
1280
1280
|
<p><a class="source-toggle" href="#"
|
1281
|
-
onclick="toggleCode('
|
1282
|
-
<div class="method-source-code" id="
|
1281
|
+
onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
|
1282
|
+
<div class="method-source-code" id="M000166-source">
|
1283
1283
|
<pre>
|
1284
1284
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 85</span>
|
1285
1285
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_data</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">graph_name</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/rdf+xml"</span>)
|
@@ -1303,11 +1303,11 @@ Perform a SPARQL SELECT query.
|
|
1303
1303
|
</div>
|
1304
1304
|
</div>
|
1305
1305
|
|
1306
|
-
<div id="method-
|
1307
|
-
<a name="
|
1306
|
+
<div id="method-M000167" class="method-detail">
|
1307
|
+
<a name="M000167"></a>
|
1308
1308
|
|
1309
1309
|
<div class="method-heading">
|
1310
|
-
<a href="#
|
1310
|
+
<a href="#M000167" class="method-signature">
|
1311
1311
|
<span class="method-name">store_file</span><span class="method-args">(file, graph_name=nil, format="application/rdf+xml")</span>
|
1312
1312
|
</a>
|
1313
1313
|
</div>
|
@@ -1332,8 +1332,8 @@ is submitted to the platform
|
|
1332
1332
|
</td></tr>
|
1333
1333
|
</table>
|
1334
1334
|
<p><a class="source-toggle" href="#"
|
1335
|
-
onclick="toggleCode('
|
1336
|
-
<div class="method-source-code" id="
|
1335
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
1336
|
+
<div class="method-source-code" id="M000167-source">
|
1337
1337
|
<pre>
|
1338
1338
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 107</span>
|
1339
1339
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_file</span>(<span class="ruby-identifier">file</span>, <span class="ruby-identifier">graph_name</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/rdf+xml"</span>)
|
@@ -1346,11 +1346,11 @@ is submitted to the platform
|
|
1346
1346
|
</div>
|
1347
1347
|
</div>
|
1348
1348
|
|
1349
|
-
<div id="method-
|
1350
|
-
<a name="
|
1349
|
+
<div id="method-M000168" class="method-detail">
|
1350
|
+
<a name="M000168"></a>
|
1351
1351
|
|
1352
1352
|
<div class="method-heading">
|
1353
|
-
<a href="#
|
1353
|
+
<a href="#M000168" class="method-signature">
|
1354
1354
|
<span class="method-name">store_url</span><span class="method-args">(u, parameters=nil, graph_name=nil)</span>
|
1355
1355
|
</a>
|
1356
1356
|
</div>
|
@@ -1388,8 +1388,8 @@ URL
|
|
1388
1388
|
</td></tr>
|
1389
1389
|
</table>
|
1390
1390
|
<p><a class="source-toggle" href="#"
|
1391
|
-
onclick="toggleCode('
|
1392
|
-
<div class="method-source-code" id="
|
1391
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
1392
|
+
<div class="method-source-code" id="M000168-source">
|
1393
1393
|
<pre>
|
1394
1394
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 125</span>
|
1395
1395
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_url</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">parameters</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">graph_name</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1410,11 +1410,11 @@ URL
|
|
1410
1410
|
</div>
|
1411
1411
|
</div>
|
1412
1412
|
|
1413
|
-
<div id="method-
|
1414
|
-
<a name="
|
1413
|
+
<div id="method-M000170" class="method-detail">
|
1414
|
+
<a name="M000170"></a>
|
1415
1415
|
|
1416
1416
|
<div class="method-heading">
|
1417
|
-
<a href="#
|
1417
|
+
<a href="#M000170" class="method-signature">
|
1418
1418
|
<span class="method-name">submit_changeset</span><span class="method-args">(rdf, versioned=false, graph_name=nil)</span>
|
1419
1419
|
</a>
|
1420
1420
|
</div>
|
@@ -1440,8 +1440,8 @@ be submitted to private graphs.
|
|
1440
1440
|
</td></tr>
|
1441
1441
|
</table>
|
1442
1442
|
<p><a class="source-toggle" href="#"
|
1443
|
-
onclick="toggleCode('
|
1444
|
-
<div class="method-source-code" id="
|
1443
|
+
onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
|
1444
|
+
<div class="method-source-code" id="M000170-source">
|
1445
1445
|
<pre>
|
1446
1446
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 169</span>
|
1447
1447
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_changeset</span>(<span class="ruby-identifier">rdf</span>, <span class="ruby-identifier">versioned</span>=<span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">graph_name</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -1461,11 +1461,11 @@ be submitted to private graphs.
|
|
1461
1461
|
</div>
|
1462
1462
|
</div>
|
1463
1463
|
|
1464
|
-
<div id="method-
|
1465
|
-
<a name="
|
1464
|
+
<div id="method-M000189" class="method-detail">
|
1465
|
+
<a name="M000189"></a>
|
1466
1466
|
|
1467
1467
|
<div class="method-heading">
|
1468
|
-
<a href="#
|
1468
|
+
<a href="#M000189" class="method-signature">
|
1469
1469
|
<span class="method-name">submit_job</span><span class="method-args">(data)</span>
|
1470
1470
|
</a>
|
1471
1471
|
</div>
|
@@ -1481,8 +1481,8 @@ href="Jobs.html">Jobs</a> class
|
|
1481
1481
|
</td></tr>
|
1482
1482
|
</table>
|
1483
1483
|
<p><a class="source-toggle" href="#"
|
1484
|
-
onclick="toggleCode('
|
1485
|
-
<div class="method-source-code" id="
|
1484
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
1485
|
+
<div class="method-source-code" id="M000189-source">
|
1486
1486
|
<pre>
|
1487
1487
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 419</span>
|
1488
1488
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_job</span>(<span class="ruby-identifier">data</span>)
|
@@ -1495,11 +1495,11 @@ href="Jobs.html">Jobs</a> class
|
|
1495
1495
|
</div>
|
1496
1496
|
</div>
|
1497
1497
|
|
1498
|
-
<div id="method-
|
1499
|
-
<a name="
|
1498
|
+
<div id="method-M000184" class="method-detail">
|
1499
|
+
<a name="M000184"></a>
|
1500
1500
|
|
1501
1501
|
<div class="method-heading">
|
1502
|
-
<a href="#
|
1502
|
+
<a href="#M000184" class="method-signature">
|
1503
1503
|
<span class="method-name">upload_item</span><span class="method-args">(f, mimetype, uri=nil)</span>
|
1504
1504
|
</a>
|
1505
1505
|
</div>
|
@@ -1527,8 +1527,8 @@ stored item. If a URI is specified then a successful request will result in
|
|
1527
1527
|
a 200 OK response.
|
1528
1528
|
</p>
|
1529
1529
|
<p><a class="source-toggle" href="#"
|
1530
|
-
onclick="toggleCode('
|
1531
|
-
<div class="method-source-code" id="
|
1530
|
+
onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
|
1531
|
+
<div class="method-source-code" id="M000184-source">
|
1532
1532
|
<pre>
|
1533
1533
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 347</span>
|
1534
1534
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload_item</span>(<span class="ruby-identifier">f</span>, <span class="ruby-identifier">mimetype</span>, <span class="ruby-identifier">uri</span>=<span class="ruby-keyword kw">nil</span>)
|