pho 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -0
- data/Rakefile +1 -1
- data/doc/rdoc/classes/Pho/CommandLine.html +67 -67
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
- data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +90 -90
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +63 -63
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +24 -24
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +18 -18
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +60 -60
- data/doc/rdoc/classes/Pho/QueryProfile.html +60 -60
- data/doc/rdoc/classes/Pho/RDF/Parser.html +24 -24
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
- data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +78 -42
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +209 -209
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
- data/doc/rdoc/classes/Pho/Update/Changeset.html +63 -63
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
- data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +159 -0
- data/doc/rdoc/classes/Pho/Update/Changesets.html +12 -12
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Statement.html +24 -24
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +13 -1
- data/doc/rdoc/files/lib/pho/command_line_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/sparql_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +183 -182
- data/examples/linkeddata/proxy.rb +74 -0
- data/lib/pho/command_line.rb +1 -1
- data/lib/pho/sparql.rb +9 -0
- data/tests/tc_sparql_helper.rb +10 -1
- metadata +5 -2
data/CHANGES
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
Brief notes on significant changes and additions in each release
|
2
2
|
|
3
|
+
== Version 0.6.1
|
4
|
+
|
5
|
+
* Added examples/linkeddata/proxy.rb
|
6
|
+
* Fixed bug in command-line application
|
7
|
+
* Added SparqlHelper.exists method
|
8
|
+
|
3
9
|
== Version 0.6
|
4
10
|
|
5
11
|
* Refactored talis_store command extracting code into Pho::CommandLine
|
data/Rakefile
CHANGED
@@ -92,17 +92,17 @@ Class that implements the command-line behaviour
|
|
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="#
|
105
|
-
<a href="#
|
95
|
+
<a href="#M000110">backup</a>
|
96
|
+
<a href="#M000115">describe</a>
|
97
|
+
<a href="#M000108">new</a>
|
98
|
+
<a href="#M000112">reindex</a>
|
99
|
+
<a href="#M000113">reset</a>
|
100
|
+
<a href="#M000114">restore</a>
|
101
|
+
<a href="#M000111">snapshot</a>
|
102
|
+
<a href="#M000116">sparql</a>
|
103
|
+
<a href="#M000109">status</a>
|
104
|
+
<a href="#M000117">store</a>
|
105
|
+
<a href="#M000118">upload</a>
|
106
106
|
</div>
|
107
107
|
</div>
|
108
108
|
|
@@ -124,19 +124,19 @@ Class that implements the command-line behaviour
|
|
124
124
|
<div id="methods">
|
125
125
|
<h3 class="section-bar">Public Class methods</h3>
|
126
126
|
|
127
|
-
<div id="method-
|
128
|
-
<a name="
|
127
|
+
<div id="method-M000108" class="method-detail">
|
128
|
+
<a name="M000108"></a>
|
129
129
|
|
130
130
|
<div class="method-heading">
|
131
|
-
<a href="#
|
131
|
+
<a href="#M000108" class="method-signature">
|
132
132
|
<span class="method-name">new</span><span class="method-args">(store, opts)</span>
|
133
133
|
</a>
|
134
134
|
</div>
|
135
135
|
|
136
136
|
<div class="method-description">
|
137
137
|
<p><a class="source-toggle" href="#"
|
138
|
-
onclick="toggleCode('
|
139
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000108-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 6</span>
|
142
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">opts</span>)
|
@@ -150,19 +150,19 @@ Class that implements the command-line behaviour
|
|
150
150
|
|
151
151
|
<h3 class="section-bar">Public Instance methods</h3>
|
152
152
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
153
|
+
<div id="method-M000110" class="method-detail">
|
154
|
+
<a name="M000110"></a>
|
155
155
|
|
156
156
|
<div class="method-heading">
|
157
|
-
<a href="#
|
157
|
+
<a href="#M000110" class="method-signature">
|
158
158
|
<span class="method-name">backup</span><span class="method-args">()</span>
|
159
159
|
</a>
|
160
160
|
</div>
|
161
161
|
|
162
162
|
<div class="method-description">
|
163
163
|
<p><a class="source-toggle" href="#"
|
164
|
-
onclick="toggleCode('
|
165
|
-
<div class="method-source-code" id="
|
164
|
+
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
165
|
+
<div class="method-source-code" id="M000110-source">
|
166
166
|
<pre>
|
167
167
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 16</span>
|
168
168
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backup</span>()
|
@@ -184,19 +184,19 @@ Class that implements the command-line behaviour
|
|
184
184
|
</div>
|
185
185
|
</div>
|
186
186
|
|
187
|
-
<div id="method-
|
188
|
-
<a name="
|
187
|
+
<div id="method-M000115" class="method-detail">
|
188
|
+
<a name="M000115"></a>
|
189
189
|
|
190
190
|
<div class="method-heading">
|
191
|
-
<a href="#
|
191
|
+
<a href="#M000115" class="method-signature">
|
192
192
|
<span class="method-name">describe</span><span class="method-args">()</span>
|
193
193
|
</a>
|
194
194
|
</div>
|
195
195
|
|
196
196
|
<div class="method-description">
|
197
197
|
<p><a class="source-toggle" href="#"
|
198
|
-
onclick="toggleCode('
|
199
|
-
<div class="method-source-code" id="
|
198
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
199
|
+
<div class="method-source-code" id="M000115-source">
|
200
200
|
<pre>
|
201
201
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 78</span>
|
202
202
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe</span>()
|
@@ -213,19 +213,19 @@ Class that implements the command-line behaviour
|
|
213
213
|
</div>
|
214
214
|
</div>
|
215
215
|
|
216
|
-
<div id="method-
|
217
|
-
<a name="
|
216
|
+
<div id="method-M000112" class="method-detail">
|
217
|
+
<a name="M000112"></a>
|
218
218
|
|
219
219
|
<div class="method-heading">
|
220
|
-
<a href="#
|
220
|
+
<a href="#M000112" class="method-signature">
|
221
221
|
<span class="method-name">reindex</span><span class="method-args">()</span>
|
222
222
|
</a>
|
223
223
|
</div>
|
224
224
|
|
225
225
|
<div class="method-description">
|
226
226
|
<p><a class="source-toggle" href="#"
|
227
|
-
onclick="toggleCode('
|
228
|
-
<div class="method-source-code" id="
|
227
|
+
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
228
|
+
<div class="method-source-code" id="M000112-source">
|
229
229
|
<pre>
|
230
230
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 41</span>
|
231
231
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reindex</span>()
|
@@ -244,19 +244,19 @@ Class that implements the command-line behaviour
|
|
244
244
|
</div>
|
245
245
|
</div>
|
246
246
|
|
247
|
-
<div id="method-
|
248
|
-
<a name="
|
247
|
+
<div id="method-M000113" class="method-detail">
|
248
|
+
<a name="M000113"></a>
|
249
249
|
|
250
250
|
<div class="method-heading">
|
251
|
-
<a href="#
|
251
|
+
<a href="#M000113" class="method-signature">
|
252
252
|
<span class="method-name">reset</span><span class="method-args">()</span>
|
253
253
|
</a>
|
254
254
|
</div>
|
255
255
|
|
256
256
|
<div class="method-description">
|
257
257
|
<p><a class="source-toggle" href="#"
|
258
|
-
onclick="toggleCode('
|
259
|
-
<div class="method-source-code" id="
|
258
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
259
|
+
<div class="method-source-code" id="M000113-source">
|
260
260
|
<pre>
|
261
261
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 53</span>
|
262
262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>()
|
@@ -273,19 +273,19 @@ Class that implements the command-line behaviour
|
|
273
273
|
</div>
|
274
274
|
</div>
|
275
275
|
|
276
|
-
<div id="method-
|
277
|
-
<a name="
|
276
|
+
<div id="method-M000114" class="method-detail">
|
277
|
+
<a name="M000114"></a>
|
278
278
|
|
279
279
|
<div class="method-heading">
|
280
|
-
<a href="#
|
280
|
+
<a href="#M000114" class="method-signature">
|
281
281
|
<span class="method-name">restore</span><span class="method-args">()</span>
|
282
282
|
</a>
|
283
283
|
</div>
|
284
284
|
|
285
285
|
<div class="method-description">
|
286
286
|
<p><a class="source-toggle" href="#"
|
287
|
-
onclick="toggleCode('
|
288
|
-
<div class="method-source-code" id="
|
287
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
288
|
+
<div class="method-source-code" id="M000114-source">
|
289
289
|
<pre>
|
290
290
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 63</span>
|
291
291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">restore</span>()
|
@@ -307,19 +307,19 @@ Class that implements the command-line behaviour
|
|
307
307
|
</div>
|
308
308
|
</div>
|
309
309
|
|
310
|
-
<div id="method-
|
311
|
-
<a name="
|
310
|
+
<div id="method-M000111" class="method-detail">
|
311
|
+
<a name="M000111"></a>
|
312
312
|
|
313
313
|
<div class="method-heading">
|
314
|
-
<a href="#
|
314
|
+
<a href="#M000111" class="method-signature">
|
315
315
|
<span class="method-name">snapshot</span><span class="method-args">()</span>
|
316
316
|
</a>
|
317
317
|
</div>
|
318
318
|
|
319
319
|
<div class="method-description">
|
320
320
|
<p><a class="source-toggle" href="#"
|
321
|
-
onclick="toggleCode('
|
322
|
-
<div class="method-source-code" id="
|
321
|
+
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
322
|
+
<div class="method-source-code" id="M000111-source">
|
323
323
|
<pre>
|
324
324
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 31</span>
|
325
325
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">snapshot</span>()
|
@@ -336,19 +336,19 @@ Class that implements the command-line behaviour
|
|
336
336
|
</div>
|
337
337
|
</div>
|
338
338
|
|
339
|
-
<div id="method-
|
340
|
-
<a name="
|
339
|
+
<div id="method-M000116" class="method-detail">
|
340
|
+
<a name="M000116"></a>
|
341
341
|
|
342
342
|
<div class="method-heading">
|
343
|
-
<a href="#
|
343
|
+
<a href="#M000116" class="method-signature">
|
344
344
|
<span class="method-name">sparql</span><span class="method-args">()</span>
|
345
345
|
</a>
|
346
346
|
</div>
|
347
347
|
|
348
348
|
<div class="method-description">
|
349
349
|
<p><a class="source-toggle" href="#"
|
350
|
-
onclick="toggleCode('
|
351
|
-
<div class="method-source-code" id="
|
350
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
351
|
+
<div class="method-source-code" id="M000116-source">
|
352
352
|
<pre>
|
353
353
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 88</span>
|
354
354
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sparql</span>()
|
@@ -366,19 +366,19 @@ Class that implements the command-line behaviour
|
|
366
366
|
</div>
|
367
367
|
</div>
|
368
368
|
|
369
|
-
<div id="method-
|
370
|
-
<a name="
|
369
|
+
<div id="method-M000109" class="method-detail">
|
370
|
+
<a name="M000109"></a>
|
371
371
|
|
372
372
|
<div class="method-heading">
|
373
|
-
<a href="#
|
373
|
+
<a href="#M000109" class="method-signature">
|
374
374
|
<span class="method-name">status</span><span class="method-args">()</span>
|
375
375
|
</a>
|
376
376
|
</div>
|
377
377
|
|
378
378
|
<div class="method-description">
|
379
379
|
<p><a class="source-toggle" href="#"
|
380
|
-
onclick="toggleCode('
|
381
|
-
<div class="method-source-code" id="
|
380
|
+
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
381
|
+
<div class="method-source-code" id="M000109-source">
|
382
382
|
<pre>
|
383
383
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 11</span>
|
384
384
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>()
|
@@ -390,19 +390,19 @@ Class that implements the command-line behaviour
|
|
390
390
|
</div>
|
391
391
|
</div>
|
392
392
|
|
393
|
-
<div id="method-
|
394
|
-
<a name="
|
393
|
+
<div id="method-M000117" class="method-detail">
|
394
|
+
<a name="M000117"></a>
|
395
395
|
|
396
396
|
<div class="method-heading">
|
397
|
-
<a href="#
|
397
|
+
<a href="#M000117" class="method-signature">
|
398
398
|
<span class="method-name">store</span><span class="method-args">()</span>
|
399
399
|
</a>
|
400
400
|
</div>
|
401
401
|
|
402
402
|
<div class="method-description">
|
403
403
|
<p><a class="source-toggle" href="#"
|
404
|
-
onclick="toggleCode('
|
405
|
-
<div class="method-source-code" id="
|
404
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
405
|
+
<div class="method-source-code" id="M000117-source">
|
406
406
|
<pre>
|
407
407
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 99</span>
|
408
408
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span>()
|
@@ -413,7 +413,7 @@ Class that implements the command-line behaviour
|
|
413
413
|
<span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@opts</span>[<span class="ruby-value str">"file"</span>]
|
414
414
|
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Storing local file: #{@opts["file"]}"</span>
|
415
415
|
<span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-ivar">@opts</span>[<span class="ruby-value str">"file"</span>] )
|
416
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-
|
416
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>( <span class="ruby-ivar">@opts</span>[<span class="ruby-value str">"file"</span>] ) <span class="ruby-operator">==</span> <span class="ruby-value str">".nt"</span>
|
417
417
|
<span class="ruby-constant">Pho</span><span class="ruby-operator">::</span><span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">store_ntriples</span>(<span class="ruby-identifier">f</span>, <span class="ruby-ivar">@store</span>)
|
418
418
|
<span class="ruby-keyword kw">else</span>
|
419
419
|
<span class="ruby-identifier">resp</span> = <span class="ruby-ivar">@store</span>.<span class="ruby-identifier">store_file</span>( <span class="ruby-identifier">f</span> )
|
@@ -441,19 +441,19 @@ Class that implements the command-line behaviour
|
|
441
441
|
</div>
|
442
442
|
</div>
|
443
443
|
|
444
|
-
<div id="method-
|
445
|
-
<a name="
|
444
|
+
<div id="method-M000118" class="method-detail">
|
445
|
+
<a name="M000118"></a>
|
446
446
|
|
447
447
|
<div class="method-heading">
|
448
|
-
<a href="#
|
448
|
+
<a href="#M000118" class="method-signature">
|
449
449
|
<span class="method-name">upload</span><span class="method-args">()</span>
|
450
450
|
</a>
|
451
451
|
</div>
|
452
452
|
|
453
453
|
<div class="method-description">
|
454
454
|
<p><a class="source-toggle" href="#"
|
455
|
-
onclick="toggleCode('
|
456
|
-
<div class="method-source-code" id="
|
455
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
456
|
+
<div class="method-source-code" id="M000118-source">
|
457
457
|
<pre>
|
458
458
|
<span class="ruby-comment cmt"># File lib/pho/command_line.rb, line 131</span>
|
459
459
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload</span>()
|
@@ -92,8 +92,8 @@ Captures information about a mapped datatype from a Field Predicate Map
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
95
|
+
<a href="#M000139">new</a>
|
96
|
+
<a href="#M000140">to_rdf</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -155,19 +155,19 @@ URI for this mapping
|
|
155
155
|
<div id="methods">
|
156
156
|
<h3 class="section-bar">Public Class methods</h3>
|
157
157
|
|
158
|
-
<div id="method-
|
159
|
-
<a name="
|
158
|
+
<div id="method-M000139" class="method-detail">
|
159
|
+
<a name="M000139"></a>
|
160
160
|
|
161
161
|
<div class="method-heading">
|
162
|
-
<a href="#
|
162
|
+
<a href="#M000139" class="method-signature">
|
163
163
|
<span class="method-name">new</span><span class="method-args">(uri, property_uri, name, analyzer=nil)</span>
|
164
164
|
</a>
|
165
165
|
</div>
|
166
166
|
|
167
167
|
<div class="method-description">
|
168
168
|
<p><a class="source-toggle" href="#"
|
169
|
-
onclick="toggleCode('
|
170
|
-
<div class="method-source-code" id="
|
169
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
170
|
+
<div class="method-source-code" id="M000139-source">
|
171
171
|
<pre>
|
172
172
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 64</span>
|
173
173
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">property_uri</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">analyzer</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -183,11 +183,11 @@ URI for this mapping
|
|
183
183
|
|
184
184
|
<h3 class="section-bar">Public Instance methods</h3>
|
185
185
|
|
186
|
-
<div id="method-
|
187
|
-
<a name="
|
186
|
+
<div id="method-M000140" class="method-detail">
|
187
|
+
<a name="M000140"></a>
|
188
188
|
|
189
189
|
<div class="method-heading">
|
190
|
-
<a href="#
|
190
|
+
<a href="#M000140" class="method-signature">
|
191
191
|
<span class="method-name">to_rdf</span><span class="method-args">(ns=true)</span>
|
192
192
|
</a>
|
193
193
|
</div>
|
@@ -203,8 +203,8 @@ Generates a simple rdf:Description, optionally including namespaces
|
|
203
203
|
</td></tr>
|
204
204
|
</table>
|
205
205
|
<p><a class="source-toggle" href="#"
|
206
|
-
onclick="toggleCode('
|
207
|
-
<div class="method-source-code" id="
|
206
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
207
|
+
<div class="method-source-code" id="M000140-source">
|
208
208
|
<pre>
|
209
209
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 73</span>
|
210
210
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>(<span class="ruby-identifier">ns</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -86,10 +86,10 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
89
|
+
<a href="#M000076">enrich</a>
|
90
|
+
<a href="#M000074">infer</a>
|
91
|
+
<a href="#M000075">merge</a>
|
92
|
+
<a href="#M000073">new</a>
|
93
93
|
</div>
|
94
94
|
</div>
|
95
95
|
|
@@ -129,11 +129,11 @@
|
|
129
129
|
<div id="methods">
|
130
130
|
<h3 class="section-bar">Public Class methods</h3>
|
131
131
|
|
132
|
-
<div id="method-
|
133
|
-
<a name="
|
132
|
+
<div id="method-M000074" class="method-detail">
|
133
|
+
<a name="M000074"></a>
|
134
134
|
|
135
135
|
<div class="method-heading">
|
136
|
-
<a href="#
|
136
|
+
<a href="#M000074" class="method-signature">
|
137
137
|
<span class="method-name">infer</span><span class="method-args">(store, query, &block)</span>
|
138
138
|
</a>
|
139
139
|
</div>
|
@@ -144,7 +144,7 @@ Enrich a store against itself
|
|
144
144
|
</p>
|
145
145
|
<p>
|
146
146
|
For the common case where a store needs to be enriched against itself by
|
147
|
-
inferring <a href="StoreEnricher.html#
|
147
|
+
inferring <a href="StoreEnricher.html#M000073">new</a> data from old using
|
148
148
|
a CONSTRUCT query
|
149
149
|
</p>
|
150
150
|
<table>
|
@@ -152,14 +152,14 @@ a CONSTRUCT query
|
|
152
152
|
|
153
153
|
</td></tr>
|
154
154
|
<tr><td valign="top">query:</td><td>the SPARQL CONSTRUCT query to be used to <a
|
155
|
-
href="StoreEnricher.html#
|
156
|
-
href="StoreEnricher.html#
|
155
|
+
href="StoreEnricher.html#M000074">infer</a> the <a
|
156
|
+
href="StoreEnricher.html#M000073">new</a> data
|
157
157
|
|
158
158
|
</td></tr>
|
159
159
|
</table>
|
160
160
|
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('
|
162
|
-
<div class="method-source-code" id="
|
161
|
+
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
162
|
+
<div class="method-source-code" id="M000074-source">
|
163
163
|
<pre>
|
164
164
|
<span class="ruby-comment cmt"># File lib/pho/enrichment.rb, line 28</span>
|
165
165
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">StoreEnricher</span>.<span class="ruby-identifier">infer</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">query</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -171,11 +171,11 @@ href="StoreEnricher.html#M000072">new</a> data
|
|
171
171
|
</div>
|
172
172
|
</div>
|
173
173
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
174
|
+
<div id="method-M000073" class="method-detail">
|
175
|
+
<a name="M000073"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000073" class="method-signature">
|
179
179
|
<span class="method-name">new</span><span class="method-args">(store, sparql_client)</span>
|
180
180
|
</a>
|
181
181
|
</div>
|
@@ -186,7 +186,7 @@ Constructor
|
|
186
186
|
</p>
|
187
187
|
<table>
|
188
188
|
<tr><td valign="top">store:</td><td>the store containing resource(s) to <a
|
189
|
-
href="StoreEnricher.html#
|
189
|
+
href="StoreEnricher.html#M000076">enrich</a>
|
190
190
|
|
191
191
|
</td></tr>
|
192
192
|
<tr><td valign="top">sparql_client:</td><td>SparqlClient object to be used as client for retrieving enrichments
|
@@ -194,8 +194,8 @@ href="StoreEnricher.html#M000075">enrich</a>
|
|
194
194
|
</td></tr>
|
195
195
|
</table>
|
196
196
|
<p><a class="source-toggle" href="#"
|
197
|
-
onclick="toggleCode('
|
198
|
-
<div class="method-source-code" id="
|
197
|
+
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
198
|
+
<div class="method-source-code" id="M000073-source">
|
199
199
|
<pre>
|
200
200
|
<span class="ruby-comment cmt"># File lib/pho/enrichment.rb, line 16</span>
|
201
201
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">sparql_client</span>)
|
@@ -209,11 +209,11 @@ href="StoreEnricher.html#M000075">enrich</a>
|
|
209
209
|
|
210
210
|
<h3 class="section-bar">Public Instance methods</h3>
|
211
211
|
|
212
|
-
<div id="method-
|
213
|
-
<a name="
|
212
|
+
<div id="method-M000076" class="method-detail">
|
213
|
+
<a name="M000076"></a>
|
214
214
|
|
215
215
|
<div class="method-heading">
|
216
|
-
<a href="#
|
216
|
+
<a href="#M000076" class="method-signature">
|
217
217
|
<span class="method-name">enrich</span><span class="method-args">(locator_query, enrichment_query, callback=nil) {|:query, query_response| ...}</span>
|
218
218
|
</a>
|
219
219
|
</div>
|
@@ -301,7 +301,7 @@ and the response object itself. E.g:
|
|
301
301
|
<tr><td valign="top">locator_query:</td><td>query to locate resources to be enriched
|
302
302
|
|
303
303
|
</td></tr>
|
304
|
-
<tr><td valign="top">enrichment_query:</td><td>query to be used to <a href="StoreEnricher.html#
|
304
|
+
<tr><td valign="top">enrichment_query:</td><td>query to be used to <a href="StoreEnricher.html#M000076">enrich</a> the
|
305
305
|
resource
|
306
306
|
|
307
307
|
</td></tr>
|
@@ -310,8 +310,8 @@ resource
|
|
310
310
|
</td></tr>
|
311
311
|
</table>
|
312
312
|
<p><a class="source-toggle" href="#"
|
313
|
-
onclick="toggleCode('
|
314
|
-
<div class="method-source-code" id="
|
313
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
314
|
+
<div class="method-source-code" id="M000076-source">
|
315
315
|
<pre>
|
316
316
|
<span class="ruby-comment cmt"># File lib/pho/enrichment.rb, line 108</span>
|
317
317
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enrich</span>(<span class="ruby-identifier">locator_query</span>, <span class="ruby-identifier">enrichment_query</span>, <span class="ruby-identifier">callback</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -353,11 +353,11 @@ resource
|
|
353
353
|
</div>
|
354
354
|
</div>
|
355
355
|
|
356
|
-
<div id="method-
|
357
|
-
<a name="
|
356
|
+
<div id="method-M000075" class="method-detail">
|
357
|
+
<a name="M000075"></a>
|
358
358
|
|
359
359
|
<div class="method-heading">
|
360
|
-
<a href="#
|
360
|
+
<a href="#M000075" class="method-signature">
|
361
361
|
<span class="method-name">merge</span><span class="method-args">(query) {|resp, data| ...}</span>
|
362
362
|
</a>
|
363
363
|
</div>
|
@@ -373,8 +373,8 @@ the results in the Platform <a href="../Store.html">Store</a>
|
|
373
373
|
</td></tr>
|
374
374
|
</table>
|
375
375
|
<p><a class="source-toggle" href="#"
|
376
|
-
onclick="toggleCode('
|
377
|
-
<div class="method-source-code" id="
|
376
|
+
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
377
|
+
<div class="method-source-code" id="M000075-source">
|
378
378
|
<pre>
|
379
379
|
<span class="ruby-comment cmt"># File lib/pho/enrichment.rb, line 37</span>
|
380
380
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">query</span>)
|