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.
Files changed (80) hide show
  1. data/CHANGES +17 -0
  2. data/Rakefile +10 -2
  3. data/bin/talis_store +37 -92
  4. data/doc/rdoc/classes/Pho.html +11 -0
  5. data/doc/rdoc/classes/Pho/CommandLine.html +508 -0
  6. data/doc/rdoc/classes/Pho/DatatypeProperty.html +15 -15
  7. data/doc/rdoc/classes/Pho/Enrichment.html +1 -1
  8. data/doc/rdoc/classes/Pho/Enrichment/{ResourceEnricher.html → StoreEnricher.html} +158 -58
  9. data/doc/rdoc/classes/Pho/Etags.html +36 -36
  10. data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
  11. data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
  12. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +94 -94
  13. data/doc/rdoc/classes/Pho/FieldWeighting.html +14 -14
  14. data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +126 -91
  15. data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +68 -62
  16. data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +22 -57
  17. data/doc/rdoc/classes/Pho/Job.html +68 -67
  18. data/doc/rdoc/classes/Pho/Jobs.html +62 -62
  19. data/doc/rdoc/classes/Pho/QueryProfile.html +64 -64
  20. data/doc/rdoc/classes/Pho/RDF.html +120 -0
  21. data/doc/rdoc/classes/Pho/RDF/Parser.html +277 -0
  22. data/doc/rdoc/classes/Pho/ResourceHash.html +1 -1
  23. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +48 -46
  24. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +15 -14
  25. data/doc/rdoc/classes/Pho/Snapshot.html +36 -36
  26. data/doc/rdoc/classes/Pho/Sparql.html +50 -0
  27. data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +147 -68
  28. data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +195 -114
  29. data/doc/rdoc/classes/Pho/Status.html +26 -26
  30. data/doc/rdoc/classes/Pho/Store.html +271 -264
  31. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +183 -0
  32. data/doc/rdoc/classes/Pho/Update.html +1 -0
  33. data/doc/rdoc/classes/Pho/Update/Changeset.html +69 -68
  34. data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
  35. data/doc/rdoc/classes/Pho/Update/Changesets.html +15 -14
  36. data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
  37. data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
  38. data/doc/rdoc/classes/Pho/Update/Statement.html +28 -27
  39. data/doc/rdoc/classes/String.html +1 -1
  40. data/doc/rdoc/created.rid +1 -1
  41. data/doc/rdoc/files/CHANGES.html +53 -1
  42. data/doc/rdoc/files/lib/pho/changeset_rb.html +1 -1
  43. data/doc/rdoc/files/lib/pho/command_line_rb.html +101 -0
  44. data/doc/rdoc/files/lib/pho/converter_rb.html +1 -1
  45. data/doc/rdoc/files/lib/pho/enrichment_rb.html +1 -1
  46. data/doc/rdoc/files/lib/pho/file_management_rb.html +1 -1
  47. data/doc/rdoc/files/lib/pho/file_manager_rb.html +1 -1
  48. data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
  49. data/doc/rdoc/files/lib/pho/rdf_rb.html +108 -0
  50. data/doc/rdoc/files/lib/pho/sparql_rb.html +1 -1
  51. data/doc/rdoc/files/lib/pho/store_rb.html +8 -1
  52. data/doc/rdoc/files/lib/pho_rb.html +4 -2
  53. data/doc/rdoc/fr_class_index.html +6 -1
  54. data/doc/rdoc/fr_file_index.html +2 -0
  55. data/doc/rdoc/fr_method_index.html +192 -172
  56. data/examples/calais/bio.txt +7 -0
  57. data/examples/calais/dump.rb +17 -0
  58. data/examples/calais/enlighten.rb +23 -0
  59. data/examples/calais/output.rdf +25 -0
  60. data/examples/sinatra/viewer.rb +20 -0
  61. data/lib/pho.rb +4 -1
  62. data/lib/pho/changeset.rb +17 -1
  63. data/lib/pho/command_line.rb +166 -0
  64. data/lib/pho/converter.rb +8 -3
  65. data/lib/pho/enrichment.rb +93 -28
  66. data/lib/pho/file_management.rb +32 -19
  67. data/lib/pho/file_manager.rb +22 -26
  68. data/lib/pho/rdf.rb +74 -0
  69. data/lib/pho/rdf_collection.rb +2 -17
  70. data/lib/pho/sparql.rb +150 -38
  71. data/lib/pho/store.rb +28 -2
  72. data/tests/tc_contentbox.rb +41 -0
  73. data/tests/tc_enrichment.rb +41 -4
  74. data/tests/tc_file_manager.rb +97 -7
  75. data/tests/tc_rdf_collection.rb +25 -13
  76. data/tests/tc_rdf_parser.rb +37 -0
  77. data/tests/tc_sparql.rb +72 -2
  78. data/tests/tc_sparql_helper.rb +16 -0
  79. data/tests/ts_pho.rb +2 -1
  80. 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="#M000116">build_job_request</a>&nbsp;&nbsp;
