pho 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +21 -0
- data/Rakefile +1 -1
- data/doc/rdoc/classes/Pho.html +0 -5
- data/doc/rdoc/classes/Pho/CommandLine.html +108 -108
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +15 -15
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +3 -3
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +1 -1
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +106 -106
- data/doc/rdoc/classes/Pho/FieldWeighting.html +14 -14
- data/doc/rdoc/classes/Pho/Job.html +67 -68
- data/doc/rdoc/classes/Pho/Jobs.html +62 -62
- data/doc/rdoc/classes/Pho/OAI/Records.html +7 -6
- data/doc/rdoc/classes/Pho/OAI/Statistics.html +194 -0
- data/doc/rdoc/classes/Pho/QueryProfile.html +86 -81
- data/doc/rdoc/classes/Pho/ResourceHash.html +1 -1
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -35
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +2 -3
- data/doc/rdoc/classes/Pho/Snapshot.html +36 -36
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +3 -4
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +257 -254
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +14 -14
- data/doc/rdoc/classes/Pho/Update/Changeset.html +5 -6
- data/doc/rdoc/classes/Pho/Update/Changesets.html +2 -3
- data/doc/rdoc/classes/Pho/Update/Statement.html +3 -4
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +33 -4
- data/doc/rdoc/files/lib/pho/converter_rb.html +1 -8
- data/doc/rdoc/files/lib/pho/oai_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/query_profile_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
- data/doc/rdoc/files/lib/pho_rb.html +5 -3
- data/doc/rdoc/fr_class_index.html +0 -2
- data/doc/rdoc/fr_file_index.html +0 -1
- data/doc/rdoc/fr_method_index.html +132 -136
- data/lib/pho.rb +7 -3
- data/lib/pho/converter.rb +23 -30
- data/lib/pho/oai.rb +5 -4
- data/lib/pho/query_profile.rb +6 -1
- data/lib/pho/store.rb +17 -12
- data/tests/tc_changeset_builder.rb +2 -2
- data/tests/tc_converter.rb +3 -3
- data/tests/tc_oai.rb +1 -1
- data/tests/tc_query_profile.rb +37 -1
- data/tests/ts_pho.rb +0 -1
- metadata +5 -9
- data/doc/rdoc/classes/Pho/RDF.html +0 -120
- data/doc/rdoc/classes/Pho/RDF/Parser.html +0 -279
- data/doc/rdoc/files/lib/pho/rdf_rb.html +0 -108
- data/lib/pho/rdf.rb +0 -76
- data/tests/tc_rdf_parser.rb +0 -37
@@ -84,8 +84,8 @@ The <a href="Store.html">Store</a> class acts as a lightweight client
|
|
84
84
|
interface to the Talis Platform API (<a
|
85
85
|
href="http://n2.talis.com/wiki/Platform_API">n2.talis.com/wiki/Platform_API</a>).
|
86
86
|
The class provides methods for interacting with each of the core platform
|
87
|
-
services, e.g. retrieving and storing
|
88
|
-
|
87
|
+
services, e.g. retrieving and storing RDF, performing searches, SPARQL
|
88
|
+
queries, etc.
|
89
89
|
</p>
|
90
90
|
<h2>Usage</h2>
|
91
91
|
<pre>
|
@@ -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="#M000174">augment</a>
|
113
|
+
<a href="#M000173">augment_uri</a>
|
114
|
+
<a href="#M000158">build_uri</a>
|
115
|
+
<a href="#M000175">configure_headers_for_conditional_get</a>
|
116
|
+
<a href="#M000178">delete_item</a>
|
117
|
+
<a href="#M000162">describe</a>
|
118
|
+
<a href="#M000171">facet</a>
|
119
|
+
<a href="#M000186">get_field_predicate_map</a>
|
120
|
+
<a href="#M000179">get_item</a>
|
121
|
+
<a href="#M000180">get_job</a>
|
122
|
+
<a href="#M000181">get_jobs</a>
|
123
|
+
<a href="#M000188">get_query_profile</a>
|
124
|
+
<a href="#M000172">get_search_params</a>
|
125
|
+
<a href="#M000184">get_snapshots</a>
|
126
|
+
<a href="#M000183">get_status</a>
|
127
|
+
<a href="#M000185">list_records</a>
|
128
|
+
<a href="#M000156">new</a>
|
129
|
+
<a href="#M000187">put_field_predicate_map</a>
|
130
|
+
<a href="#M000189">put_query_profile</a>
|
131
|
+
<a href="#M000176">record_etags</a>
|
132
|
+
<a href="#M000170">search</a>
|
133
|
+
<a href="#M000157">set_credentials</a>
|
134
|
+
<a href="#M000169">sparql</a>
|
135
|
+
<a href="#M000167">sparql_ask</a>
|
136
|
+
<a href="#M000164">sparql_client</a>
|
137
|
+
<a href="#M000166">sparql_construct</a>
|
138
|
+
<a href="#M000165">sparql_describe</a>
|
139
|
+
<a href="#M000168">sparql_select</a>
|
140
|
+
<a href="#M000159">store_data</a>
|
141
|
+
<a href="#M000160">store_file</a>
|
142
|
+
<a href="#M000161">store_url</a>
|
143
|
+
<a href="#M000163">submit_changeset</a>
|
144
|
+
<a href="#M000182">submit_job</a>
|
145
|
+
<a href="#M000177">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-M000156" class="method-detail">
|
208
|
+
<a name="M000156"></a>
|
209
209
|
|
210
210
|
<div class="method-heading">
|
211
|
-
<a href="#
|
211
|
+
<a href="#M000156" 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('M000156-source');return false;">[Source]</a></p>
|
236
|
+
<div class="method-source-code" id="M000156-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-M000174" class="method-detail">
|
255
|
+
<a name="M000174"></a>
|
256
256
|
|
257
257
|
<div class="method-heading">
|
258
|
-
<a href="#
|
258
|
+
<a href="#M000174" 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('M000174-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000174-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-M000173" class="method-detail">
|
289
|
+
<a name="M000173"></a>
|
290
290
|
|
291
291
|
<div class="method-heading">
|
292
|
-
<a href="#
|
292
|
+
<a href="#M000173" 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('M000173-source');return false;">[Source]</a></p>
|
309
|
+
<div class="method-source-code" id="M000173-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-M000158" class="method-detail">
|
323
|
+
<a name="M000158"></a>
|
324
324
|
|
325
325
|
<div class="method-heading">
|
326
|
-
<a href="#
|
326
|
+
<a href="#M000158" 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('M000158-source');return false;">[Source]</a></p>
|
342
|
+
<div class="method-source-code" id="M000158-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-M000175" class="method-detail">
|
361
|
+
<a name="M000175"></a>
|
362
362
|
|
363
363
|
<div class="method-heading">
|
364
|
-
<a href="#
|
364
|
+
<a href="#M000175" 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('M000175-source');return false;">[Source]</a></p>
|
375
|
+
<div class="method-source-code" id="M000175-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-M000178" class="method-detail">
|
394
|
+
<a name="M000178"></a>
|
395
395
|
|
396
396
|
<div class="method-heading">
|
397
|
-
<a href="#
|
397
|
+
<a href="#M000178" 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('M000178-source');return false;">[Source]</a></p>
|
416
|
+
<div class="method-source-code" id="M000178-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,24 +427,23 @@ TODO: conditional deletes
|
|
427
427
|
</div>
|
428
428
|
</div>
|
429
429
|
|
430
|
-
<div id="method-
|
431
|
-
<a name="
|
430
|
+
<div id="method-M000162" class="method-detail">
|
431
|
+
<a name="M000162"></a>
|
432
432
|
|
433
433
|
<div class="method-heading">
|
434
|
-
<a href="#
|
434
|
+
<a href="#M000162" 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>
|
438
438
|
|
439
439
|
<div class="method-description">
|
440
440
|
<p>
|
441
|
-
Retrieve an
|
442
|
-
|
443
|
-
|
444
|
-
Platform. E.g. application/json
|
441
|
+
Retrieve an RDF description of a specific URI. The default behaviour will
|
442
|
+
be to retrieve an RDF/XML document, but other formats can be requested, as
|
443
|
+
supported by the Talis Platform. E.g. application/json
|
445
444
|
</p>
|
446
445
|
<table>
|
447
|
-
<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#M000162">describe</a>
|
448
447
|
|
449
448
|
</td></tr>
|
450
449
|
<tr><td valign="top">format:</td><td>the preferred response format
|
@@ -461,18 +460,18 @@ false to perform a Conditional GET
|
|
461
460
|
</table>
|
462
461
|
<p>
|
463
462
|
Note that this method is different from <a
|
464
|
-
href="Store.html#
|
463
|
+
href="Store.html#M000165">sparql_describe</a> in that it is intended to be
|
465
464
|
used to generate a description of a single URI, using an separated service
|
466
465
|
exposed by the Platform. This service is optimised for retrieval of
|
467
466
|
descriptions for single resources and supports HTTP caching and conditional
|
468
|
-
retrieval. The <a href="Store.html#
|
467
|
+
retrieval. The <a href="Store.html#M000165">sparql_describe</a> method
|
469
468
|
should be used to submit more complex DESCRIBE queries to the Platform,
|
470
469
|
e.g. to generate descriptions of resources matching a particular graph
|
471
470
|
pattern.
|
472
471
|
</p>
|
473
472
|
<p><a class="source-toggle" href="#"
|
474
|
-
onclick="toggleCode('
|
475
|
-
<div class="method-source-code" id="
|
473
|
+
onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
|
474
|
+
<div class="method-source-code" id="M000162-source">
|
476
475
|
<pre>
|
477
476
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 151</span>
|
478
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>)
|
@@ -488,18 +487,18 @@ pattern.
|
|
488
487
|
</div>
|
489
488
|
</div>
|
490
489
|
|
491
|
-
<div id="method-
|
492
|
-
<a name="
|
490
|
+
<div id="method-M000171" class="method-detail">
|
491
|
+
<a name="M000171"></a>
|
493
492
|
|
494
493
|
<div class="method-heading">
|
495
|
-
<a href="#
|
494
|
+
<a href="#M000171" class="method-signature">
|
496
495
|
<span class="method-name">facet</span><span class="method-args">(query, facets, params=nil)</span>
|
497
496
|
</a>
|
498
497
|
</div>
|
499
498
|
|
500
499
|
<div class="method-description">
|
501
500
|
<p>
|
502
|
-
Perform a facetted <a href="Store.html#
|
501
|
+
Perform a facetted <a href="Store.html#M000170">search</a> against the
|
503
502
|
Metabox indexes.
|
504
503
|
</p>
|
505
504
|
<table>
|
@@ -518,7 +517,7 @@ The <em>params</em> hash can contain the following values:
|
|
518
517
|
</p>
|
519
518
|
<ul>
|
520
519
|
<li><b>top</b>: the maximum number of results to return for each <a
|
521
|
-
href="Store.html#
|
520
|
+
href="Store.html#M000171">facet</a>
|
522
521
|
|
523
522
|
</li>
|
524
523
|
<li><b>output</b>: the preferred response format, can be html or xml (the
|
@@ -527,8 +526,8 @@ default)
|
|
527
526
|
</li>
|
528
527
|
</ul>
|
529
528
|
<p><a class="source-toggle" href="#"
|
530
|
-
onclick="toggleCode('
|
531
|
-
<div class="method-source-code" id="
|
529
|
+
onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
|
530
|
+
<div class="method-source-code" id="M000171-source">
|
532
531
|
<pre>
|
533
532
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 276</span>
|
534
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>)
|
@@ -547,11 +546,11 @@ default)
|
|
547
546
|
</div>
|
548
547
|
</div>
|
549
548
|
|
550
|
-
<div id="method-
|
551
|
-
<a name="
|
549
|
+
<div id="method-M000186" class="method-detail">
|
550
|
+
<a name="M000186"></a>
|
552
551
|
|
553
552
|
<div class="method-heading">
|
554
|
-
<a href="#
|
553
|
+
<a href="#M000186" class="method-signature">
|
555
554
|
<span class="method-name">get_field_predicate_map</span><span class="method-args">(output=ACCEPT_JSON)</span>
|
556
555
|
</a>
|
557
556
|
</div>
|
@@ -561,7 +560,7 @@ default)
|
|
561
560
|
Read the field predicate map configuration for this store. The config can
|
562
561
|
be requested in any format supported by the platform, but the default will
|
563
562
|
return JSON. See <a
|
564
|
-
href="FieldPredicateMap.html#
|
563
|
+
href="FieldPredicateMap.html#M000092">FieldPredicateMap.read_from_store</a>
|
565
564
|
for a convenient way to quickly create a <a
|
566
565
|
href="FieldPredicateMap.html">FieldPredicateMap</a> object based on a
|
567
566
|
specific stores‘s configuration.
|
@@ -572,10 +571,10 @@ specific stores‘s configuration.
|
|
572
571
|
</td></tr>
|
573
572
|
</table>
|
574
573
|
<p><a class="source-toggle" href="#"
|
575
|
-
onclick="toggleCode('
|
576
|
-
<div class="method-source-code" id="
|
574
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
575
|
+
<div class="method-source-code" id="M000186-source">
|
577
576
|
<pre>
|
578
|
-
<span class="ruby-comment cmt"># File lib/pho/store.rb, line
|
577
|
+
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 479</span>
|
579
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>)
|
580
579
|
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/config/fpmaps/1"</span>)
|
581
580
|
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">u</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">output</span>)
|
@@ -586,11 +585,11 @@ specific stores‘s configuration.
|
|
586
585
|
</div>
|
587
586
|
</div>
|
588
587
|
|
589
|
-
<div id="method-
|
590
|
-
<a name="
|
588
|
+
<div id="method-M000179" class="method-detail">
|
589
|
+
<a name="M000179"></a>
|
591
590
|
|
592
591
|
<div class="method-heading">
|
593
|
-
<a href="#
|
592
|
+
<a href="#M000179" class="method-signature">
|
594
593
|
<span class="method-name">get_item</span><span class="method-args">(uri, etags=nil, if_match=false)</span>
|
595
594
|
</a>
|
596
595
|
</div>
|
@@ -606,15 +605,15 @@ Get an item from the Contebtbox.
|
|
606
605
|
</table>
|
607
606
|
<p>
|
608
607
|
If the provided URL of the item is not in the Contentbox, then the response
|
609
|
-
will be a redirect to the
|
610
|
-
|
608
|
+
will be a redirect to the RDF description of this item, as available from
|
609
|
+
the Metabox.
|
611
610
|
</p>
|
612
611
|
<p>
|
613
612
|
TODO: document etags, redirects
|
614
613
|
</p>
|
615
614
|
<p><a class="source-toggle" href="#"
|
616
|
-
onclick="toggleCode('
|
617
|
-
<div class="method-source-code" id="
|
615
|
+
onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
|
616
|
+
<div class="method-source-code" id="M000179-source">
|
618
617
|
<pre>
|
619
618
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 386</span>
|
620
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>)
|
@@ -630,11 +629,11 @@ TODO: document etags, redirects
|
|
630
629
|
</div>
|
631
630
|
</div>
|
632
631
|
|
633
|
-
<div id="method-
|
634
|
-
<a name="
|
632
|
+
<div id="method-M000180" class="method-detail">
|
633
|
+
<a name="M000180"></a>
|
635
634
|
|
636
635
|
<div class="method-heading">
|
637
|
-
<a href="#
|
636
|
+
<a href="#M000180" class="method-signature">
|
638
637
|
<span class="method-name">get_job</span><span class="method-args">(uri)</span>
|
639
638
|
</a>
|
640
639
|
</div>
|
@@ -642,7 +641,7 @@ TODO: document etags, redirects
|
|
642
641
|
<div class="method-description">
|
643
642
|
<p>
|
644
643
|
Retrieve metadata about a single job. Use <a
|
645
|
-
href="Job.html#
|
644
|
+
href="Job.html#M000198">Job.read_from_store</a> as a convenience function
|
646
645
|
which will return a fully-populated <a href="Job.html">Job</a> object
|
647
646
|
</p>
|
648
647
|
<table>
|
@@ -651,8 +650,8 @@ which will return a fully-populated <a href="Job.html">Job</a> object
|
|
651
650
|
</td></tr>
|
652
651
|
</table>
|
653
652
|
<p><a class="source-toggle" href="#"
|
654
|
-
onclick="toggleCode('
|
655
|
-
<div class="method-source-code" id="
|
653
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
654
|
+
<div class="method-source-code" id="M000180-source">
|
656
655
|
<pre>
|
657
656
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 403</span>
|
658
657
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_job</span>(<span class="ruby-identifier">uri</span>)
|
@@ -665,11 +664,11 @@ which will return a fully-populated <a href="Job.html">Job</a> object
|
|
665
664
|
</div>
|
666
665
|
</div>
|
667
666
|
|
668
|
-
<div id="method-
|
669
|
-
<a name="
|
667
|
+
<div id="method-M000181" class="method-detail">
|
668
|
+
<a name="M000181"></a>
|
670
669
|
|
671
670
|
<div class="method-heading">
|
672
|
-
<a href="#
|
671
|
+
<a href="#M000181" class="method-signature">
|
673
672
|
<span class="method-name">get_jobs</span><span class="method-args">()</span>
|
674
673
|
</a>
|
675
674
|
</div>
|
@@ -680,8 +679,8 @@ Retrieve metadata about the Scheduled <a href="Jobs.html">Jobs</a>
|
|
680
679
|
Collection from the store
|
681
680
|
</p>
|
682
681
|
<p><a class="source-toggle" href="#"
|
683
|
-
onclick="toggleCode('
|
684
|
-
<div class="method-source-code" id="
|
682
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
683
|
+
<div class="method-source-code" id="M000181-source">
|
685
684
|
<pre>
|
686
685
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 410</span>
|
687
686
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_jobs</span>()
|
@@ -694,11 +693,11 @@ Collection from the store
|
|
694
693
|
</div>
|
695
694
|
</div>
|
696
695
|
|
697
|
-
<div id="method-
|
698
|
-
<a name="
|
696
|
+
<div id="method-M000188" class="method-detail">
|
697
|
+
<a name="M000188"></a>
|
699
698
|
|
700
699
|
<div class="method-heading">
|
701
|
-
<a href="#
|
700
|
+
<a href="#M000188" class="method-signature">
|
702
701
|
<span class="method-name">get_query_profile</span><span class="method-args">(output=ACCEPT_JSON)</span>
|
703
702
|
</a>
|
704
703
|
</div>
|
@@ -708,7 +707,7 @@ Collection from the store
|
|
708
707
|
Read the query profile configuration for this store. The config can be
|
709
708
|
requested in any format supported by the platform, but the default will
|
710
709
|
return JSON. See <a
|
711
|
-
href="QueryProfile.html#
|
710
|
+
href="QueryProfile.html#M000131">QueryProfile.read_from_store</a> for a
|
712
711
|
convenient way to quickly create a <a
|
713
712
|
href="QueryProfile.html">QueryProfile</a> object based on a specific
|
714
713
|
stores‘s configuration.
|
@@ -719,10 +718,10 @@ stores‘s configuration.
|
|
719
718
|
</td></tr>
|
720
719
|
</table>
|
721
720
|
<p><a class="source-toggle" href="#"
|
722
|
-
onclick="toggleCode('
|
723
|
-
<div class="method-source-code" id="
|
721
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
722
|
+
<div class="method-source-code" id="M000188-source">
|
724
723
|
<pre>
|
725
|
-
<span class="ruby-comment cmt"># File lib/pho/store.rb, line
|
724
|
+
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 500</span>
|
726
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>)
|
727
726
|
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/config/queryprofiles/1"</span>)
|
728
727
|
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">u</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">output</span>)
|
@@ -733,19 +732,19 @@ stores‘s configuration.
|
|
733
732
|
</div>
|
734
733
|
</div>
|
735
734
|
|
736
|
-
<div id="method-
|
737
|
-
<a name="
|
735
|
+
<div id="method-M000172" class="method-detail">
|
736
|
+
<a name="M000172"></a>
|
738
737
|
|
739
738
|
<div class="method-heading">
|
740
|
-
<a href="#
|
739
|
+
<a href="#M000172" class="method-signature">
|
741
740
|
<span class="method-name">get_search_params</span><span class="method-args">(u, query, params)</span>
|
742
741
|
</a>
|
743
742
|
</div>
|
744
743
|
|
745
744
|
<div class="method-description">
|
746
745
|
<p><a class="source-toggle" href="#"
|
747
|
-
onclick="toggleCode('
|
748
|
-
<div class="method-source-code" id="
|
746
|
+
onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
|
747
|
+
<div class="method-source-code" id="M000172-source">
|
749
748
|
<pre>
|
750
749
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 288</span>
|
751
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>)
|
@@ -762,11 +761,11 @@ stores‘s configuration.
|
|
762
761
|
</div>
|
763
762
|
</div>
|
764
763
|
|
765
|
-
<div id="method-
|
766
|
-
<a name="
|
764
|
+
<div id="method-M000184" class="method-detail">
|
765
|
+
<a name="M000184"></a>
|
767
766
|
|
768
767
|
<div class="method-heading">
|
769
|
-
<a href="#
|
768
|
+
<a href="#M000184" class="method-signature">
|
770
769
|
<span class="method-name">get_snapshots</span><span class="method-args">()</span>
|
771
770
|
</a>
|
772
771
|
</div>
|
@@ -777,12 +776,12 @@ Retrieve the list of snapshots for this store
|
|
777
776
|
</p>
|
778
777
|
<p>
|
779
778
|
Currently the response will contain an HTML document. Use <a
|
780
|
-
href="Snapshot.html#
|
779
|
+
href="Snapshot.html#M000191">Snapshot.parse</a> to turn this into a <a
|
781
780
|
href="Snapshot.html">Snapshot</a> object
|
782
781
|
</p>
|
783
782
|
<p><a class="source-toggle" href="#"
|
784
|
-
onclick="toggleCode('
|
785
|
-
<div class="method-source-code" id="
|
783
|
+
onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
|
784
|
+
<div class="method-source-code" id="M000184-source">
|
786
785
|
<pre>
|
787
786
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 439</span>
|
788
787
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_snapshots</span>()
|
@@ -795,11 +794,11 @@ href="Snapshot.html">Snapshot</a> object
|
|
795
794
|
</div>
|
796
795
|
</div>
|
797
796
|
|
798
|
-
<div id="method-
|
799
|
-
<a name="
|
797
|
+
<div id="method-M000183" class="method-detail">
|
798
|
+
<a name="M000183"></a>
|
800
799
|
|
801
800
|
<div class="method-heading">
|
802
|
-
<a href="#
|
801
|
+
<a href="#M000183" class="method-signature">
|
803
802
|
<span class="method-name">get_status</span><span class="method-args">()</span>
|
804
803
|
</a>
|
805
804
|
</div>
|
@@ -809,8 +808,8 @@ href="Snapshot.html">Snapshot</a> object
|
|
809
808
|
ADMIN
|
810
809
|
</p>
|
811
810
|
<p><a class="source-toggle" href="#"
|
812
|
-
onclick="toggleCode('
|
813
|
-
<div class="method-source-code" id="
|
811
|
+
onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
|
812
|
+
<div class="method-source-code" id="M000183-source">
|
814
813
|
<pre>
|
815
814
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 429</span>
|
816
815
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_status</span>()
|
@@ -823,11 +822,11 @@ ADMIN
|
|
823
822
|
</div>
|
824
823
|
</div>
|
825
824
|
|
826
|
-
<div id="method-
|
827
|
-
<a name="
|
825
|
+
<div id="method-M000185" class="method-detail">
|
826
|
+
<a name="M000185"></a>
|
828
827
|
|
829
828
|
<div class="method-heading">
|
830
|
-
<a href="#
|
829
|
+
<a href="#M000185" class="method-signature">
|
831
830
|
<span class="method-name">list_records</span><span class="method-args">(from=nil, to=nil, resumption_token=nil)</span>
|
832
831
|
</a>
|
833
832
|
</div>
|
@@ -837,22 +836,27 @@ ADMIN
|
|
837
836
|
<a href="OAI.html">OAI</a>
|
838
837
|
</p>
|
839
838
|
<p><a class="source-toggle" href="#"
|
840
|
-
onclick="toggleCode('
|
841
|
-
<div class="method-source-code" id="
|
839
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
840
|
+
<div class="method-source-code" id="M000185-source">
|
842
841
|
<pre>
|
843
842
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 449</span>
|
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>)
|
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>)
|
845
844
|
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/services/oai-pmh"</span>)
|
846
|
-
|
847
|
-
<span class="ruby-
|
848
|
-
|
849
|
-
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
<span class="ruby-
|
845
|
+
|
846
|
+
<span class="ruby-identifier">params</span> = {<span class="ruby-value str">"verb"</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"ListRecords"</span>}
|
847
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resumption_token</span><span class="ruby-operator">==</span><span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">then</span>
|
848
|
+
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"metadataPrefix"</span>] = <span class="ruby-value str">"oai_dc"</span>
|
849
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">from</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
850
|
+
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"from"</span>] = <span class="ruby-identifier">from</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">"%Y-%m-%dT%H:%M:%SZ"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">from</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:strftime</span>
|
851
|
+
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"from"</span>] = <span class="ruby-identifier">from</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">from</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:strftime</span>
|
852
|
+
<span class="ruby-keyword kw">end</span>
|
853
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">to</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
854
|
+
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"until"</span>] = <span class="ruby-identifier">to</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">"%Y-%m-%dT%H:%M:%SZ"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">to</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:strftime</span>
|
855
|
+
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"until"</span>] = <span class="ruby-identifier">to</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">to</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:strftime</span>
|
856
|
+
<span class="ruby-keyword kw">end</span>
|
857
|
+
<span class="ruby-keyword kw">else</span>
|
858
|
+
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"resumptionToken"</span>] = <span class="ruby-identifier">resumption_token</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resumption_token</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
854
859
|
<span class="ruby-keyword kw">end</span>
|
855
|
-
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"resumptionToken"</span>] = <span class="ruby-identifier">resumption_token</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resumption_token</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
856
860
|
<span class="ruby-identifier">response</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">u</span>, <span class="ruby-identifier">params</span>)
|
857
861
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
858
862
|
<span class="ruby-keyword kw">end</span>
|
@@ -861,11 +865,11 @@ ADMIN
|
|
861
865
|
</div>
|
862
866
|
</div>
|
863
867
|
|
864
|
-
<div id="method-
|
865
|
-
<a name="
|
868
|
+
<div id="method-M000187" class="method-detail">
|
869
|
+
<a name="M000187"></a>
|
866
870
|
|
867
871
|
<div class="method-heading">
|
868
|
-
<a href="#
|
872
|
+
<a href="#M000187" class="method-signature">
|
869
873
|
<span class="method-name">put_field_predicate_map</span><span class="method-args">(data)</span>
|
870
874
|
</a>
|
871
875
|
</div>
|
@@ -873,21 +877,21 @@ ADMIN
|
|
873
877
|
<div class="method-description">
|
874
878
|
<p>
|
875
879
|
<a href="Update.html">Update</a>/replace the current Field Predicate map
|
876
|
-
configuration in the store. Assumes that the provided data is valid
|
877
|
-
|
878
|
-
href="FieldPredicateMap.html#
|
880
|
+
configuration in the store. Assumes that the provided data is valid
|
881
|
+
RDF/XML. Use <a
|
882
|
+
href="FieldPredicateMap.html#M000108">FieldPredicateMap.upload</a> as a
|
879
883
|
convenience function
|
880
884
|
</p>
|
881
885
|
<table>
|
882
|
-
<tr><td valign="top">data:</td><td>a string containing an
|
886
|
+
<tr><td valign="top">data:</td><td>a string containing an RDF/XML document
|
883
887
|
|
884
888
|
</td></tr>
|
885
889
|
</table>
|
886
890
|
<p><a class="source-toggle" href="#"
|
887
|
-
onclick="toggleCode('
|
888
|
-
<div class="method-source-code" id="
|
891
|
+
onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
|
892
|
+
<div class="method-source-code" id="M000187-source">
|
889
893
|
<pre>
|
890
|
-
<span class="ruby-comment cmt"># File lib/pho/store.rb, line
|
894
|
+
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 489</span>
|
891
895
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_field_predicate_map</span>(<span class="ruby-identifier">data</span>)
|
892
896
|
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/config/fpmaps/1"</span>)
|
893
897
|
<span class="ruby-identifier">headers</span> = {<span class="ruby-value str">"Content-Type"</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"application/rdf+xml"</span>}
|
@@ -898,11 +902,11 @@ convenience function
|
|
898
902
|
</div>
|
899
903
|
</div>
|
900
904
|
|
901
|
-
<div id="method-
|
902
|
-
<a name="
|
905
|
+
<div id="method-M000189" class="method-detail">
|
906
|
+
<a name="M000189"></a>
|
903
907
|
|
904
908
|
<div class="method-heading">
|
905
|
-
<a href="#
|
909
|
+
<a href="#M000189" class="method-signature">
|
906
910
|
<span class="method-name">put_query_profile</span><span class="method-args">(data)</span>
|
907
911
|
</a>
|
908
912
|
</div>
|
@@ -910,21 +914,20 @@ convenience function
|
|
910
914
|
<div class="method-description">
|
911
915
|
<p>
|
912
916
|
<a href="Update.html">Update</a>/replace the current Query Profile
|
913
|
-
configuration in the store. Assumes that the provided data is valid
|
914
|
-
href="
|
915
|
-
|
916
|
-
function
|
917
|
+
configuration in the store. Assumes that the provided data is valid
|
918
|
+
RDF/XML. Use <a href="QueryProfile.html#M000141">QueryProfile.upload</a> as
|
919
|
+
a convenience function
|
917
920
|
</p>
|
918
921
|
<table>
|
919
|
-
<tr><td valign="top">data:</td><td>a string containing an
|
922
|
+
<tr><td valign="top">data:</td><td>a string containing an RDF/XML document
|
920
923
|
|
921
924
|
</td></tr>
|
922
925
|
</table>
|
923
926
|
<p><a class="source-toggle" href="#"
|
924
|
-
onclick="toggleCode('
|
925
|
-
<div class="method-source-code" id="
|
927
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
928
|
+
<div class="method-source-code" id="M000189-source">
|
926
929
|
<pre>
|
927
|
-
<span class="ruby-comment cmt"># File lib/pho/store.rb, line
|
930
|
+
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 510</span>
|
928
931
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">put_query_profile</span>(<span class="ruby-identifier">data</span>)
|
929
932
|
<span class="ruby-identifier">u</span> = <span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/config/queryprofiles/1"</span>)
|
930
933
|
<span class="ruby-identifier">headers</span> = {<span class="ruby-value str">"Content-Type"</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"application/rdf+xml"</span>}
|
@@ -935,19 +938,19 @@ function
|
|
935
938
|
</div>
|
936
939
|
</div>
|
937
940
|
|
938
|
-
<div id="method-
|
939
|
-
<a name="
|
941
|
+
<div id="method-M000176" class="method-detail">
|
942
|
+
<a name="M000176"></a>
|
940
943
|
|
941
944
|
<div class="method-heading">
|
942
|
-
<a href="#
|
945
|
+
<a href="#M000176" class="method-signature">
|
943
946
|
<span class="method-name">record_etags</span><span class="method-args">(u, etags, response)</span>
|
944
947
|
</a>
|
945
948
|
</div>
|
946
949
|
|
947
950
|
<div class="method-description">
|
948
951
|
<p><a class="source-toggle" href="#"
|
949
|
-
onclick="toggleCode('
|
950
|
-
<div class="method-source-code" id="
|
952
|
+
onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
|
953
|
+
<div class="method-source-code" id="M000176-source">
|
951
954
|
<pre>
|
952
955
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 328</span>
|
953
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>)
|
@@ -960,11 +963,11 @@ function
|
|
960
963
|
</div>
|
961
964
|
</div>
|
962
965
|
|
963
|
-
<div id="method-
|
964
|
-
<a name="
|
966
|
+
<div id="method-M000170" class="method-detail">
|
967
|
+
<a name="M000170"></a>
|
965
968
|
|
966
969
|
<div class="method-heading">
|
967
|
-
<a href="#
|
970
|
+
<a href="#M000170" class="method-signature">
|
968
971
|
<span class="method-name">search</span><span class="method-args">(query, params=nil)</span>
|
969
972
|
</a>
|
970
973
|
</div>
|
@@ -1011,8 +1014,8 @@ transformation is being applied, in which case they will be provided as
|
|
1011
1014
|
parameters to the stylesheet.
|
1012
1015
|
</p>
|
1013
1016
|
<p><a class="source-toggle" href="#"
|
1014
|
-
onclick="toggleCode('
|
1015
|
-
<div class="method-source-code" id="
|
1017
|
+
onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
|
1018
|
+
<div class="method-source-code" id="M000170-source">
|
1016
1019
|
<pre>
|
1017
1020
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 259</span>
|
1018
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>)
|
@@ -1027,11 +1030,11 @@ parameters to the stylesheet.
|
|
1027
1030
|
</div>
|
1028
1031
|
</div>
|
1029
1032
|
|
1030
|
-
<div id="method-
|
1031
|
-
<a name="
|
1033
|
+
<div id="method-M000157" class="method-detail">
|
1034
|
+
<a name="M000157"></a>
|
1032
1035
|
|
1033
1036
|
<div class="method-heading">
|
1034
|
-
<a href="#
|
1037
|
+
<a href="#M000157" class="method-signature">
|
1035
1038
|
<span class="method-name">set_credentials</span><span class="method-args">(username, password)</span>
|
1036
1039
|
</a>
|
1037
1040
|
</div>
|
@@ -1049,8 +1052,8 @@ Set credentials that this store will use when carrying out authorization
|
|
1049
1052
|
</td></tr>
|
1050
1053
|
</table>
|
1051
1054
|
<p><a class="source-toggle" href="#"
|
1052
|
-
onclick="toggleCode('
|
1053
|
-
<div class="method-source-code" id="
|
1055
|
+
onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
|
1056
|
+
<div class="method-source-code" id="M000157-source">
|
1054
1057
|
<pre>
|
1055
1058
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 58</span>
|
1056
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>)
|
@@ -1061,11 +1064,11 @@ Set credentials that this store will use when carrying out authorization
|
|
1061
1064
|
</div>
|
1062
1065
|
</div>
|
1063
1066
|
|
1064
|
-
<div id="method-
|
1065
|
-
<a name="
|
1067
|
+
<div id="method-M000169" class="method-detail">
|
1068
|
+
<a name="M000169"></a>
|
1066
1069
|
|
1067
1070
|
<div class="method-heading">
|
1068
|
-
<a href="#
|
1071
|
+
<a href="#M000169" class="method-signature">
|
1069
1072
|
<span class="method-name">sparql</span><span class="method-args">(query, format=nil, multisparql=false)</span>
|
1070
1073
|
</a>
|
1071
1074
|
</div>
|
@@ -1080,8 +1083,8 @@ Perform a SPARQL query
|
|
1080
1083
|
multisparql:: use default sparql service or multisparql service
|
1081
1084
|
</pre>
|
1082
1085
|
<p><a class="source-toggle" href="#"
|
1083
|
-
onclick="toggleCode('
|
1084
|
-
<div class="method-source-code" id="
|
1086
|
+
onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
|
1087
|
+
<div class="method-source-code" id="M000169-source">
|
1085
1088
|
<pre>
|
1086
1089
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 240</span>
|
1087
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>)
|
@@ -1092,11 +1095,11 @@ Perform a SPARQL query
|
|
1092
1095
|
</div>
|
1093
1096
|
</div>
|
1094
1097
|
|
1095
|
-
<div id="method-
|
1096
|
-
<a name="
|
1098
|
+
<div id="method-M000167" class="method-detail">
|
1099
|
+
<a name="M000167"></a>
|
1097
1100
|
|
1098
1101
|
<div class="method-heading">
|
1099
|
-
<a href="#
|
1102
|
+
<a href="#M000167" class="method-signature">
|
1100
1103
|
<span class="method-name">sparql_ask</span><span class="method-args">(query, format="application/sparql-results+xml", multisparql=false)</span>
|
1101
1104
|
</a>
|
1102
1105
|
</div>
|
@@ -1110,8 +1113,8 @@ Perform a SPARQL ASK query.
|
|
1110
1113
|
format:: the preferred response format
|
1111
1114
|
</pre>
|
1112
1115
|
<p><a class="source-toggle" href="#"
|
1113
|
-
onclick="toggleCode('
|
1114
|
-
<div class="method-source-code" id="
|
1116
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
1117
|
+
<div class="method-source-code" id="M000167-source">
|
1115
1118
|
<pre>
|
1116
1119
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 223</span>
|
1117
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>)
|
@@ -1122,11 +1125,11 @@ Perform a SPARQL ASK query.
|
|
1122
1125
|
</div>
|
1123
1126
|
</div>
|
1124
1127
|
|
1125
|
-
<div id="method-
|
1126
|
-
<a name="
|
1128
|
+
<div id="method-M000164" class="method-detail">
|
1129
|
+
<a name="M000164"></a>
|
1127
1130
|
|
1128
1131
|
<div class="method-heading">
|
1129
|
-
<a href="#
|
1132
|
+
<a href="#M000164" class="method-signature">
|
1130
1133
|
<span class="method-name">sparql_client</span><span class="method-args">(multisparql=false)</span>
|
1131
1134
|
</a>
|
1132
1135
|
</div>
|
@@ -1140,8 +1143,8 @@ store
|
|
1140
1143
|
multisparql:: optional, set to true to retrieve client for multisparql endpoint
|
1141
1144
|
</pre>
|
1142
1145
|
<p><a class="source-toggle" href="#"
|
1143
|
-
onclick="toggleCode('
|
1144
|
-
<div class="method-source-code" id="
|
1146
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
1147
|
+
<div class="method-source-code" id="M000164-source">
|
1145
1148
|
<pre>
|
1146
1149
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 189</span>
|
1147
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>)
|
@@ -1151,7 +1154,7 @@ store
|
|
1151
1154
|
<span class="ruby-identifier">u</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/services/sparql"</span>)
|
1152
1155
|
<span class="ruby-keyword kw">end</span>
|
1153
1156
|
|
1154
|
-
<span class="ruby-identifier">sparql_client</span> = <span class="ruby-constant">StoreSparqlClient</span>.<span class="ruby-identifier">new</span>(<span class="ruby-
|
1157
|
+
<span class="ruby-identifier">sparql_client</span> = <span class="ruby-constant">StoreSparqlClient</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">u</span>, <span class="ruby-ivar">@client</span>)
|
1155
1158
|
<span class="ruby-identifier">sparql_client</span>.<span class="ruby-identifier">supports_rdf_json</span> = <span class="ruby-keyword kw">true</span>
|
1156
1159
|
<span class="ruby-identifier">sparql_client</span>.<span class="ruby-identifier">supports_sparql_json</span> = <span class="ruby-keyword kw">true</span>
|
1157
1160
|
|
@@ -1162,11 +1165,11 @@ store
|
|
1162
1165
|
</div>
|
1163
1166
|
</div>
|
1164
1167
|
|
1165
|
-
<div id="method-
|
1166
|
-
<a name="
|
1168
|
+
<div id="method-M000166" class="method-detail">
|
1169
|
+
<a name="M000166"></a>
|
1167
1170
|
|
1168
1171
|
<div class="method-heading">
|
1169
|
-
<a href="#
|
1172
|
+
<a href="#M000166" class="method-signature">
|
1170
1173
|
<span class="method-name">sparql_construct</span><span class="method-args">(query, format="application/rdf+xml", multisparql=false)</span>
|
1171
1174
|
</a>
|
1172
1175
|
</div>
|
@@ -1180,8 +1183,8 @@ Perform a SPARQL CONSTRUCT query.
|
|
1180
1183
|
format:: the preferred response format
|
1181
1184
|
</pre>
|
1182
1185
|
<p><a class="source-toggle" href="#"
|
1183
|
-
onclick="toggleCode('
|
1184
|
-
<div class="method-source-code" id="
|
1186
|
+
onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
|
1187
|
+
<div class="method-source-code" id="M000166-source">
|
1185
1188
|
<pre>
|
1186
1189
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 215</span>
|
1187
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>)
|
@@ -1192,11 +1195,11 @@ Perform a SPARQL CONSTRUCT query.
|
|
1192
1195
|
</div>
|
1193
1196
|
</div>
|
1194
1197
|
|
1195
|
-
<div id="method-
|
1196
|
-
<a name="
|
1198
|
+
<div id="method-M000165" class="method-detail">
|
1199
|
+
<a name="M000165"></a>
|
1197
1200
|
|
1198
1201
|
<div class="method-heading">
|
1199
|
-
<a href="#
|
1202
|
+
<a href="#M000165" class="method-signature">
|
1200
1203
|
<span class="method-name">sparql_describe</span><span class="method-args">(query, format="application/rdf+xml", multisparql=false)</span>
|
1201
1204
|
</a>
|
1202
1205
|
</div>
|
@@ -1210,8 +1213,8 @@ Perform a SPARQL DESCRIBE query.
|
|
1210
1213
|
format:: the preferred response format
|
1211
1214
|
</pre>
|
1212
1215
|
<p><a class="source-toggle" href="#"
|
1213
|
-
onclick="toggleCode('
|
1214
|
-
<div class="method-source-code" id="
|
1216
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
1217
|
+
<div class="method-source-code" id="M000165-source">
|
1215
1218
|
<pre>
|
1216
1219
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 207</span>
|
1217
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>)
|
@@ -1222,11 +1225,11 @@ Perform a SPARQL DESCRIBE query.
|
|
1222
1225
|
</div>
|
1223
1226
|
</div>
|
1224
1227
|
|
1225
|
-
<div id="method-
|
1226
|
-
<a name="
|
1228
|
+
<div id="method-M000168" class="method-detail">
|
1229
|
+
<a name="M000168"></a>
|
1227
1230
|
|
1228
1231
|
<div class="method-heading">
|
1229
|
-
<a href="#
|
1232
|
+
<a href="#M000168" class="method-signature">
|
1230
1233
|
<span class="method-name">sparql_select</span><span class="method-args">(query, format="application/sparql-results+xml", multisparql=false)</span>
|
1231
1234
|
</a>
|
1232
1235
|
</div>
|
@@ -1240,8 +1243,8 @@ Perform a SPARQL SELECT query.
|
|
1240
1243
|
format:: the preferred response format
|
1241
1244
|
</pre>
|
1242
1245
|
<p><a class="source-toggle" href="#"
|
1243
|
-
onclick="toggleCode('
|
1244
|
-
<div class="method-source-code" id="
|
1246
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
1247
|
+
<div class="method-source-code" id="M000168-source">
|
1245
1248
|
<pre>
|
1246
1249
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 231</span>
|
1247
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>)
|
@@ -1252,11 +1255,11 @@ Perform a SPARQL SELECT query.
|
|
1252
1255
|
</div>
|
1253
1256
|
</div>
|
1254
1257
|
|
1255
|
-
<div id="method-
|
1256
|
-
<a name="
|
1258
|
+
<div id="method-M000159" class="method-detail">
|
1259
|
+
<a name="M000159"></a>
|
1257
1260
|
|
1258
1261
|
<div class="method-heading">
|
1259
|
-
<a href="#
|
1262
|
+
<a href="#M000159" class="method-signature">
|
1260
1263
|
<span class="method-name">store_data</span><span class="method-args">(data, graph_name=nil, format="application/rdf+xml")</span>
|
1261
1264
|
</a>
|
1262
1265
|
</div>
|
@@ -1270,13 +1273,13 @@ Perform a SPARQL SELECT query.
|
|
1270
1273
|
"private". Resolves to /meta/graphs/graph_name
|
1271
1274
|
|
1272
1275
|
</td></tr>
|
1273
|
-
<tr><td valign="top">format:</td><td>mimetype of
|
1276
|
+
<tr><td valign="top">format:</td><td>mimetype of RDF serialization
|
1274
1277
|
|
1275
1278
|
</td></tr>
|
1276
1279
|
</table>
|
1277
1280
|
<p><a class="source-toggle" href="#"
|
1278
|
-
onclick="toggleCode('
|
1279
|
-
<div class="method-source-code" id="
|
1281
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
1282
|
+
<div class="method-source-code" id="M000159-source">
|
1280
1283
|
<pre>
|
1281
1284
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 85</span>
|
1282
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>)
|
@@ -1300,11 +1303,11 @@ Perform a SPARQL SELECT query.
|
|
1300
1303
|
</div>
|
1301
1304
|
</div>
|
1302
1305
|
|
1303
|
-
<div id="method-
|
1304
|
-
<a name="
|
1306
|
+
<div id="method-M000160" class="method-detail">
|
1307
|
+
<a name="M000160"></a>
|
1305
1308
|
|
1306
1309
|
<div class="method-heading">
|
1307
|
-
<a href="#
|
1310
|
+
<a href="#M000160" class="method-signature">
|
1308
1311
|
<span class="method-name">store_file</span><span class="method-args">(file, graph_name=nil, format="application/rdf+xml")</span>
|
1309
1312
|
</a>
|
1310
1313
|
</div>
|
@@ -1324,13 +1327,13 @@ is submitted to the platform
|
|
1324
1327
|
"private". Resolves to /meta/graphs/graph_name
|
1325
1328
|
|
1326
1329
|
</td></tr>
|
1327
|
-
<tr><td valign="top">format:</td><td>mimetype of
|
1330
|
+
<tr><td valign="top">format:</td><td>mimetype of RDF serialization
|
1328
1331
|
|
1329
1332
|
</td></tr>
|
1330
1333
|
</table>
|
1331
1334
|
<p><a class="source-toggle" href="#"
|
1332
|
-
onclick="toggleCode('
|
1333
|
-
<div class="method-source-code" id="
|
1335
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
1336
|
+
<div class="method-source-code" id="M000160-source">
|
1334
1337
|
<pre>
|
1335
1338
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 107</span>
|
1336
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>)
|
@@ -1343,24 +1346,24 @@ is submitted to the platform
|
|
1343
1346
|
</div>
|
1344
1347
|
</div>
|
1345
1348
|
|
1346
|
-
<div id="method-
|
1347
|
-
<a name="
|
1349
|
+
<div id="method-M000161" class="method-detail">
|
1350
|
+
<a name="M000161"></a>
|
1348
1351
|
|
1349
1352
|
<div class="method-heading">
|
1350
|
-
<a href="#
|
1353
|
+
<a href="#M000161" class="method-signature">
|
1351
1354
|
<span class="method-name">store_url</span><span class="method-args">(u, parameters=nil, graph_name=nil)</span>
|
1352
1355
|
</a>
|
1353
1356
|
</div>
|
1354
1357
|
|
1355
1358
|
<div class="method-description">
|
1356
1359
|
<p>
|
1357
|
-
Retrieve
|
1358
|
-
|
1360
|
+
Retrieve RDF data from the specified URL and store it in the <a
|
1361
|
+
href="Store.html">Store</a> Metabox
|
1359
1362
|
</p>
|
1360
1363
|
<p>
|
1361
1364
|
An Accept header of "application/rdf+xml" will be sent in the
|
1362
|
-
request to support retrieval of
|
1363
|
-
|
1365
|
+
request to support retrieval of RDF from URLs that support Content
|
1366
|
+
Negotiation.
|
1364
1367
|
</p>
|
1365
1368
|
<p>
|
1366
1369
|
NOTE: Currently this method doesn‘t properly handle base uris of
|
@@ -1385,8 +1388,8 @@ URL
|
|
1385
1388
|
</td></tr>
|
1386
1389
|
</table>
|
1387
1390
|
<p><a class="source-toggle" href="#"
|
1388
|
-
onclick="toggleCode('
|
1389
|
-
<div class="method-source-code" id="
|
1391
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
1392
|
+
<div class="method-source-code" id="M000161-source">
|
1390
1393
|
<pre>
|
1391
1394
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 125</span>
|
1392
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>)
|
@@ -1407,11 +1410,11 @@ URL
|
|
1407
1410
|
</div>
|
1408
1411
|
</div>
|
1409
1412
|
|
1410
|
-
<div id="method-
|
1411
|
-
<a name="
|
1413
|
+
<div id="method-M000163" class="method-detail">
|
1414
|
+
<a name="M000163"></a>
|
1412
1415
|
|
1413
1416
|
<div class="method-heading">
|
1414
|
-
<a href="#
|
1417
|
+
<a href="#M000163" class="method-signature">
|
1415
1418
|
<span class="method-name">submit_changeset</span><span class="method-args">(rdf, versioned=false, graph_name=nil)</span>
|
1416
1419
|
</a>
|
1417
1420
|
</div>
|
@@ -1426,7 +1429,7 @@ using the optional parameters, changes can be made versioned, and can also
|
|
1426
1429
|
be submitted to private graphs.
|
1427
1430
|
</p>
|
1428
1431
|
<table>
|
1429
|
-
<tr><td valign="top">rdf:</td><td>the
|
1432
|
+
<tr><td valign="top">rdf:</td><td>the RDF/XML describing the changes
|
1430
1433
|
|
1431
1434
|
</td></tr>
|
1432
1435
|
<tr><td valign="top">versioned:</td><td>true or false to indicate this is a versioned change
|
@@ -1437,8 +1440,8 @@ be submitted to private graphs.
|
|
1437
1440
|
</td></tr>
|
1438
1441
|
</table>
|
1439
1442
|
<p><a class="source-toggle" href="#"
|
1440
|
-
onclick="toggleCode('
|
1441
|
-
<div class="method-source-code" id="
|
1443
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
1444
|
+
<div class="method-source-code" id="M000163-source">
|
1442
1445
|
<pre>
|
1443
1446
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 169</span>
|
1444
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>)
|
@@ -1458,11 +1461,11 @@ be submitted to private graphs.
|
|
1458
1461
|
</div>
|
1459
1462
|
</div>
|
1460
1463
|
|
1461
|
-
<div id="method-
|
1462
|
-
<a name="
|
1464
|
+
<div id="method-M000182" class="method-detail">
|
1465
|
+
<a name="M000182"></a>
|
1463
1466
|
|
1464
1467
|
<div class="method-heading">
|
1465
|
-
<a href="#
|
1468
|
+
<a href="#M000182" class="method-signature">
|
1466
1469
|
<span class="method-name">submit_job</span><span class="method-args">(data)</span>
|
1467
1470
|
</a>
|
1468
1471
|
</div>
|
@@ -1472,14 +1475,14 @@ be submitted to private graphs.
|
|
1472
1475
|
Submit a job to the platform.
|
1473
1476
|
</p>
|
1474
1477
|
<table>
|
1475
|
-
<tr><td valign="top">data:</td><td
|
1476
|
-
|
1478
|
+
<tr><td valign="top">data:</td><td>RDF/XML representing the job request. See methods on <a
|
1479
|
+
href="Jobs.html">Jobs</a> class
|
1477
1480
|
|
1478
1481
|
</td></tr>
|
1479
1482
|
</table>
|
1480
1483
|
<p><a class="source-toggle" href="#"
|
1481
|
-
onclick="toggleCode('
|
1482
|
-
<div class="method-source-code" id="
|
1484
|
+
onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
|
1485
|
+
<div class="method-source-code" id="M000182-source">
|
1483
1486
|
<pre>
|
1484
1487
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 419</span>
|
1485
1488
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_job</span>(<span class="ruby-identifier">data</span>)
|
@@ -1492,11 +1495,11 @@ Submit a job to the platform.
|
|
1492
1495
|
</div>
|
1493
1496
|
</div>
|
1494
1497
|
|
1495
|
-
<div id="method-
|
1496
|
-
<a name="
|
1498
|
+
<div id="method-M000177" class="method-detail">
|
1499
|
+
<a name="M000177"></a>
|
1497
1500
|
|
1498
1501
|
<div class="method-heading">
|
1499
|
-
<a href="#
|
1502
|
+
<a href="#M000177" class="method-signature">
|
1500
1503
|
<span class="method-name">upload_item</span><span class="method-args">(f, mimetype, uri=nil)</span>
|
1501
1504
|
</a>
|
1502
1505
|
</div>
|
@@ -1524,8 +1527,8 @@ stored item. If a URI is specified then a successful request will result in
|
|
1524
1527
|
a 200 OK response.
|
1525
1528
|
</p>
|
1526
1529
|
<p><a class="source-toggle" href="#"
|
1527
|
-
onclick="toggleCode('
|
1528
|
-
<div class="method-source-code" id="
|
1530
|
+
onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
|
1531
|
+
<div class="method-source-code" id="M000177-source">
|
1529
1532
|
<pre>
|
1530
1533
|
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 347</span>
|
1531
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>)
|