pho 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +9 -0
- data/Rakefile +1 -1
- data/doc/index.html +1 -1
- data/doc/rdoc/classes/Pho/CommandLine.html +108 -108
- 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 +146 -112
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +60 -60
- data/doc/rdoc/classes/Pho/OAI.html +1 -0
- data/doc/rdoc/classes/Pho/OAI/Record.html +1 -1
- data/doc/rdoc/classes/Pho/OAI/Records.html +4 -4
- data/doc/rdoc/classes/Pho/QueryProfile.html +66 -66
- data/doc/rdoc/classes/Pho/RDF/Parser.html +24 -24
- 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/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/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +17 -1
- data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/oai_rb.html +1 -1
- data/doc/rdoc/files/lib/pho_rb.html +2 -1
- data/doc/rdoc/fr_class_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +152 -149
- data/lib/pho.rb +1 -0
- data/lib/pho/field_predicate_map.rb +18 -7
- data/lib/pho/oai.rb +25 -0
- data/tests/tc_command_line.rb +1 -1
- data/tests/tc_field_predicate_map.rb +36 -5
- data/tests/tc_oai.rb +37 -0
- 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="#M000178">augment</a>
|
113
|
+
<a href="#M000177">augment_uri</a>
|
114
|
+
<a href="#M000162">build_uri</a>
|
115
|
+
<a href="#M000179">configure_headers_for_conditional_get</a>
|
116
|
+
<a href="#M000182">delete_item</a>
|
117
|
+
<a href="#M000166">describe</a>
|
118
|
+
<a href="#M000175">facet</a>
|
119
|
+
<a href="#M000190">get_field_predicate_map</a>
|
120
|
+
<a href="#M000183">get_item</a>
|
121
|
+
<a href="#M000184">get_job</a>
|
122
|
+
<a href="#M000185">get_jobs</a>
|
123
|
+
<a href="#M000192">get_query_profile</a>
|
124
|
+
<a href="#M000176">get_search_params</a>
|
125
|
+
<a href="#M000188">get_snapshots</a>
|
126
|
+
<a href="#M000187">get_status</a>
|
127
|
+
<a href="#M000189">list_records</a>
|
128
|
+
<a href="#M000160">new</a>
|
129
|
+
<a href="#M000191">put_field_predicate_map</a>
|
130
|
+
<a href="#M000193">put_query_profile</a>
|
131
|
+
<a href="#M000180">record_etags</a>
|
132
|
+
<a href="#M000174">search</a>
|
133
|
+
<a href="#M000161">set_credentials</a>
|
134
|
+
<a href="#M000173">sparql</a>
|
135
|
+
<a href="#M000171">sparql_ask</a>
|
136
|
+
<a href="#M000168">sparql_client</a>
|
137
|
+
<a href="#M000170">sparql_construct</a>
|
138
|
+
<a href="#M000169">sparql_describe</a>
|
139
|
+
<a href="#M000172">sparql_select</a>
|
140
|
+
<a href="#M000163">store_data</a>
|
141
|
+
<a href="#M000164">store_file</a>
|
142
|
+
<a href="#M000165">store_url</a>
|
143
|
+
<a href="#M000167">submit_changeset</a>
|
144
|
+
<a href="#M000186">submit_job</a>
|
145
|
+
<a href="#M000181">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-M000160" class="method-detail">
|
208
|
+
<a name="M000160"></a>
|
209
209
|
|
210
210
|
<div class="method-heading">
|
211
|
-
<a href="#
|
211
|
+
<a href="#M000160" 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('M000160-source');return false;">[Source]</a></p>
|
236
|
+
<div class="method-source-code" id="M000160-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-M000178" class="method-detail">
|
255
|
+
<a name="M000178"></a>
|
256
256
|
|
257
257
|
<div class="method-heading">
|
258
|
-
<a href="#
|
258
|
+
<a href="#M000178" 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('M000178-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000178-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-M000177" class="method-detail">
|
289
|
+
<a name="M000177"></a>
|
290
290
|
|
291
291
|
<div class="method-heading">
|
292
|
-
<a href="#
|
292
|
+
<a href="#M000177" 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('M000177-source');return false;">[Source]</a></p>
|
309
|
+
<div class="method-source-code" id="M000177-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-M000162" class="method-detail">
|
323
|
+
<a name="M000162"></a>
|
324
324
|
|
325
325
|
<div class="method-heading">
|
326
|
-
<a href="#
|
326
|
+
<a href="#M000162" 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('M000162-source');return false;">[Source]</a></p>
|
342
|
+
<div class="method-source-code" id="M000162-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-M000179" class="method-detail">
|
361
|
+
<a name="M000179"></a>
|
362
362
|
|
363
363
|
<div class="method-heading">
|
364
|
-
<a href="#
|
364
|
+
<a href="#M000179" 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('M000179-source');return false;">[Source]</a></p>
|
375
|
+
<div class="method-source-code" id="M000179-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-M000182" class="method-detail">
|
394
|
+
<a name="M000182"></a>
|
395
395
|
|
396
396
|
<div class="method-heading">
|
397
|
-
<a href="#
|
397
|
+
<a href="#M000182" 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('M000182-source');return false;">[Source]</a></p>
|
416
|
+
<div class="method-source-code" id="M000182-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-M000166" class="method-detail">
|
431
|
+
<a name="M000166"></a>
|
432
432
|
|
433
433
|
<div class="method-heading">
|
434
|
-
<a href="#
|
434
|
+
<a href="#M000166" 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>
|
@@ -444,7 +444,7 @@ document, but other formats can be requested, as supported by the Talis
|
|
444
444
|
Platform. E.g. application/json
|
445
445
|
</p>
|
446
446
|
<table>
|
447
|
-
<tr><td valign="top">uri:</td><td>the URI of the resource to <a href="Store.html#
|
447
|
+
<tr><td valign="top">uri:</td><td>the URI of the resource to <a href="Store.html#M000166">describe</a>
|
448
448
|
|
449
449
|
</td></tr>
|
450
450
|
<tr><td valign="top">format:</td><td>the preferred response format
|
@@ -461,18 +461,18 @@ false to perform a Conditional GET
|
|
461
461
|
</table>
|
462
462
|
<p>
|
463
463
|
Note that this method is different from <a
|
464
|
-
href="Store.html#
|
464
|
+
href="Store.html#M000169">sparql_describe</a> in that it is intended to be
|
465
465
|
used to generate a description of a single URI, using an separated service
|
466
466
|
exposed by the Platform. This service is optimised for retrieval of
|
467
467
|
descriptions for single resources and supports HTTP caching and conditional
|
468
|
-
retrieval. The <a href="Store.html#
|
468
|
+
retrieval. The <a href="Store.html#M000169">sparql_describe</a> method
|
469
469
|
should be used to submit more complex DESCRIBE queries to the Platform,
|
470
470
|
e.g. to generate descriptions of resources matching a particular graph
|
471
471
|
pattern.
|
472
472
|
</p>
|
473
473
|
<p><a class="source-toggle" href="#"
|
474
|
-
onclick="toggleCode('
|
475
|
-
<div class="method-source-code" id="
|
474
|
+
onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
|
475
|
+
<div class="method-source-code" id="M000166-source">
|
476
476
|
<pre>
|
477
477
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 151</span>
|
478
478
|
<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>)
|
@@ -488,18 +488,18 @@ pattern.
|
|
488
488
|
</div>
|
489
489
|
</div>
|
490
490
|
|
491
|
-
<div id="method-
|
492
|
-
<a name="
|
491
|
+
<div id="method-M000175" class="method-detail">
|
492
|
+
<a name="M000175"></a>
|
493
493
|
|
494
494
|
<div class="method-heading">
|
495
|
-
<a href="#
|
495
|
+
<a href="#M000175" class="method-signature">
|
496
496
|
<span class="method-name">facet</span><span class="method-args">(query, facets, params=nil)</span>
|
497
497
|
</a>
|
498
498
|
</div>
|
499
499
|
|
500
500
|
<div class="method-description">
|
501
501
|
<p>
|
502
|
-
Perform a facetted <a href="Store.html#
|
502
|
+
Perform a facetted <a href="Store.html#M000174">search</a> against the
|
503
503
|
Metabox indexes.
|
504
504
|
</p>
|
505
505
|
<table>
|
@@ -518,7 +518,7 @@ The <em>params</em> hash can contain the following values:
|
|
518
518
|
</p>
|
519
519
|
<ul>
|
520
520
|
<li><b>top</b>: the maximum number of results to return for each <a
|
521
|
-
href="Store.html#
|
521
|
+
href="Store.html#M000175">facet</a>
|
522
522
|
|
523
523
|
</li>
|
524
524
|
<li><b>output</b>: the preferred response format, can be html or xml (the
|
@@ -527,8 +527,8 @@ default)
|
|
527
527
|
</li>
|
528
528
|
</ul>
|
529
529
|
<p><a class="source-toggle" href="#"
|
530
|
-
onclick="toggleCode('
|
531
|
-
<div class="method-source-code" id="
|
530
|
+
onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
|
531
|
+
<div class="method-source-code" id="M000175-source">
|
532
532
|
<pre>
|
533
533
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 276</span>
|
534
534
|
<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>)
|
@@ -547,11 +547,11 @@ default)
|
|
547
547
|
</div>
|
548
548
|
</div>
|
549
549
|
|
550
|
-
<div id="method-
|
551
|
-
<a name="
|
550
|
+
<div id="method-M000190" class="method-detail">
|
551
|
+
<a name="M000190"></a>
|
552
552
|
|
553
553
|
<div class="method-heading">
|
554
|
-
<a href="#
|
554
|
+
<a href="#M000190" class="method-signature">
|
555
555
|
<span class="method-name">get_field_predicate_map</span><span class="method-args">(output=ACCEPT_JSON)</span>
|
556
556
|
</a>
|
557
557
|
</div>
|
@@ -561,7 +561,7 @@ default)
|
|
561
561
|
Read the field predicate map configuration for this store. The config can
|
562
562
|
be requested in any format supported by the platform, but the default will
|
563
563
|
return JSON. See <a
|
564
|
-
href="FieldPredicateMap.html#
|
564
|
+
href="FieldPredicateMap.html#M000096">FieldPredicateMap.read_from_store</a>
|
565
565
|
for a convenient way to quickly create a <a
|
566
566
|
href="FieldPredicateMap.html">FieldPredicateMap</a> object based on a
|
567
567
|
specific stores‘s configuration.
|
@@ -572,8 +572,8 @@ specific stores‘s configuration.
|
|
572
572
|
</td></tr>
|
573
573
|
</table>
|
574
574
|
<p><a class="source-toggle" href="#"
|
575
|
-
onclick="toggleCode('
|
576
|
-
<div class="method-source-code" id="
|
575
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
576
|
+
<div class="method-source-code" id="M000190-source">
|
577
577
|
<pre>
|
578
578
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 474</span>
|
579
579
|
<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>)
|
@@ -586,11 +586,11 @@ specific stores‘s configuration.
|
|
586
586
|
</div>
|
587
587
|
</div>
|
588
588
|
|
589
|
-
<div id="method-
|
590
|
-
<a name="
|
589
|
+
<div id="method-M000183" class="method-detail">
|
590
|
+
<a name="M000183"></a>
|
591
591
|
|
592
592
|
<div class="method-heading">
|
593
|
-
<a href="#
|
593
|
+
<a href="#M000183" class="method-signature">
|
594
594
|
<span class="method-name">get_item</span><span class="method-args">(uri, etags=nil, if_match=false)</span>
|
595
595
|
</a>
|
596
596
|
</div>
|
@@ -613,8 +613,8 @@ item, as available from the Metabox.
|
|
613
613
|
TODO: document etags, redirects
|
614
614
|
</p>
|
615
615
|
<p><a class="source-toggle" href="#"
|
616
|
-
onclick="toggleCode('
|
617
|
-
<div class="method-source-code" id="
|
616
|
+
onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
|
617
|
+
<div class="method-source-code" id="M000183-source">
|
618
618
|
<pre>
|
619
619
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 386</span>
|
620
620
|
<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>)
|
@@ -630,11 +630,11 @@ TODO: document etags, redirects
|
|
630
630
|
</div>
|
631
631
|
</div>
|
632
632
|
|
633
|
-
<div id="method-
|
634
|
-
<a name="
|
633
|
+
<div id="method-M000184" class="method-detail">
|
634
|
+
<a name="M000184"></a>
|
635
635
|
|
636
636
|
<div class="method-heading">
|
637
|
-
<a href="#
|
637
|
+
<a href="#M000184" class="method-signature">
|
638
638
|
<span class="method-name">get_job</span><span class="method-args">(uri)</span>
|
639
639
|
</a>
|
640
640
|
</div>
|
@@ -642,7 +642,7 @@ TODO: document etags, redirects
|
|
642
642
|
<div class="method-description">
|
643
643
|
<p>
|
644
644
|
Retrieve metadata about a single job. Use <a
|
645
|
-
href="Job.html#
|
645
|
+
href="Job.html#M000202">Job.read_from_store</a> as a convenience function
|
646
646
|
which will return a fully-populated <a href="Job.html">Job</a> object
|
647
647
|
</p>
|
648
648
|
<table>
|
@@ -651,8 +651,8 @@ which will return a fully-populated <a href="Job.html">Job</a> object
|
|
651
651
|
</td></tr>
|
652
652
|
</table>
|
653
653
|
<p><a class="source-toggle" href="#"
|
654
|
-
onclick="toggleCode('
|
655
|
-
<div class="method-source-code" id="
|
654
|
+
onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
|
655
|
+
<div class="method-source-code" id="M000184-source">
|
656
656
|
<pre>
|
657
657
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 403</span>
|
658
658
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_job</span>(<span class="ruby-identifier">uri</span>)
|
@@ -665,11 +665,11 @@ which will return a fully-populated <a href="Job.html">Job</a> object
|
|
665
665
|
</div>
|
666
666
|
</div>
|
667
667
|
|
668
|
-
<div id="method-
|
669
|
-
<a name="
|
668
|
+
<div id="method-M000185" class="method-detail">
|
669
|
+
<a name="M000185"></a>
|
670
670
|
|
671
671
|
<div class="method-heading">
|
672
|
-
<a href="#
|
672
|
+
<a href="#M000185" class="method-signature">
|
673
673
|
<span class="method-name">get_jobs</span><span class="method-args">()</span>
|
674
674
|
</a>
|
675
675
|
</div>
|
@@ -680,8 +680,8 @@ Retrieve metadata about the Scheduled <a href="Jobs.html">Jobs</a>
|
|
680
680
|
Collection from the store
|
681
681
|
</p>
|
682
682
|
<p><a class="source-toggle" href="#"
|
683
|
-
onclick="toggleCode('
|
684
|
-
<div class="method-source-code" id="
|
683
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
684
|
+
<div class="method-source-code" id="M000185-source">
|
685
685
|
<pre>
|
686
686
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 410</span>
|
687
687
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_jobs</span>()
|
@@ -694,11 +694,11 @@ Collection from the store
|
|
694
694
|
</div>
|
695
695
|
</div>
|
696
696
|
|
697
|
-
<div id="method-
|
698
|
-
<a name="
|
697
|
+
<div id="method-M000192" class="method-detail">
|
698
|
+
<a name="M000192"></a>
|
699
699
|
|
700
700
|
<div class="method-heading">
|
701
|
-
<a href="#
|
701
|
+
<a href="#M000192" class="method-signature">
|
702
702
|
<span class="method-name">get_query_profile</span><span class="method-args">(output=ACCEPT_JSON)</span>
|
703
703
|
</a>
|
704
704
|
</div>
|
@@ -708,7 +708,7 @@ Collection from the store
|
|
708
708
|
Read the query profile configuration for this store. The config can be
|
709
709
|
requested in any format supported by the platform, but the default will
|
710
710
|
return JSON. See <a
|
711
|
-
href="QueryProfile.html#
|
711
|
+
href="QueryProfile.html#M000135">QueryProfile.read_from_store</a> for a
|
712
712
|
convenient way to quickly create a <a
|
713
713
|
href="QueryProfile.html">QueryProfile</a> object based on a specific
|
714
714
|
stores‘s configuration.
|
@@ -719,8 +719,8 @@ stores‘s configuration.
|
|
719
719
|
</td></tr>
|
720
720
|
</table>
|
721
721
|
<p><a class="source-toggle" href="#"
|
722
|
-
onclick="toggleCode('
|
723
|
-
<div class="method-source-code" id="
|
722
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
723
|
+
<div class="method-source-code" id="M000192-source">
|
724
724
|
<pre>
|
725
725
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 495</span>
|
726
726
|
<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>)
|
@@ -733,19 +733,19 @@ stores‘s configuration.
|
|
733
733
|
</div>
|
734
734
|
</div>
|
735
735
|
|
736
|
-
<div id="method-
|
737
|
-
<a name="
|
736
|
+
<div id="method-M000176" class="method-detail">
|
737
|
+
<a name="M000176"></a>
|
738
738
|
|
739
739
|
<div class="method-heading">
|
740
|
-
<a href="#
|
740
|
+
<a href="#M000176" class="method-signature">
|
741
741
|
<span class="method-name">get_search_params</span><span class="method-args">(u, query, params)</span>
|
742
742
|
</a>
|
743
743
|
</div>
|
744
744
|
|
745
745
|
<div class="method-description">
|
746
746
|
<p><a class="source-toggle" href="#"
|
747
|
-
onclick="toggleCode('
|
748
|
-
<div class="method-source-code" id="
|
747
|
+
onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
|
748
|
+
<div class="method-source-code" id="M000176-source">
|
749
749
|
<pre>
|
750
750
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 288</span>
|
751
751
|
<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>)
|
@@ -762,11 +762,11 @@ stores‘s configuration.
|
|
762
762
|
</div>
|
763
763
|
</div>
|
764
764
|
|
765
|
-
<div id="method-
|
766
|
-
<a name="
|
765
|
+
<div id="method-M000188" class="method-detail">
|
766
|
+
<a name="M000188"></a>
|
767
767
|
|
768
768
|
<div class="method-heading">
|
769
|
-
<a href="#
|
769
|
+
<a href="#M000188" class="method-signature">
|
770
770
|
<span class="method-name">get_snapshots</span><span class="method-args">()</span>
|
771
771
|
</a>
|
772
772
|
</div>
|
@@ -777,12 +777,12 @@ Retrieve the list of snapshots for this store
|
|
777
777
|
</p>
|
778
778
|
<p>
|
779
779
|
Currently the response will contain an HTML document. Use <a
|
780
|
-
href="Snapshot.html#
|
780
|
+
href="Snapshot.html#M000195">Snapshot.parse</a> to turn this into a <a
|
781
781
|
href="Snapshot.html">Snapshot</a> object
|
782
782
|
</p>
|
783
783
|
<p><a class="source-toggle" href="#"
|
784
|
-
onclick="toggleCode('
|
785
|
-
<div class="method-source-code" id="
|
784
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
785
|
+
<div class="method-source-code" id="M000188-source">
|
786
786
|
<pre>
|
787
787
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 439</span>
|
788
788
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_snapshots</span>()
|
@@ -795,11 +795,11 @@ href="Snapshot.html">Snapshot</a> object
|
|
795
795
|
</div>
|
796
796
|
</div>
|
797
797
|
|
798
|
-
<div id="method-
|
799
|
-
<a name="
|
798
|
+
<div id="method-M000187" class="method-detail">
|
799
|
+
<a name="M000187"></a>
|
800
800
|
|
801
801
|
<div class="method-heading">
|
802
|
-
<a href="#
|
802
|
+
<a href="#M000187" class="method-signature">
|
803
803
|
<span class="method-name">get_status</span><span class="method-args">()</span>
|
804
804
|
</a>
|
805
805
|
</div>
|
@@ -809,8 +809,8 @@ href="Snapshot.html">Snapshot</a> object
|
|
809
809
|
ADMIN
|
810
810
|
</p>
|
811
811
|
<p><a class="source-toggle" href="#"
|
812
|
-
onclick="toggleCode('
|
813
|
-
<div class="method-source-code" id="
|
812
|
+
onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
|
813
|
+
<div class="method-source-code" id="M000187-source">
|
814
814
|
<pre>
|
815
815
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 429</span>
|
816
816
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_status</span>()
|
@@ -823,11 +823,11 @@ ADMIN
|
|
823
823
|
</div>
|
824
824
|
</div>
|
825
825
|
|
826
|
-
<div id="method-
|
827
|
-
<a name="
|
826
|
+
<div id="method-M000189" class="method-detail">
|
827
|
+
<a name="M000189"></a>
|
828
828
|
|
829
829
|
<div class="method-heading">
|
830
|
-
<a href="#
|
830
|
+
<a href="#M000189" class="method-signature">
|
831
831
|
<span class="method-name">list_records</span><span class="method-args">(from=nil, to=nil, resumption_token=nil)</span>
|
832
832
|
</a>
|
833
833
|
</div>
|
@@ -837,8 +837,8 @@ ADMIN
|
|
837
837
|
<a href="OAI.html">OAI</a>
|
838
838
|
</p>
|
839
839
|
<p><a class="source-toggle" href="#"
|
840
|
-
onclick="toggleCode('
|
841
|
-
<div class="method-source-code" id="
|
840
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
841
|
+
<div class="method-source-code" id="M000189-source">
|
842
842
|
<pre>
|
843
843
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 449</span>
|
844
844
|
<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>)
|
@@ -861,11 +861,11 @@ ADMIN
|
|
861
861
|
</div>
|
862
862
|
</div>
|
863
863
|
|
864
|
-
<div id="method-
|
865
|
-
<a name="
|
864
|
+
<div id="method-M000191" class="method-detail">
|
865
|
+
<a name="M000191"></a>
|
866
866
|
|
867
867
|
<div class="method-heading">
|
868
|
-
<a href="#
|
868
|
+
<a href="#M000191" class="method-signature">
|
869
869
|
<span class="method-name">put_field_predicate_map</span><span class="method-args">(data)</span>
|
870
870
|
</a>
|
871
871
|
</div>
|
@@ -875,7 +875,7 @@ ADMIN
|
|
875
875
|
<a href="Update.html">Update</a>/replace the current Field Predicate map
|
876
876
|
configuration in the store. Assumes that the provided data is valid <a
|
877
877
|
href="RDF.html">RDF</a>/XML. Use <a
|
878
|
-
href="FieldPredicateMap.html#
|
878
|
+
href="FieldPredicateMap.html#M000112">FieldPredicateMap.upload</a> as a
|
879
879
|
convenience function
|
880
880
|
</p>
|
881
881
|
<table>
|
@@ -884,8 +884,8 @@ convenience function
|
|
884
884
|
</td></tr>
|
885
885
|
</table>
|
886
886
|
<p><a class="source-toggle" href="#"
|
887
|
-
onclick="toggleCode('
|
888
|
-
<div class="method-source-code" id="
|
887
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
888
|
+
<div class="method-source-code" id="M000191-source">
|
889
889
|
<pre>
|
890
890
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 484</span>
|
891
891
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_field_predicate_map</span>(<span class="ruby-identifier">data</span>)
|
@@ -898,11 +898,11 @@ convenience function
|
|
898
898
|
</div>
|
899
899
|
</div>
|
900
900
|
|
901
|
-
<div id="method-
|
902
|
-
<a name="
|
901
|
+
<div id="method-M000193" class="method-detail">
|
902
|
+
<a name="M000193"></a>
|
903
903
|
|
904
904
|
<div class="method-heading">
|
905
|
-
<a href="#
|
905
|
+
<a href="#M000193" class="method-signature">
|
906
906
|
<span class="method-name">put_query_profile</span><span class="method-args">(data)</span>
|
907
907
|
</a>
|
908
908
|
</div>
|
@@ -912,7 +912,7 @@ convenience function
|
|
912
912
|
<a href="Update.html">Update</a>/replace the current Query Profile
|
913
913
|
configuration in the store. Assumes that the provided data is valid <a
|
914
914
|
href="RDF.html">RDF</a>/XML. Use <a
|
915
|
-
href="QueryProfile.html#
|
915
|
+
href="QueryProfile.html#M000145">QueryProfile.upload</a> as a convenience
|
916
916
|
function
|
917
917
|
</p>
|
918
918
|
<table>
|
@@ -921,8 +921,8 @@ function
|
|
921
921
|
</td></tr>
|
922
922
|
</table>
|
923
923
|
<p><a class="source-toggle" href="#"
|
924
|
-
onclick="toggleCode('
|
925
|
-
<div class="method-source-code" id="
|
924
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
925
|
+
<div class="method-source-code" id="M000193-source">
|
926
926
|
<pre>
|
927
927
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 505</span>
|
928
928
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_query_profile</span>(<span class="ruby-identifier">data</span>)
|
@@ -935,19 +935,19 @@ function
|
|
935
935
|
</div>
|
936
936
|
</div>
|
937
937
|
|
938
|
-
<div id="method-
|
939
|
-
<a name="
|
938
|
+
<div id="method-M000180" class="method-detail">
|
939
|
+
<a name="M000180"></a>
|
940
940
|
|
941
941
|
<div class="method-heading">
|
942
|
-
<a href="#
|
942
|
+
<a href="#M000180" class="method-signature">
|
943
943
|
<span class="method-name">record_etags</span><span class="method-args">(u, etags, response)</span>
|
944
944
|
</a>
|
945
945
|
</div>
|
946
946
|
|
947
947
|
<div class="method-description">
|
948
948
|
<p><a class="source-toggle" href="#"
|
949
|
-
onclick="toggleCode('
|
950
|
-
<div class="method-source-code" id="
|
949
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
950
|
+
<div class="method-source-code" id="M000180-source">
|
951
951
|
<pre>
|
952
952
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 328</span>
|
953
953
|
<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>)
|
@@ -960,11 +960,11 @@ function
|
|
960
960
|
</div>
|
961
961
|
</div>
|
962
962
|
|
963
|
-
<div id="method-
|
964
|
-
<a name="
|
963
|
+
<div id="method-M000174" class="method-detail">
|
964
|
+
<a name="M000174"></a>
|
965
965
|
|
966
966
|
<div class="method-heading">
|
967
|
-
<a href="#
|
967
|
+
<a href="#M000174" class="method-signature">
|
968
968
|
<span class="method-name">search</span><span class="method-args">(query, params=nil)</span>
|
969
969
|
</a>
|
970
970
|
</div>
|
@@ -1011,8 +1011,8 @@ transformation is being applied, in which case they will be provided as
|
|
1011
1011
|
parameters to the stylesheet.
|
1012
1012
|
</p>
|
1013
1013
|
<p><a class="source-toggle" href="#"
|
1014
|
-
onclick="toggleCode('
|
1015
|
-
<div class="method-source-code" id="
|
1014
|
+
onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
|
1015
|
+
<div class="method-source-code" id="M000174-source">
|
1016
1016
|
<pre>
|
1017
1017
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 259</span>
|
1018
1018
|
<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>)
|
@@ -1027,11 +1027,11 @@ parameters to the stylesheet.
|
|
1027
1027
|
</div>
|
1028
1028
|
</div>
|
1029
1029
|
|
1030
|
-
<div id="method-
|
1031
|
-
<a name="
|
1030
|
+
<div id="method-M000161" class="method-detail">
|
1031
|
+
<a name="M000161"></a>
|
1032
1032
|
|
1033
1033
|
<div class="method-heading">
|
1034
|
-
<a href="#
|
1034
|
+
<a href="#M000161" class="method-signature">
|
1035
1035
|
<span class="method-name">set_credentials</span><span class="method-args">(username, password)</span>
|
1036
1036
|
</a>
|
1037
1037
|
</div>
|
@@ -1049,8 +1049,8 @@ Set credentials that this store will use when carrying out authorization
|
|
1049
1049
|
</td></tr>
|
1050
1050
|
</table>
|
1051
1051
|
<p><a class="source-toggle" href="#"
|
1052
|
-
onclick="toggleCode('
|
1053
|
-
<div class="method-source-code" id="
|
1052
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
1053
|
+
<div class="method-source-code" id="M000161-source">
|
1054
1054
|
<pre>
|
1055
1055
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 58</span>
|
1056
1056
|
<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>)
|
@@ -1061,11 +1061,11 @@ Set credentials that this store will use when carrying out authorization
|
|
1061
1061
|
</div>
|
1062
1062
|
</div>
|
1063
1063
|
|
1064
|
-
<div id="method-
|
1065
|
-
<a name="
|
1064
|
+
<div id="method-M000173" class="method-detail">
|
1065
|
+
<a name="M000173"></a>
|
1066
1066
|
|
1067
1067
|
<div class="method-heading">
|
1068
|
-
<a href="#
|
1068
|
+
<a href="#M000173" class="method-signature">
|
1069
1069
|
<span class="method-name">sparql</span><span class="method-args">(query, format=nil, multisparql=false)</span>
|
1070
1070
|
</a>
|
1071
1071
|
</div>
|
@@ -1080,8 +1080,8 @@ Perform a SPARQL query
|
|
1080
1080
|
multisparql:: use default sparql service or multisparql service
|
1081
1081
|
</pre>
|
1082
1082
|
<p><a class="source-toggle" href="#"
|
1083
|
-
onclick="toggleCode('
|
1084
|
-
<div class="method-source-code" id="
|
1083
|
+
onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
|
1084
|
+
<div class="method-source-code" id="M000173-source">
|
1085
1085
|
<pre>
|
1086
1086
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 240</span>
|
1087
1087
|
<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>)
|
@@ -1092,11 +1092,11 @@ Perform a SPARQL query
|
|
1092
1092
|
</div>
|
1093
1093
|
</div>
|
1094
1094
|
|
1095
|
-
<div id="method-
|
1096
|
-
<a name="
|
1095
|
+
<div id="method-M000171" class="method-detail">
|
1096
|
+
<a name="M000171"></a>
|
1097
1097
|
|
1098
1098
|
<div class="method-heading">
|
1099
|
-
<a href="#
|
1099
|
+
<a href="#M000171" class="method-signature">
|
1100
1100
|
<span class="method-name">sparql_ask</span><span class="method-args">(query, format="application/sparql-results+xml", multisparql=false)</span>
|
1101
1101
|
</a>
|
1102
1102
|
</div>
|
@@ -1110,8 +1110,8 @@ Perform a SPARQL ASK query.
|
|
1110
1110
|
format:: the preferred response format
|
1111
1111
|
</pre>
|
1112
1112
|
<p><a class="source-toggle" href="#"
|
1113
|
-
onclick="toggleCode('
|
1114
|
-
<div class="method-source-code" id="
|
1113
|
+
onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
|
1114
|
+
<div class="method-source-code" id="M000171-source">
|
1115
1115
|
<pre>
|
1116
1116
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 223</span>
|
1117
1117
|
<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>)
|
@@ -1122,11 +1122,11 @@ Perform a SPARQL ASK query.
|
|
1122
1122
|
</div>
|
1123
1123
|
</div>
|
1124
1124
|
|
1125
|
-
<div id="method-
|
1126
|
-
<a name="
|
1125
|
+
<div id="method-M000168" class="method-detail">
|
1126
|
+
<a name="M000168"></a>
|
1127
1127
|
|
1128
1128
|
<div class="method-heading">
|
1129
|
-
<a href="#
|
1129
|
+
<a href="#M000168" class="method-signature">
|
1130
1130
|
<span class="method-name">sparql_client</span><span class="method-args">(multisparql=false)</span>
|
1131
1131
|
</a>
|
1132
1132
|
</div>
|
@@ -1140,8 +1140,8 @@ store
|
|
1140
1140
|
multisparql:: optional, set to true to retrieve client for multisparql endpoint
|
1141
1141
|
</pre>
|
1142
1142
|
<p><a class="source-toggle" href="#"
|
1143
|
-
onclick="toggleCode('
|
1144
|
-
<div class="method-source-code" id="
|
1143
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
1144
|
+
<div class="method-source-code" id="M000168-source">
|
1145
1145
|
<pre>
|
1146
1146
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 189</span>
|
1147
1147
|
<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>)
|
@@ -1162,11 +1162,11 @@ store
|
|
1162
1162
|
</div>
|
1163
1163
|
</div>
|
1164
1164
|
|
1165
|
-
<div id="method-
|
1166
|
-
<a name="
|
1165
|
+
<div id="method-M000170" class="method-detail">
|
1166
|
+
<a name="M000170"></a>
|
1167
1167
|
|
1168
1168
|
<div class="method-heading">
|
1169
|
-
<a href="#
|
1169
|
+
<a href="#M000170" class="method-signature">
|
1170
1170
|
<span class="method-name">sparql_construct</span><span class="method-args">(query, format="application/rdf+xml", multisparql=false)</span>
|
1171
1171
|
</a>
|
1172
1172
|
</div>
|
@@ -1180,8 +1180,8 @@ Perform a SPARQL CONSTRUCT query.
|
|
1180
1180
|
format:: the preferred response format
|
1181
1181
|
</pre>
|
1182
1182
|
<p><a class="source-toggle" href="#"
|
1183
|
-
onclick="toggleCode('
|
1184
|
-
<div class="method-source-code" id="
|
1183
|
+
onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
|
1184
|
+
<div class="method-source-code" id="M000170-source">
|
1185
1185
|
<pre>
|
1186
1186
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 215</span>
|
1187
1187
|
<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>)
|
@@ -1192,11 +1192,11 @@ Perform a SPARQL CONSTRUCT query.
|
|
1192
1192
|
</div>
|
1193
1193
|
</div>
|
1194
1194
|
|
1195
|
-
<div id="method-
|
1196
|
-
<a name="
|
1195
|
+
<div id="method-M000169" class="method-detail">
|
1196
|
+
<a name="M000169"></a>
|
1197
1197
|
|
1198
1198
|
<div class="method-heading">
|
1199
|
-
<a href="#
|
1199
|
+
<a href="#M000169" class="method-signature">
|
1200
1200
|
<span class="method-name">sparql_describe</span><span class="method-args">(query, format="application/rdf+xml", multisparql=false)</span>
|
1201
1201
|
</a>
|
1202
1202
|
</div>
|
@@ -1210,8 +1210,8 @@ Perform a SPARQL DESCRIBE query.
|
|
1210
1210
|
format:: the preferred response format
|
1211
1211
|
</pre>
|
1212
1212
|
<p><a class="source-toggle" href="#"
|
1213
|
-
onclick="toggleCode('
|
1214
|
-
<div class="method-source-code" id="
|
1213
|
+
onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
|
1214
|
+
<div class="method-source-code" id="M000169-source">
|
1215
1215
|
<pre>
|
1216
1216
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 207</span>
|
1217
1217
|
<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>)
|
@@ -1222,11 +1222,11 @@ Perform a SPARQL DESCRIBE query.
|
|
1222
1222
|
</div>
|
1223
1223
|
</div>
|
1224
1224
|
|
1225
|
-
<div id="method-
|
1226
|
-
<a name="
|
1225
|
+
<div id="method-M000172" class="method-detail">
|
1226
|
+
<a name="M000172"></a>
|
1227
1227
|
|
1228
1228
|
<div class="method-heading">
|
1229
|
-
<a href="#
|
1229
|
+
<a href="#M000172" class="method-signature">
|
1230
1230
|
<span class="method-name">sparql_select</span><span class="method-args">(query, format="application/sparql-results+xml", multisparql=false)</span>
|
1231
1231
|
</a>
|
1232
1232
|
</div>
|
@@ -1240,8 +1240,8 @@ Perform a SPARQL SELECT query.
|
|
1240
1240
|
format:: the preferred response format
|
1241
1241
|
</pre>
|
1242
1242
|
<p><a class="source-toggle" href="#"
|
1243
|
-
onclick="toggleCode('
|
1244
|
-
<div class="method-source-code" id="
|
1243
|
+
onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
|
1244
|
+
<div class="method-source-code" id="M000172-source">
|
1245
1245
|
<pre>
|
1246
1246
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 231</span>
|
1247
1247
|
<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>)
|
@@ -1252,11 +1252,11 @@ Perform a SPARQL SELECT query.
|
|
1252
1252
|
</div>
|
1253
1253
|
</div>
|
1254
1254
|
|
1255
|
-
<div id="method-
|
1256
|
-
<a name="
|
1255
|
+
<div id="method-M000163" class="method-detail">
|
1256
|
+
<a name="M000163"></a>
|
1257
1257
|
|
1258
1258
|
<div class="method-heading">
|
1259
|
-
<a href="#
|
1259
|
+
<a href="#M000163" class="method-signature">
|
1260
1260
|
<span class="method-name">store_data</span><span class="method-args">(data, graph_name=nil, format="application/rdf+xml")</span>
|
1261
1261
|
</a>
|
1262
1262
|
</div>
|
@@ -1275,8 +1275,8 @@ Perform a SPARQL SELECT query.
|
|
1275
1275
|
</td></tr>
|
1276
1276
|
</table>
|
1277
1277
|
<p><a class="source-toggle" href="#"
|
1278
|
-
onclick="toggleCode('
|
1279
|
-
<div class="method-source-code" id="
|
1278
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
1279
|
+
<div class="method-source-code" id="M000163-source">
|
1280
1280
|
<pre>
|
1281
1281
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 85</span>
|
1282
1282
|
<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>)
|
@@ -1300,11 +1300,11 @@ Perform a SPARQL SELECT query.
|
|
1300
1300
|
</div>
|
1301
1301
|
</div>
|
1302
1302
|
|
1303
|
-
<div id="method-
|
1304
|
-
<a name="
|
1303
|
+
<div id="method-M000164" class="method-detail">
|
1304
|
+
<a name="M000164"></a>
|
1305
1305
|
|
1306
1306
|
<div class="method-heading">
|
1307
|
-
<a href="#
|
1307
|
+
<a href="#M000164" class="method-signature">
|
1308
1308
|
<span class="method-name">store_file</span><span class="method-args">(file, graph_name=nil, format="application/rdf+xml")</span>
|
1309
1309
|
</a>
|
1310
1310
|
</div>
|
@@ -1329,8 +1329,8 @@ is submitted to the platform
|
|
1329
1329
|
</td></tr>
|
1330
1330
|
</table>
|
1331
1331
|
<p><a class="source-toggle" href="#"
|
1332
|
-
onclick="toggleCode('
|
1333
|
-
<div class="method-source-code" id="
|
1332
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
1333
|
+
<div class="method-source-code" id="M000164-source">
|
1334
1334
|
<pre>
|
1335
1335
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 107</span>
|
1336
1336
|
<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>)
|
@@ -1343,11 +1343,11 @@ is submitted to the platform
|
|
1343
1343
|
</div>
|
1344
1344
|
</div>
|
1345
1345
|
|
1346
|
-
<div id="method-
|
1347
|
-
<a name="
|
1346
|
+
<div id="method-M000165" class="method-detail">
|
1347
|
+
<a name="M000165"></a>
|
1348
1348
|
|
1349
1349
|
<div class="method-heading">
|
1350
|
-
<a href="#
|
1350
|
+
<a href="#M000165" class="method-signature">
|
1351
1351
|
<span class="method-name">store_url</span><span class="method-args">(u, parameters=nil, graph_name=nil)</span>
|
1352
1352
|
</a>
|
1353
1353
|
</div>
|
@@ -1385,8 +1385,8 @@ URL
|
|
1385
1385
|
</td></tr>
|
1386
1386
|
</table>
|
1387
1387
|
<p><a class="source-toggle" href="#"
|
1388
|
-
onclick="toggleCode('
|
1389
|
-
<div class="method-source-code" id="
|
1388
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
1389
|
+
<div class="method-source-code" id="M000165-source">
|
1390
1390
|
<pre>
|
1391
1391
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 125</span>
|
1392
1392
|
<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>)
|
@@ -1407,11 +1407,11 @@ URL
|
|
1407
1407
|
</div>
|
1408
1408
|
</div>
|
1409
1409
|
|
1410
|
-
<div id="method-
|
1411
|
-
<a name="
|
1410
|
+
<div id="method-M000167" class="method-detail">
|
1411
|
+
<a name="M000167"></a>
|
1412
1412
|
|
1413
1413
|
<div class="method-heading">
|
1414
|
-
<a href="#
|
1414
|
+
<a href="#M000167" class="method-signature">
|
1415
1415
|
<span class="method-name">submit_changeset</span><span class="method-args">(rdf, versioned=false, graph_name=nil)</span>
|
1416
1416
|
</a>
|
1417
1417
|
</div>
|
@@ -1437,8 +1437,8 @@ be submitted to private graphs.
|
|
1437
1437
|
</td></tr>
|
1438
1438
|
</table>
|
1439
1439
|
<p><a class="source-toggle" href="#"
|
1440
|
-
onclick="toggleCode('
|
1441
|
-
<div class="method-source-code" id="
|
1440
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
1441
|
+
<div class="method-source-code" id="M000167-source">
|
1442
1442
|
<pre>
|
1443
1443
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 169</span>
|
1444
1444
|
<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>)
|
@@ -1458,11 +1458,11 @@ be submitted to private graphs.
|
|
1458
1458
|
</div>
|
1459
1459
|
</div>
|
1460
1460
|
|
1461
|
-
<div id="method-
|
1462
|
-
<a name="
|
1461
|
+
<div id="method-M000186" class="method-detail">
|
1462
|
+
<a name="M000186"></a>
|
1463
1463
|
|
1464
1464
|
<div class="method-heading">
|
1465
|
-
<a href="#
|
1465
|
+
<a href="#M000186" class="method-signature">
|
1466
1466
|
<span class="method-name">submit_job</span><span class="method-args">(data)</span>
|
1467
1467
|
</a>
|
1468
1468
|
</div>
|
@@ -1478,8 +1478,8 @@ Submit a job to the platform.
|
|
1478
1478
|
</td></tr>
|
1479
1479
|
</table>
|
1480
1480
|
<p><a class="source-toggle" href="#"
|
1481
|
-
onclick="toggleCode('
|
1482
|
-
<div class="method-source-code" id="
|
1481
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
1482
|
+
<div class="method-source-code" id="M000186-source">
|
1483
1483
|
<pre>
|
1484
1484
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 419</span>
|
1485
1485
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_job</span>(<span class="ruby-identifier">data</span>)
|
@@ -1492,11 +1492,11 @@ Submit a job to the platform.
|
|
1492
1492
|
</div>
|
1493
1493
|
</div>
|
1494
1494
|
|
1495
|
-
<div id="method-
|
1496
|
-
<a name="
|
1495
|
+
<div id="method-M000181" class="method-detail">
|
1496
|
+
<a name="M000181"></a>
|
1497
1497
|
|
1498
1498
|
<div class="method-heading">
|
1499
|
-
<a href="#
|
1499
|
+
<a href="#M000181" class="method-signature">
|
1500
1500
|
<span class="method-name">upload_item</span><span class="method-args">(f, mimetype, uri=nil)</span>
|
1501
1501
|
</a>
|
1502
1502
|
</div>
|
@@ -1524,8 +1524,8 @@ stored item. If a URI is specified then a successful request will result in
|
|
1524
1524
|
a 200 OK response.
|
1525
1525
|
</p>
|
1526
1526
|
<p><a class="source-toggle" href="#"
|
1527
|
-
onclick="toggleCode('
|
1528
|
-
<div class="method-source-code" id="
|
1527
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
1528
|
+
<div class="method-source-code" id="M000181-source">
|
1529
1529
|
<pre>
|
1530
1530
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 347</span>
|
1531
1531
|
<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>)
|