96
- <a href="#M000110">read_from_store</a>&nbsp;&nbsp;
97
- <a href="#M000115">submit_job</a>&nbsp;&nbsp;
98
- <a href="#M000112">submit_reindex</a>&nbsp;&nbsp;
99
- <a href="#M000111">submit_reset</a>&nbsp;&nbsp;
100
- <a href="#M000114">submit_restore</a>&nbsp;&nbsp;
101
- <a href="#M000113">submit_snapshot</a>&nbsp;&nbsp;
102
- <a href="#M000118">wait_for</a>&nbsp;&nbsp;
103
- <a href="#M000117">wait_for_submitted</a>&nbsp;&nbsp;
104
- <a href="#M000119">yield_job_update</a>&nbsp;&nbsp;
95
+ <a href="#M000134">build_job_request</a>&nbsp;&nbsp;
96
+ <a href="#M000128">read_from_store</a>&nbsp;&nbsp;
97
+ <a href="#M000133">submit_job</a>&nbsp;&nbsp;
98
+ <a href="#M000130">submit_reindex</a>&nbsp;&nbsp;
99
+ <a href="#M000129">submit_reset</a>&nbsp;&nbsp;
100
+ <a href="#M000132">submit_restore</a>&nbsp;&nbsp;
101
+ <a href="#M000131">submit_snapshot</a>&nbsp;&nbsp;
102
+ <a href="#M000136">wait_for</a>&nbsp;&nbsp;
103
+ <a href="#M000135">wait_for_submitted</a>&nbsp;&nbsp;
104
+ <a href="#M000137">yield_job_update</a>&nbsp;&nbsp;
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-M000116" class="method-detail">
155
- <a name="M000116"></a>
154
+ <div id="method-M000134" class="method-detail">
155
+ <a name="M000134"></a>
156
156
 
157
157
  <div class="method-heading">
