pho 0.5 → 0.6
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 +17 -0
- data/Rakefile +10 -2
- data/bin/talis_store +37 -92
- data/doc/rdoc/classes/Pho.html +11 -0
- data/doc/rdoc/classes/Pho/CommandLine.html +508 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +15 -15
- data/doc/rdoc/classes/Pho/Enrichment.html +1 -1
- data/doc/rdoc/classes/Pho/Enrichment/{ResourceEnricher.html → StoreEnricher.html} +158 -58
- 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 +94 -94
- data/doc/rdoc/classes/Pho/FieldWeighting.html +14 -14
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +126 -91
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +68 -62
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +22 -57
- data/doc/rdoc/classes/Pho/Job.html +68 -67
- data/doc/rdoc/classes/Pho/Jobs.html +62 -62
- data/doc/rdoc/classes/Pho/QueryProfile.html +64 -64
- data/doc/rdoc/classes/Pho/RDF.html +120 -0
- data/doc/rdoc/classes/Pho/RDF/Parser.html +277 -0
- data/doc/rdoc/classes/Pho/ResourceHash.html +1 -1
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +48 -46
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +15 -14
- data/doc/rdoc/classes/Pho/Snapshot.html +36 -36
- data/doc/rdoc/classes/Pho/Sparql.html +50 -0
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +147 -68
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +195 -114
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +271 -264
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +183 -0
- data/doc/rdoc/classes/Pho/Update.html +1 -0
- data/doc/rdoc/classes/Pho/Update/Changeset.html +69 -68
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Changesets.html +15 -14
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Statement.html +28 -27
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +53 -1
- data/doc/rdoc/files/lib/pho/changeset_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/command_line_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/converter_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/enrichment_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_management_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/sparql_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/store_rb.html +8 -1
- data/doc/rdoc/files/lib/pho_rb.html +4 -2
- data/doc/rdoc/fr_class_index.html +6 -1
- data/doc/rdoc/fr_file_index.html +2 -0
- data/doc/rdoc/fr_method_index.html +192 -172
- data/examples/calais/bio.txt +7 -0
- data/examples/calais/dump.rb +17 -0
- data/examples/calais/enlighten.rb +23 -0
- data/examples/calais/output.rdf +25 -0
- data/examples/sinatra/viewer.rb +20 -0
- data/lib/pho.rb +4 -1
- data/lib/pho/changeset.rb +17 -1
- data/lib/pho/command_line.rb +166 -0
- data/lib/pho/converter.rb +8 -3
- data/lib/pho/enrichment.rb +93 -28
- data/lib/pho/file_management.rb +32 -19
- data/lib/pho/file_manager.rb +22 -26
- data/lib/pho/rdf.rb +74 -0
- data/lib/pho/rdf_collection.rb +2 -17
- data/lib/pho/sparql.rb +150 -38
- data/lib/pho/store.rb +28 -2
- data/tests/tc_contentbox.rb +41 -0
- data/tests/tc_enrichment.rb +41 -4
- data/tests/tc_file_manager.rb +97 -7
- data/tests/tc_rdf_collection.rb +25 -13
- data/tests/tc_rdf_parser.rb +37 -0
- data/tests/tc_sparql.rb +72 -2
- data/tests/tc_sparql_helper.rb +16 -0
- data/tests/ts_pho.rb +2 -1
- metadata +20 -3
|
@@ -92,16 +92,16 @@ TODO job deletion
|
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
|
93
93
|
|
|
94
94
|
<div class="name-list">
|
|
95
|
-
<a href="#
|
|
96
|
-
<a href="#
|
|
97
|
-
<a href="#
|
|
98
|
-
<a href="#
|
|
99
|
-
<a href="#
|
|
100
|
-
<a href="#
|
|
101
|
-
<a href="#
|
|
102
|
-
<a href="#
|
|
103
|
-
<a href="#
|
|
104
|
-
<a href="#
|
|
95
|
+
<a href="#M000134">build_job_request</a>
|
|
96
|
+
<a href="#M000128">read_from_store</a>
|
|
97
|
+
<a href="#M000133">submit_job</a>
|
|
98
|
+
<a href="#M000130">submit_reindex</a>
|
|
99
|
+
<a href="#M000129">submit_reset</a>
|
|
100
|
+
<a href="#M000132">submit_restore</a>
|
|
101
|
+
<a href="#M000131">submit_snapshot</a>
|
|
102
|
+
<a href="#M000136">wait_for</a>
|
|
103
|
+
<a href="#M000135">wait_for_submitted</a>
|
|
104
|
+
<a href="#M000137">yield_job_update</a>
|
|
105
105
|
</div>
|
|
106
106
|
</div>
|
|
107
107
|
|
|
@@ -151,19 +151,19 @@ TODO job deletion
|
|
|
151
151
|
<div id="methods">
|
|
152
152
|
<h3 class="section-bar">Public Class methods</h3>
|
|
153
153
|
|
|
154
|
-
<div id="method-
|
|
155
|
-
<a name="
|
|
154
|
+
<div id="method-M000134" class="method-detail">
|
|
155
|
+
<a name="M000134"></a>
|
|
156
156
|
|
|
157
157
|
<div class="method-heading">
|
|
158
|
-
<a href="#
|
|
158
|
+
<a href="#M000134" class="method-signature">
|
|
159
159
|
<span class="method-name">build_job_request</span><span class="method-args">(type, label, t=Time.now, snapshot_uri=nil)</span>
|
|
160
160
|
</a>
|
|
161
161
|
</div>
|
|
162
162
|
|
|
163
163
|
<div class="method-description">
|
|
164
164
|
<p>
|
|
165
|
-
Construct an RDF
|
|
166
|
-
the Platform.
|
|
165
|
+
Construct an <a href="RDF.html">RDF</a>/XML document containing a job
|
|
166
|
+
request for submitting to the Platform.
|
|
167
167
|
</p>
|
|
168
168
|
<table>
|
|
169
169
|
<tr><td valign="top">t:</td><td>a Time object, specifying the time at which the request should be carried
|
|
@@ -172,8 +172,8 @@ out
|
|
|
172
172
|
</td></tr>
|
|
173
173
|
</table>
|
|
174
174
|
<p><a class="source-toggle" href="#"
|
|
175
|
-
onclick="toggleCode('
|
|
176
|
-
<div class="method-source-code" id="
|
|
175
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
|
176
|
+
<div class="method-source-code" id="M000134-source">
|
|
177
177
|
<pre>
|
|
178
178
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 79</span>
|
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">build_job_request</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>, <span class="ruby-identifier">snapshot_uri</span>=<span class="ruby-keyword kw">nil</span>)
|
|
@@ -200,11 +200,11 @@ out
|
|
|
200
200
|
</div>
|
|
201
201
|
</div>
|
|
202
202
|
|
|
203
|
-
<div id="method-
|
|
204
|
-
<a name="
|
|
203
|
+
<div id="method-M000128" class="method-detail">
|
|
204
|
+
<a name="M000128"></a>
|
|
205
205
|
|
|
206
206
|
<div class="method-heading">
|
|
207
|
-
<a href="#
|
|
207
|
+
<a href="#M000128" class="method-signature">
|
|
208
208
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
|
209
209
|
</a>
|
|
210
210
|
</div>
|
|
@@ -218,8 +218,8 @@ an array of job names
|
|
|
218
218
|
store:: store from which to read the scheduled job list
|
|
219
219
|
</pre>
|
|
220
220
|
<p><a class="source-toggle" href="#"
|
|
221
|
-
onclick="toggleCode('
|
|
222
|
-
<div class="method-source-code" id="
|
|
221
|
+
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
|
222
|
+
<div class="method-source-code" id="M000128-source">
|
|
223
223
|
<pre>
|
|
224
224
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 16</span>
|
|
225
225
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
|
@@ -241,11 +241,11 @@ an array of job names
|
|
|
241
241
|
</div>
|
|
242
242
|
</div>
|
|
243
243
|
|
|
244
|
-
<div id="method-
|
|
245
|
-
<a name="
|
|
244
|
+
<div id="method-M000133" class="method-detail">
|
|
245
|
+
<a name="M000133"></a>
|
|
246
246
|
|
|
247
247
|
<div class="method-heading">
|
|
248
|
-
<a href="#
|
|
248
|
+
<a href="#M000133" class="method-signature">
|
|
249
249
|
<span class="method-name">submit_job</span><span class="method-args">(store, jobtype, label, t=Time.now, snapshot_uri=nil)</span>
|
|
250
250
|
</a>
|
|
251
251
|
</div>
|
|
@@ -255,8 +255,8 @@ an array of job names
|
|
|
255
255
|
Generic submit job method
|
|
256
256
|
</p>
|
|
257
257
|
<p><a class="source-toggle" href="#"
|
|
258
|
-
onclick="toggleCode('
|
|
259
|
-
<div class="method-source-code" id="
|
|
258
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
|
259
|
+
<div class="method-source-code" id="M000133-source">
|
|
260
260
|
<pre>
|
|
261
261
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 72</span>
|
|
262
262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_job</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">jobtype</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>, <span class="ruby-identifier">snapshot_uri</span>=<span class="ruby-keyword kw">nil</span>)
|
|
@@ -267,11 +267,11 @@ Generic submit job method
|
|
|
267
267
|
</div>
|
|
268
268
|
</div>
|
|
269
269
|
|
|
270
|
-
<div id="method-
|
|
271
|
-
<a name="
|
|
270
|
+
<div id="method-M000130" class="method-detail">
|
|
271
|
+
<a name="M000130"></a>
|
|
272
272
|
|
|
273
273
|
<div class="method-heading">
|
|
274
|
-
<a href="#
|
|
274
|
+
<a href="#M000130" class="method-signature">
|
|
275
275
|
<span class="method-name">submit_reindex</span><span class="method-args">(store, label="Reindex my store", t=Time.now)</span>
|
|
276
276
|
</a>
|
|
277
277
|
</div>
|
|
@@ -288,8 +288,8 @@ the newly created job and then monitor the jobs status if they need to wait
|
|
|
288
288
|
for the job to finish.
|
|
289
289
|
</p>
|
|
290
290
|
<p><a class="source-toggle" href="#"
|
|
291
|
-
onclick="toggleCode('
|
|
292
|
-
<div class="method-source-code" id="
|
|
291
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
|
292
|
+
<div class="method-source-code" id="M000130-source">
|
|
293
293
|
<pre>
|
|
294
294
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 47</span>
|
|
295
295
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_reindex</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">"Reindex my store"</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
|
|
@@ -300,11 +300,11 @@ for the job to finish.
|
|
|
300
300
|
</div>
|
|
301
301
|
</div>
|
|
302
302
|
|
|
303
|
-
<div id="method-
|
|
304
|
-
<a name="
|
|
303
|
+
<div id="method-M000129" class="method-detail">
|
|
304
|
+
<a name="M000129"></a>
|
|
305
305
|
|
|
306
306
|
<div class="method-heading">
|
|
307
|
-
<a href="#
|
|
307
|
+
<a href="#M000129" class="method-signature">
|
|
308
308
|
<span class="method-name">submit_reset</span><span class="method-args">(store, label="Reset my store", t=Time.now)</span>
|
|
309
309
|
</a>
|
|
310
310
|
</div>
|
|
@@ -321,8 +321,8 @@ the newly created job and then monitor the jobs status if they need to wait
|
|
|
321
321
|
for the job to finish.
|
|
322
322
|
</p>
|
|
323
323
|
<p><a class="source-toggle" href="#"
|
|
324
|
-
onclick="toggleCode('
|
|
325
|
-
<div class="method-source-code" id="
|
|
324
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
|
325
|
+
<div class="method-source-code" id="M000129-source">
|
|
326
326
|
<pre>
|
|
327
327
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 37</span>
|
|
328
328
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_reset</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">"Reset my store"</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
|
|
@@ -333,11 +333,11 @@ for the job to finish.
|
|
|
333
333
|
</div>
|
|
334
334
|
</div>
|
|
335
335
|
|
|
336
|
-
<div id="method-
|
|
337
|
-
<a name="
|
|
336
|
+
<div id="method-M000132" class="method-detail">
|
|
337
|
+
<a name="M000132"></a>
|
|
338
338
|
|
|
339
339
|
<div class="method-heading">
|
|
340
|
-
<a href="#
|
|
340
|
+
<a href="#M000132" class="method-signature">
|
|
341
341
|
<span class="method-name">submit_restore</span><span class="method-args">(store, snapshot_uri, label="Restore my snapshot", t=Time.now)</span>
|
|
342
342
|
</a>
|
|
343
343
|
</div>
|
|
@@ -354,8 +354,8 @@ the newly created job and then monitor the jobs status if they need to wait
|
|
|
354
354
|
for the job to finish.
|
|
355
355
|
</p>
|
|
356
356
|
<p><a class="source-toggle" href="#"
|
|
357
|
-
onclick="toggleCode('
|
|
358
|
-
<div class="method-source-code" id="
|
|
357
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
|
358
|
+
<div class="method-source-code" id="M000132-source">
|
|
359
359
|
<pre>
|
|
360
360
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 67</span>
|
|
361
361
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_restore</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">snapshot_uri</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">"Restore my snapshot"</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
|
|
@@ -366,11 +366,11 @@ for the job to finish.
|
|
|
366
366
|
</div>
|
|
367
367
|
</div>
|
|
368
368
|
|
|
369
|
-
<div id="method-
|
|
370
|
-
<a name="
|
|
369
|
+
<div id="method-M000131" class="method-detail">
|
|
370
|
+
<a name="M000131"></a>
|
|
371
371
|
|
|
372
372
|
<div class="method-heading">
|
|
373
|
-
<a href="#
|
|
373
|
+
<a href="#M000131" class="method-signature">
|
|
374
374
|
<span class="method-name">submit_snapshot</span><span class="method-args">(store, label="Snapshot my store", t=Time.now)</span>
|
|
375
375
|
</a>
|
|
376
376
|
</div>
|
|
@@ -387,8 +387,8 @@ the newly created job and then monitor the jobs status if they need to wait
|
|
|
387
387
|
for the job to finish.
|
|
388
388
|
</p>
|
|
389
389
|
<p><a class="source-toggle" href="#"
|
|
390
|
-
onclick="toggleCode('
|
|
391
|
-
<div class="method-source-code" id="
|
|
390
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
|
391
|
+
<div class="method-source-code" id="M000131-source">
|
|
392
392
|
<pre>
|
|
393
393
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 57</span>
|
|
394
394
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">submit_snapshot</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">label</span>=<span class="ruby-value str">"Snapshot my store"</span>, <span class="ruby-identifier">t</span>=<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>)
|
|
@@ -399,11 +399,11 @@ for the job to finish.
|
|
|
399
399
|
</div>
|
|
400
400
|
</div>
|
|
401
401
|
|
|
402
|
-
<div id="method-
|
|
403
|
-
<a name="
|
|
402
|
+
<div id="method-M000136" class="method-detail">
|
|
403
|
+
<a name="M000136"></a>
|
|
404
404
|
|
|
405
405
|
<div class="method-heading">
|
|
406
|
-
<a href="#
|
|
406
|
+
<a href="#M000136" class="method-signature">
|
|
407
407
|
<span class="method-name">wait_for</span><span class="method-args">(uri, store, interval=1, &block)</span>
|
|
408
408
|
</a>
|
|
409
409
|
</div>
|
|
@@ -426,8 +426,8 @@ returned once completed.
|
|
|
426
426
|
interval:: the interval at which checks will be made, in minutes. Default is 1
|
|
427
427
|
</pre>
|
|
428
428
|
<p><a class="source-toggle" href="#"
|
|
429
|
-
onclick="toggleCode('
|
|
430
|
-
<div class="method-source-code" id="
|
|
429
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
|
430
|
+
<div class="method-source-code" id="M000136-source">
|
|
431
431
|
<pre>
|
|
432
432
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 118</span>
|
|
433
433
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">wait_for</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">interval</span>=<span class="ruby-value">1</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
@@ -446,11 +446,11 @@ returned once completed.
|
|
|
446
446
|
</div>
|
|
447
447
|
</div>
|
|
448
448
|
|
|
449
|
-
<div id="method-
|
|
450
|
-
<a name="
|
|
449
|
+
<div id="method-M000135" class="method-detail">
|
|
450
|
+
<a name="M000135"></a>
|
|
451
451
|
|
|
452
452
|
<div class="method-heading">
|
|
453
|
-
<a href="#
|
|
453
|
+
<a href="#M000135" class="method-signature">
|
|
454
454
|
<span class="method-name">wait_for_submitted</span><span class="method-args">(resp, store, interval=1, &block)</span>
|
|
455
455
|
</a>
|
|
456
456
|
</div>
|
|
@@ -460,8 +460,8 @@ returned once completed.
|
|
|
460
460
|
Wait for a newly submitted job to finish
|
|
461
461
|
</p>
|
|
462
462
|
<p><a class="source-toggle" href="#"
|
|
463
|
-
onclick="toggleCode('
|
|
464
|
-
<div class="method-source-code" id="
|
|
463
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
|
464
|
+
<div class="method-source-code" id="M000135-source">
|
|
465
465
|
<pre>
|
|
466
466
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 100</span>
|
|
467
467
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">wait_for_submitted</span>(<span class="ruby-identifier">resp</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">interval</span>=<span class="ruby-value">1</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
@@ -478,19 +478,19 @@ Wait for a newly submitted job to finish
|
|
|
478
478
|
|
|
479
479
|
<h3 class="section-bar">Protected Class methods</h3>
|
|
480
480
|
|
|
481
|
-
<div id="method-
|
|
482
|
-
<a name="
|
|
481
|
+
<div id="method-M000137" class="method-detail">
|
|
482
|
+
<a name="M000137"></a>
|
|
483
483
|
|
|
484
484
|
<div class="method-heading">
|
|
485
|
-
<a href="#
|
|
485
|
+
<a href="#M000137" class="method-signature">
|
|
486
486
|
<span class="method-name">yield_job_update</span><span class="method-args">(job, updates) {|job, job.start_message, job.actual_start_time| ...}</span>
|
|
487
487
|
</a>
|
|
488
488
|
</div>
|
|
489
489
|
|
|
490
490
|
<div class="method-description">
|
|
491
491
|
<p><a class="source-toggle" href="#"
|
|
492
|
-
onclick="toggleCode('
|
|
493
|
-
<div class="method-source-code" id="
|
|
492
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
|
493
|
+
<div class="method-source-code" id="M000137-source">
|
|
494
494
|
<pre>
|
|
495
495
|
<span class="ruby-comment cmt"># File lib/pho/job.rb, line 132</span>
|
|
496
496
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Jobs</span>.<span class="ruby-identifier">yield_job_update</span>(<span class="ruby-identifier">job</span>, <span class="ruby-identifier">updates</span>)
|
|
@@ -98,16 +98,16 @@ href="Store.html">Store</a> methods.
|
|
|
98
98
|
<h3 class="section-bar">Methods</h3>
|
|
99
99
|
|
|
100
100
|
<div class="name-list">
|
|
101
|
-
<a href="#
|
|
102
|
-
<a href="#
|
|
103
|
-
<a href="#
|
|
104
|
-
<a href="#
|
|
105
|
-
<a href="#
|
|
106
|
-
<a href="#
|
|
107
|
-
<a href="#
|
|
108
|
-
<a href="#
|
|
109
|
-
<a href="#
|
|
110
|
-
<a href="#
|
|
101
|
+
<a href="#M000121"><<</a>
|
|
102
|
+
<a href="#M000119">create_weighting</a>
|
|
103
|
+
<a href="#M000122">get_by_name</a>
|
|
104
|
+
<a href="#M000125">mapped_name?</a>
|
|
105
|
+
<a href="#M000120">new</a>
|
|
106
|
+
<a href="#M000118">read_from_store</a>
|
|
107
|
+
<a href="#M000124">remove</a>
|
|
108
|
+
<a href="#M000123">remove_by_name</a>
|
|
109
|
+
<a href="#M000126">to_rdf</a>
|
|
110
|
+
<a href="#M000127">upload</a>
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
113
113
|
|
|
@@ -161,11 +161,11 @@ URI for this resource
|
|
|
161
161
|
<div id="methods">
|
|
162
162
|
<h3 class="section-bar">Public Class methods</h3>
|
|
163
163
|
|
|
164
|
-
<div id="method-
|
|
165
|
-
<a name="
|
|
164
|
+
<div id="method-M000119" class="method-detail">
|
|
165
|
+
<a name="M000119"></a>
|
|
166
166
|
|
|
167
167
|
<div class="method-heading">
|
|
168
|
-
<a href="#
|
|
168
|
+
<a href="#M000119" class="method-signature">
|
|
169
169
|
<span class="method-name">create_weighting</span><span class="method-args">(store, name, weight)</span>
|
|
170
170
|
</a>
|
|
171
171
|
</div>
|
|
@@ -188,8 +188,8 @@ according to the Platform naming rules
|
|
|
188
188
|
</td></tr>
|
|
189
189
|
</table>
|
|
190
190
|
<p><a class="source-toggle" href="#"
|
|
191
|
-
onclick="toggleCode('
|
|
192
|
-
<div class="method-source-code" id="
|
|
191
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
|
192
|
+
<div class="method-source-code" id="M000119-source">
|
|
193
193
|
<pre>
|
|
194
194
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 84</span>
|
|
195
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">QueryProfile</span>.<span class="ruby-identifier">create_weighting</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">weight</span>)
|
|
@@ -206,19 +206,19 @@ according to the Platform naming rules
|
|
|
206
206
|
</div>
|
|
207
207
|
</div>
|
|
208
208
|
|
|
209
|
-
<div id="method-
|
|
210
|
-
<a name="
|
|
209
|
+
<div id="method-M000120" class="method-detail">
|
|
210
|
+
<a name="M000120"></a>
|
|
211
211
|
|
|
212
212
|
<div class="method-heading">
|
|
213
|
-
<a href="#
|
|
213
|
+
<a href="#M000120" class="method-signature">
|
|
214
214
|
<span class="method-name">new</span><span class="method-args">(uri, label, field_weights=Array.new)</span>
|
|
215
215
|
</a>
|
|
216
216
|
</div>
|
|
217
217
|
|
|
218
218
|
<div class="method-description">
|
|
219
219
|
<p><a class="source-toggle" href="#"
|
|
220
|
-
onclick="toggleCode('
|
|
221
|
-
<div class="method-source-code" id="
|
|
220
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
|
221
|
+
<div class="method-source-code" id="M000120-source">
|
|
222
222
|
<pre>
|
|
223
223
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 94</span>
|
|
224
224
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">field_weights</span>=<span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>)
|
|
@@ -231,19 +231,19 @@ according to the Platform naming rules
|
|
|
231
231
|
</div>
|
|
232
232
|
</div>
|
|
233
233
|
|
|
234
|
-
<div id="method-
|
|
235
|
-
<a name="
|
|
234
|
+
<div id="method-M000118" class="method-detail">
|
|
235
|
+
<a name="M000118"></a>
|
|
236
236
|
|
|
237
237
|
<div class="method-heading">
|
|
238
|
-
<a href="#
|
|
238
|
+
<a href="#M000118" class="method-signature">
|
|
239
239
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
|
240
240
|
</a>
|
|
241
241
|
</div>
|
|
242
242
|
|
|
243
243
|
<div class="method-description">
|
|
244
244
|
<p><a class="source-toggle" href="#"
|
|
245
|
-
onclick="toggleCode('
|
|
246
|
-
<div class="method-source-code" id="
|
|
245
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
|
246
|
+
<div class="method-source-code" id="M000118-source">
|
|
247
247
|
<pre>
|
|
248
248
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 53</span>
|
|
249
249
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">QueryProfile</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
|
@@ -277,19 +277,19 @@ according to the Platform naming rules
|
|
|
277
277
|
|
|
278
278
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
279
279
|
|
|
280
|
-
<div id="method-
|
|
281
|
-
<a name="
|
|
280
|
+
<div id="method-M000121" class="method-detail">
|
|
281
|
+
<a name="M000121"></a>
|
|
282
282
|
|
|
283
283
|
<div class="method-heading">
|
|
284
|
-
<a href="#
|
|
284
|
+
<a href="#M000121" class="method-signature">
|
|
285
285
|
<span class="method-name"><<</span><span class="method-args">(weight)</span>
|
|
286
286
|
</a>
|
|
287
287
|
</div>
|
|
288
288
|
|
|
289
289
|
<div class="method-description">
|
|
290
290
|
<p><a class="source-toggle" href="#"
|
|
291
|
-
onclick="toggleCode('
|
|
292
|
-
<div class="method-source-code" id="
|
|
291
|
+
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
|
292
|
+
<div class="method-source-code" id="M000121-source">
|
|
293
293
|
<pre>
|
|
294
294
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 100</span>
|
|
295
295
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">weight</span>)
|
|
@@ -300,11 +300,11 @@ according to the Platform naming rules
|
|
|
300
300
|
</div>
|
|
301
301
|
</div>
|
|
302
302
|
|
|
303
|
-
<div id="method-
|
|
304
|
-
<a name="
|
|
303
|
+
<div id="method-M000122" class="method-detail">
|
|
304
|
+
<a name="M000122"></a>
|
|
305
305
|
|
|
306
306
|
<div class="method-heading">
|
|
307
|
-
<a href="#
|
|
307
|
+
<a href="#M000122" class="method-signature">
|
|
308
308
|
<span class="method-name">get_by_name</span><span class="method-args">(name)</span>
|
|
309
309
|
</a>
|
|
310
310
|
</div>
|
|
@@ -314,8 +314,8 @@ according to the Platform naming rules
|
|
|
314
314
|
Retrieve a FieldWeighing by name
|
|
315
315
|
</p>
|
|
316
316
|
<p><a class="source-toggle" href="#"
|
|
317
|
-
onclick="toggleCode('
|
|
318
|
-
<div class="method-source-code" id="
|
|
317
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
|
318
|
+
<div class="method-source-code" id="M000122-source">
|
|
319
319
|
<pre>
|
|
320
320
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 105</span>
|
|
321
321
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_by_name</span>(<span class="ruby-identifier">name</span>)
|
|
@@ -326,11 +326,11 @@ Retrieve a FieldWeighing by name
|
|
|
326
326
|
</div>
|
|
327
327
|
</div>
|
|
328
328
|
|
|
329
|
-
<div id="method-
|
|
330
|
-
<a name="
|
|
329
|
+
<div id="method-M000125" class="method-detail">
|
|
330
|
+
<a name="M000125"></a>
|
|
331
331
|
|
|
332
332
|
<div class="method-heading">
|
|
333
|
-
<a href="#
|
|
333
|
+
<a href="#M000125" class="method-signature">
|
|
334
334
|
<span class="method-name">mapped_name?</span><span class="method-args">(name)</span>
|
|
335
335
|
</a>
|
|
336
336
|
</div>
|
|
@@ -340,8 +340,8 @@ Retrieve a FieldWeighing by name
|
|
|
340
340
|
Is there a field weighting for a property with this name?
|
|
341
341
|
</p>
|
|
342
342
|
<p><a class="source-toggle" href="#"
|
|
343
|
-
onclick="toggleCode('
|
|
344
|
-
<div class="method-source-code" id="
|
|
343
|
+
onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
|
|
344
|
+
<div class="method-source-code" id="M000125-source">
|
|
345
345
|
<pre>
|
|
346
346
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 123</span>
|
|
347
347
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapped_name?</span>(<span class="ruby-identifier">name</span>)
|
|
@@ -352,11 +352,11 @@ Is there a field weighting for a property with this name?
|
|
|
352
352
|
</div>
|
|
353
353
|
</div>
|
|
354
354
|
|
|
355
|
-
<div id="method-
|
|
356
|
-
<a name="
|
|
355
|
+
<div id="method-M000124" class="method-detail">
|
|
356
|
+
<a name="M000124"></a>
|
|
357
357
|
|
|
358
358
|
<div class="method-heading">
|
|
359
|
-
<a href="#
|
|
359
|
+
<a href="#M000124" class="method-signature">
|
|
360
360
|
<span class="method-name">remove</span><span class="method-args">(fw)</span>
|
|
361
361
|
</a>
|
|
362
362
|
</div>
|
|
@@ -367,8 +367,8 @@ Remove a <a href="FieldWeighting.html">FieldWeighting</a> from the
|
|
|
367
367
|
collection
|
|
368
368
|
</p>
|
|
369
369
|
<p><a class="source-toggle" href="#"
|
|
370
|
-
onclick="toggleCode('
|
|
371
|
-
<div class="method-source-code" id="
|
|
370
|
+
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
|
371
|
+
<div class="method-source-code" id="M000124-source">
|
|
372
372
|
<pre>
|
|
373
373
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 118</span>
|
|
374
374
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">fw</span>)
|
|
@@ -379,11 +379,11 @@ collection
|
|
|
379
379
|
</div>
|
|
380
380
|
</div>
|
|
381
381
|
|
|
382
|
-
<div id="method-
|
|
383
|
-
<a name="
|
|
382
|
+
<div id="method-M000123" class="method-detail">
|
|
383
|
+
<a name="M000123"></a>
|
|
384
384
|
|
|
385
385
|
<div class="method-heading">
|
|
386
|
-
<a href="#
|
|
386
|
+
<a href="#M000123" class="method-signature">
|
|
387
387
|
<span class="method-name">remove_by_name</span><span class="method-args">(name)</span>
|
|
388
388
|
</a>
|
|
389
389
|
</div>
|
|
@@ -393,8 +393,8 @@ collection
|
|
|
393
393
|
Remove a <a href="FieldWeighting.html">FieldWeighting</a> by name
|
|
394
394
|
</p>
|
|
395
395
|
<p><a class="source-toggle" href="#"
|
|
396
|
-
onclick="toggleCode('
|
|
397
|
-
<div class="method-source-code" id="
|
|
396
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
|
397
|
+
<div class="method-source-code" id="M000123-source">
|
|
398
398
|
<pre>
|
|
399
399
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 110</span>
|
|
400
400
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_by_name</span>(<span class="ruby-identifier">name</span>)
|
|
@@ -408,23 +408,23 @@ Remove a <a href="FieldWeighting.html">FieldWeighting</a> by name
|
|
|
408
408
|
</div>
|
|
409
409
|
</div>
|
|
410
410
|
|
|
411
|
-
<div id="method-
|
|
412
|
-
<a name="
|
|
411
|
+
<div id="method-M000126" class="method-detail">
|
|
412
|
+
<a name="M000126"></a>
|
|
413
413
|
|
|
414
414
|
<div class="method-heading">
|
|
415
|
-
<a href="#
|
|
415
|
+
<a href="#M000126" class="method-signature">
|
|
416
416
|
<span class="method-name">to_rdf</span><span class="method-args">()</span>
|
|
417
417
|
</a>
|
|
418
418
|
</div>
|
|
419
419
|
|
|
420
420
|
<div class="method-description">
|
|
421
421
|
<p>
|
|
422
|
-
Dump this object to an RDF
|
|
423
|
-
the Platform
|
|
422
|
+
Dump this object to an <a href="RDF.html">RDF</a>/XML representation
|
|
423
|
+
suitable for submitting to the Platform
|
|
424
424
|
</p>
|
|
425
425
|
<p><a class="source-toggle" href="#"
|
|
426
|
-
onclick="toggleCode('
|
|
427
|
-
<div class="method-source-code" id="
|
|
426
|
+
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
|
427
|
+
<div class="method-source-code" id="M000126-source">
|
|
428
428
|
<pre>
|
|
429
429
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 128</span>
|
|
430
430
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>
|
|
@@ -455,23 +455,23 @@ the Platform
|
|
|
455
455
|
</div>
|
|
456
456
|
</div>
|
|
457
457
|
|
|
458
|
-
<div id="method-
|
|
459
|
-
<a name="
|
|
458
|
+
<div id="method-M000127" class="method-detail">
|
|
459
|
+
<a name="M000127"></a>
|
|
460
460
|
|
|
461
461
|
<div class="method-heading">
|
|
462
|
-
<a href="#
|
|
462
|
+
<a href="#M000127" class="method-signature">
|
|
463
463
|
<span class="method-name">upload</span><span class="method-args">(store)</span>
|
|
464
464
|
</a>
|
|
465
465
|
</div>
|
|
466
466
|
|
|
467
467
|
<div class="method-description">
|
|
468
468
|
<p>
|
|
469
|
-
Upload an RDF
|
|
470
|
-
href="Store.html">Store</a>
|
|
469
|
+
Upload an <a href="RDF.html">RDF</a>/XML presentation of this object to the
|
|
470
|
+
provided Platform <a href="Store.html">Store</a>
|
|
471
471
|
</p>
|
|
472
472
|
<p><a class="source-toggle" href="#"
|
|
473
|
-
onclick="toggleCode('
|
|
474
|
-
<div class="method-source-code" id="
|
|
473
|
+
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
|
474
|
+
<div class="method-source-code" id="M000127-source">
|
|
475
475
|
<pre>
|
|
476
476
|
<span class="ruby-comment cmt"># File lib/pho/query_profile.rb, line 153</span>
|
|
477
477
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload</span>(<span class="ruby-identifier">store</span>)
|