158
- <a href="#M000116" class="method-signature">
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/XML document containing a job request for submitting to
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('M000116-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000116-source">
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-M000110" class="method-detail">
204
- <a name="M000110"></a>
203
+ <div id="method-M000128" class="method-detail">
204
+ <a name="M000128"></a>
205
205
 
206
206
  <div class="method-heading">
207
- <a href="#M000110" class="method-signature">
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('M000110-source');return false;">[Source]</a></p>
222
- <div class="method-source-code" id="M000110-source">
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-M000115" class="method-detail">
245
- <a name="M000115"></a>
244
+ <div id="method-M000133" class="method-detail">
245
+ <a name="M000133"></a>
246
246
 
247
247
  <div class="method-heading">
248
- <a href="#M000115" class="method-signature">
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('M000115-source');return false;">[Source]</a></p>
259
- <div class="method-source-code" id="M000115-source">
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-M000112" class="method-detail">
271
- <a name="M000112"></a>
270
+ <div id="method-M000130" class="method-detail">
271
+ <a name="M000130"></a>
272
272
 
273
273
  <div class="method-heading">
274
- <a href="#M000112" class="method-signature">
274
+ <a href="#M000130" class="method-signature">
275
275
  <span class="method-name">submit_reindex</span><span class="method-args">(store, label=&quot;Reindex my store&quot;, 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('M000112-source');return false;">[Source]</a></p>
292
- <div class="method-source-code" id="M000112-source">
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">&quot;Reindex my store&quot;</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-M000111" class="method-detail">
304
- <a name="M000111"></a>
303
+ <div id="method-M000129" class="method-detail">
304
+ <a name="M000129"></a>
305
305
 
306
306
  <div class="method-heading">
307
- <a href="#M000111" class="method-signature">
307
+ <a href="#M000129" class="method-signature">
308
308
  <span class="method-name">submit_reset</span><span class="method-args">(store, label=&quot;Reset my store&quot;, 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('M000111-source');return false;">[Source]</a></p>
325
- <div class="method-source-code" id="M000111-source">
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">&quot;Reset my store&quot;</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-M000114" class="method-detail">
337
- <a name="M000114"></a>
336
+ <div id="method-M000132" class="method-detail">
337
+ <a name="M000132"></a>
338
338
 
339
339
  <div class="method-heading">
340
- <a href="#M000114" class="method-signature">
340
+ <a href="#M000132" class="method-signature">
341
341
  <span class="method-name">submit_restore</span><span class="method-args">(store, snapshot_uri, label=&quot;Restore my snapshot&quot;, 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('M000114-source');return false;">[Source]</a></p>
358
- <div class="method-source-code" id="M000114-source">
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">&quot;Restore my snapshot&quot;</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-M000113" class="method-detail">
370
- <a name="M000113"></a>
369
+ <div id="method-M000131" class="method-detail">
370
+ <a name="M000131"></a>
371
371
 
372
372
  <div class="method-heading">
373
- <a href="#M000113" class="method-signature">
373
+ <a href="#M000131" class="method-signature">
374
374
  <span class="method-name">submit_snapshot</span><span class="method-args">(store, label=&quot;Snapshot my store&quot;, 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('M000113-source');return false;">[Source]</a></p>
391
- <div class="method-source-code" id="M000113-source">
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">&quot;Snapshot my store&quot;</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-M000118" class="method-detail">
403
- <a name="M000118"></a>
402
+ <div id="method-M000136" class="method-detail">
403
+ <a name="M000136"></a>
404
404
 
405
405
  <div class="method-heading">
406
- <a href="#M000118" class="method-signature">
406
+ <a href="#M000136" class="method-signature">
407
407
  <span class="method-name">wait_for</span><span class="method-args">(uri, store, interval=1, &amp;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('M000118-source');return false;">[Source]</a></p>
430
- <div class="method-source-code" id="M000118-source">
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">&amp;</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-M000117" class="method-detail">
450
- <a name="M000117"></a>
449
+ <div id="method-M000135" class="method-detail">
450
+ <a name="M000135"></a>
451
451
 
452
452
  <div class="method-heading">
453
- <a href="#M000117" class="method-signature">
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, &amp;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('M000117-source');return false;">[Source]</a></p>
464
- <div class="method-source-code" id="M000117-source">
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">&amp;</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-M000119" class="method-detail">
482
- <a name="M000119"></a>
481
+ <div id="method-M000137" class="method-detail">
482
+ <a name="M000137"></a>
483
483
 
484
484
  <div class="method-heading">
485
- <a href="#M000119" class="method-signature">
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('M000119-source');return false;">[Source]</a></p>
493
- <div class="method-source-code" id="M000119-source">
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="#M000103">&lt;&lt;</a>&nbsp;&nbsp;
102
- <a href="#M000101">create_weighting</a>&nbsp;&nbsp;
103
- <a href="#M000104">get_by_name</a>&nbsp;&nbsp;
104
- <a href="#M000107">mapped_name?</a>&nbsp;&nbsp;
105
- <a href="#M000102">new</a>&nbsp;&nbsp;
106
- <a href="#M000100">read_from_store</a>&nbsp;&nbsp;
107
- <a href="#M000106">remove</a>&nbsp;&nbsp;
108
- <a href="#M000105">remove_by_name</a>&nbsp;&nbsp;
109
- <a href="#M000108">to_rdf</a>&nbsp;&nbsp;
110
- <a href="#M000109">upload</a>&nbsp;&nbsp;
101
+ <a href="#M000121">&lt;&lt;</a>&nbsp;&nbsp;
102
+ <a href="#M000119">create_weighting</a>&nbsp;&nbsp;
103
+ <a href="#M000122">get_by_name</a>&nbsp;&nbsp;
104
+ <a href="#M000125">mapped_name?</a>&nbsp;&nbsp;
105
+ <a href="#M000120">new</a>&nbsp;&nbsp;
106
+ <a href="#M000118">read_from_store</a>&nbsp;&nbsp;
107
+ <a href="#M000124">remove</a>&nbsp;&nbsp;
108
+ <a href="#M000123">remove_by_name</a>&nbsp;&nbsp;
109
+ <a href="#M000126">to_rdf</a>&nbsp;&nbsp;
110
+ <a href="#M000127">upload</a>&nbsp;&nbsp;
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-M000101" class="method-detail">
165
- <a name="M000101"></a>
164
+ <div id="method-M000119" class="method-detail">
165
+ <a name="M000119"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="#M000101" class="method-signature">
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('M000101-source');return false;">[Source]</a></p>
192
- <div class="method-source-code" id="M000101-source">
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-M000102" class="method-detail">
210
- <a name="M000102"></a>
209
+ <div id="method-M000120" class="method-detail">
210
+ <a name="M000120"></a>
211
211
 
212
212
  <div class="method-heading">
213
- <a href="#M000102" class="method-signature">
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('M000102-source');return false;">[Source]</a></p>
221
- <div class="method-source-code" id="M000102-source">
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-M000100" class="method-detail">
235
- <a name="M000100"></a>
234
+ <div id="method-M000118" class="method-detail">
235
+ <a name="M000118"></a>
236
236
 
237
237
  <div class="method-heading">
238
- <a href="#M000100" class="method-signature">
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('M000100-source');return false;">[Source]</a></p>
246
- <div class="method-source-code" id="M000100-source">
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-M000103" class="method-detail">
281
- <a name="M000103"></a>
280
+ <div id="method-M000121" class="method-detail">
281
+ <a name="M000121"></a>
282
282
 
283
283
  <div class="method-heading">
284
- <a href="#M000103" class="method-signature">
284
+ <a href="#M000121" class="method-signature">
285
285
  <span class="method-name">&lt;&lt;</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('M000103-source');return false;">[Source]</a></p>
292
- <div class="method-source-code" id="M000103-source">
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">&lt;&lt;</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-M000104" class="method-detail">
304
- <a name="M000104"></a>
303
+ <div id="method-M000122" class="method-detail">
304
+ <a name="M000122"></a>
305
305
 
306
306
  <div class="method-heading">
307
- <a href="#M000104" class="method-signature">
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('M000104-source');return false;">[Source]</a></p>
318
- <div class="method-source-code" id="M000104-source">
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-M000107" class="method-detail">
330
- <a name="M000107"></a>
329
+ <div id="method-M000125" class="method-detail">
330
+ <a name="M000125"></a>
331
331
 
332
332
  <div class="method-heading">
333
- <a href="#M000107" class="method-signature">
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('M000107-source');return false;">[Source]</a></p>
344
- <div class="method-source-code" id="M000107-source">
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-M000106" class="method-detail">
356
- <a name="M000106"></a>
355
+ <div id="method-M000124" class="method-detail">
356
+ <a name="M000124"></a>
357
357
 
358
358
  <div class="method-heading">
359
- <a href="#M000106" class="method-signature">
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('M000106-source');return false;">[Source]</a></p>
371
- <div class="method-source-code" id="M000106-source">
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-M000105" class="method-detail">
383
- <a name="M000105"></a>
382
+ <div id="method-M000123" class="method-detail">
383
+ <a name="M000123"></a>
384
384
 
385
385
  <div class="method-heading">
386
- <a href="#M000105" class="method-signature">
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('M000105-source');return false;">[Source]</a></p>
397
- <div class="method-source-code" id="M000105-source">
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-M000108" class="method-detail">
412
- <a name="M000108"></a>
411
+ <div id="method-M000126" class="method-detail">
412
+ <a name="M000126"></a>
413
413
 
414
414
  <div class="method-heading">
415
- <a href="#M000108" class="method-signature">
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/XML representation suitable for submitting to
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('M000108-source');return false;">[Source]</a></p>
427
- <div class="method-source-code" id="M000108-source">
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-M000109" class="method-detail">
459
- <a name="M000109"></a>
458
+ <div id="method-M000127" class="method-detail">
459
+ <a name="M000127"></a>
460
460
 
461
461
  <div class="method-heading">
462
- <a href="#M000109" class="method-signature">
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/XML presentation of this object to the provided Platform <a
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('M000109-source');return false;">[Source]</a></p>
474
- <div class="method-source-code" id="M000109-source">
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>)