pho 0.6.2 → 0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +12 -0
- data/Rakefile +1 -1
- data/bin/talis_store +98 -24
- data/doc/rdoc/classes/Pho.html +15 -0
- data/doc/rdoc/classes/Pho/CommandLine.html +353 -91
- 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 +105 -106
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +31 -8
- 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 +28 -26
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
- data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +289 -245
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +14 -14
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +35 -1
- data/doc/rdoc/files/lib/pho/command_line_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/converter_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/field_predicate_map_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 +1 -1
- data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
- data/doc/rdoc/files/lib/pho_rb.html +2 -1
- data/doc/rdoc/fr_class_index.html +3 -0
- data/doc/rdoc/fr_file_index.html +1 -0
- data/doc/rdoc/fr_method_index.html +153 -141
- data/lib/pho.rb +3 -0
- data/lib/pho/command_line.rb +139 -14
- data/lib/pho/field_predicate_map.rb +1 -2
- data/lib/pho/oai.rb +58 -0
- data/lib/pho/rdf.rb +2 -0
- data/lib/pho/rdf_collection.rb +16 -4
- data/lib/pho/store.rb +23 -5
- data/tests/tc_command_line.rb +229 -0
- data/tests/tc_field_predicate_map.rb +5 -1
- data/tests/tc_metabox.rb +29 -1
- data/tests/tc_oai.rb +31 -0
- data/tests/tc_rdf_collection.rb +80 -15
- data/tests/ts_pho.rb +3 -1
- metadata +5 -2
@@ -92,7 +92,7 @@ Captures the information about a specific term
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
95
|
+
<a href="#M000076">new</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -137,19 +137,19 @@ Captures the information about a specific term
|
|
137
137
|
<div id="methods">
|
138
138
|
<h3 class="section-bar">Public Class methods</h3>
|
139
139
|
|
140
|
-
<div id="method-
|
141
|
-
<a name="
|
140
|
+
<div id="method-M000076" class="method-detail">
|
141
|
+
<a name="M000076"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000076" class="method-signature">
|
145
145
|
<span class="method-name">new</span><span class="method-args">(hits, search_uri, value)</span>
|
146
146
|
</a>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="method-description">
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000076-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 12</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">hits</span>, <span class="ruby-identifier">search_uri</span>, <span class="ruby-identifier">value</span>)
|
@@ -101,21 +101,21 @@ Platform API.
|
|
101
101
|
<h3 class="section-bar">Methods</h3>
|
102
102
|
|
103
103
|
<div class="name-list">
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
104
|
+
<a href="#M000096"><<</a>
|
105
|
+
<a href="#M000094">create_mapping</a>
|
106
|
+
<a href="#M000101">get_by_name</a>
|
107
|
+
<a href="#M000102">get_by_uri</a>
|
108
|
+
<a href="#M000097">get_name</a>
|
109
|
+
<a href="#M000098">get_property_uri</a>
|
110
|
+
<a href="#M000099">mapped_name?</a>
|
111
|
+
<a href="#M000100">mapped_uri?</a>
|
112
|
+
<a href="#M000095">new</a>
|
113
|
+
<a href="#M000093">read_from_store</a>
|
114
|
+
<a href="#M000103">remove</a>
|
115
|
+
<a href="#M000104">remove_by_name</a>
|
116
|
+
<a href="#M000105">remove_by_uri</a>
|
117
|
+
<a href="#M000106">to_rdf</a>
|
118
|
+
<a href="#M000107">upload</a>
|
119
119
|
</div>
|
120
120
|
</div>
|
121
121
|
|
@@ -169,11 +169,11 @@ URI for this resource
|
|
169
169
|
<div id="methods">
|
170
170
|
<h3 class="section-bar">Public Class methods</h3>
|
171
171
|
|
172
|
-
<div id="method-
|
173
|
-
<a name="
|
172
|
+
<div id="method-M000094" class="method-detail">
|
173
|
+
<a name="M000094"></a>
|
174
174
|
|
175
175
|
<div class="method-heading">
|
176
|
-
<a href="#
|
176
|
+
<a href="#M000094" class="method-signature">
|
177
177
|
<span class="method-name">create_mapping</span><span class="method-args">(store, property_uri, name, analyzer=nil)</span>
|
178
178
|
</a>
|
179
179
|
</div>
|
@@ -185,10 +185,10 @@ automatically assigning a unique identifier to it, and adding validating
|
|
185
185
|
the supplied data to ensure it matches the platform rules
|
186
186
|
</p>
|
187
187
|
<p><a class="source-toggle" href="#"
|
188
|
-
onclick="toggleCode('
|
189
|
-
<div class="method-source-code" id="
|
188
|
+
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
189
|
+
<div class="method-source-code" id="M000094-source">
|
190
190
|
<pre>
|
191
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
191
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 139</span>
|
192
192
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FieldPredicateMap</span>.<span class="ruby-identifier">create_mapping</span>(<span class="ruby-identifier">store</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>)
|
193
193
|
<span class="ruby-identifier">check_value</span>(<span class="ruby-value str">"property_uri"</span>, <span class="ruby-identifier">property_uri</span>)
|
194
194
|
<span class="ruby-identifier">check_value</span>(<span class="ruby-value str">"name"</span>, <span class="ruby-identifier">name</span>)
|
@@ -207,21 +207,21 @@ the supplied data to ensure it matches the platform rules
|
|
207
207
|
</div>
|
208
208
|
</div>
|
209
209
|
|
210
|
-
<div id="method-
|
211
|
-
<a name="
|
210
|
+
<div id="method-M000095" class="method-detail">
|
211
|
+
<a name="M000095"></a>
|
212
212
|
|
213
213
|
<div class="method-heading">
|
214
|
-
<a href="#
|
214
|
+
<a href="#M000095" class="method-signature">
|
215
215
|
<span class="method-name">new</span><span class="method-args">(uri, label, datatype_properties = [])</span>
|
216
216
|
</a>
|
217
217
|
</div>
|
218
218
|
|
219
219
|
<div class="method-description">
|
220
220
|
<p><a class="source-toggle" href="#"
|
221
|
-
onclick="toggleCode('
|
222
|
-
<div class="method-source-code" id="
|
221
|
+
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
222
|
+
<div class="method-source-code" id="M000095-source">
|
223
223
|
<pre>
|
224
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
224
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 153</span>
|
225
225
|
<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">datatype_properties</span> = [])
|
226
226
|
<span class="ruby-ivar">@uri</span> = <span class="ruby-identifier">uri</span>
|
227
227
|
<span class="ruby-ivar">@label</span> = <span class="ruby-identifier">label</span>
|
@@ -232,11 +232,11 @@ the supplied data to ensure it matches the platform rules
|
|
232
232
|
</div>
|
233
233
|
</div>
|
234
234
|
|
235
|
-
<div id="method-
|
236
|
-
<a name="
|
235
|
+
<div id="method-M000093" class="method-detail">
|
236
|
+
<a name="M000093"></a>
|
237
237
|
|
238
238
|
<div class="method-heading">
|
239
|
-
<a href="#
|
239
|
+
<a href="#M000093" class="method-signature">
|
240
240
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
241
241
|
</a>
|
242
242
|
</div>
|
@@ -248,8 +248,8 @@ the provided store. The method will retrieve the config as JSON, and parse
|
|
248
248
|
it to create an object instance.
|
249
249
|
</p>
|
250
250
|
<p><a class="source-toggle" href="#"
|
251
|
-
onclick="toggleCode('
|
252
|
-
<div class="method-source-code" id="
|
251
|
+
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
252
|
+
<div class="method-source-code" id="M000093-source">
|
253
253
|
<pre>
|
254
254
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 109</span>
|
255
255
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FieldPredicateMap</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
@@ -259,9 +259,8 @@ it to create an object instance.
|
|
259
259
|
<span class="ruby-keyword kw">end</span>
|
260
260
|
|
261
261
|
<span class="ruby-identifier">fpmap_uri</span> = <span class="ruby-identifier">store</span>.<span class="ruby-identifier">build_uri</span>(<span class="ruby-value str">"/config/fpmaps/1"</span>)
|
262
|
-
|
262
|
+
|
263
263
|
<span class="ruby-identifier">json</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>( <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">content</span> )
|
264
|
-
|
265
264
|
<span class="ruby-identifier">labels</span> = <span class="ruby-identifier">json</span>[<span class="ruby-identifier">fpmap_uri</span>][<span class="ruby-value str">"http:\/\/www.w3.org\/2000\/01\/rdf-schema#label"</span>]
|
266
265
|
<span class="ruby-identifier">label</span> = <span class="ruby-value str">""</span>
|
267
266
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">labels</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
@@ -287,11 +286,11 @@ it to create an object instance.
|
|
287
286
|
|
288
287
|
<h3 class="section-bar">Public Instance methods</h3>
|
289
288
|
|
290
|
-
<div id="method-
|
291
|
-
<a name="
|
289
|
+
<div id="method-M000096" class="method-detail">
|
290
|
+
<a name="M000096"></a>
|
292
291
|
|
293
292
|
<div class="method-heading">
|
294
|
-
<a href="#
|
293
|
+
<a href="#M000096" class="method-signature">
|
295
294
|
<span class="method-name"><<</span><span class="method-args">(obj)</span>
|
296
295
|
</a>
|
297
296
|
</div>
|
@@ -303,10 +302,10 @@ this map. Note that the method does not validate the object, and neither
|
|
303
302
|
does it check for duplicate mappings.
|
304
303
|
</p>
|
305
304
|
<p><a class="source-toggle" href="#"
|
306
|
-
onclick="toggleCode('
|
307
|
-
<div class="method-source-code" id="
|
305
|
+
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
306
|
+
<div class="method-source-code" id="M000096-source">
|
308
307
|
<pre>
|
309
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
308
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 162</span>
|
310
309
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">obj</span>)
|
311
310
|
<span class="ruby-ivar">@datatype_properties</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj</span>
|
312
311
|
<span class="ruby-keyword kw">end</span>
|
@@ -315,11 +314,11 @@ does it check for duplicate mappings.
|
|
315
314
|
</div>
|
316
315
|
</div>
|
317
316
|
|
318
|
-
<div id="method-
|
319
|
-
<a name="
|
317
|
+
<div id="method-M000101" class="method-detail">
|
318
|
+
<a name="M000101"></a>
|
320
319
|
|
321
320
|
<div class="method-heading">
|
322
|
-
<a href="#
|
321
|
+
<a href="#M000101" class="method-signature">
|
323
322
|
<span class="method-name">get_by_name</span><span class="method-args">(name)</span>
|
324
323
|
</a>
|
325
324
|
</div>
|
@@ -330,10 +329,10 @@ Find the <a href="DatatypeProperty.html">DatatypeProperty</a> (if any) with
|
|
330
329
|
the following name mapping
|
331
330
|
</p>
|
332
331
|
<p><a class="source-toggle" href="#"
|
333
|
-
onclick="toggleCode('
|
334
|
-
<div class="method-source-code" id="
|
332
|
+
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
333
|
+
<div class="method-source-code" id="M000101-source">
|
335
334
|
<pre>
|
336
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
335
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 201</span>
|
337
336
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_by_name</span>(<span class="ruby-identifier">name</span>)
|
338
337
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@datatype_properties</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mapping</span><span class="ruby-operator">|</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">mapping</span>.<span class="ruby-identifier">name</span> }
|
339
338
|
<span class="ruby-keyword kw">end</span>
|
@@ -342,11 +341,11 @@ the following name mapping
|
|
342
341
|
</div>
|
343
342
|
</div>
|
344
343
|
|
345
|
-
<div id="method-
|
346
|
-
<a name="
|
344
|
+
<div id="method-M000102" class="method-detail">
|
345
|
+
<a name="M000102"></a>
|
347
346
|
|
348
347
|
<div class="method-heading">
|
349
|
-
<a href="#
|
348
|
+
<a href="#M000102" class="method-signature">
|
350
349
|
<span class="method-name">get_by_uri</span><span class="method-args">(uri)</span>
|
351
350
|
</a>
|
352
351
|
</div>
|
@@ -357,10 +356,10 @@ Find the <a href="DatatypeProperty.html">DatatypeProperty</a> using a
|
|
357
356
|
property uri
|
358
357
|
</p>
|
359
358
|
<p><a class="source-toggle" href="#"
|
360
|
-
onclick="toggleCode('
|
361
|
-
<div class="method-source-code" id="
|
359
|
+
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
360
|
+
<div class="method-source-code" id="M000102-source">
|
362
361
|
<pre>
|
363
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
362
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 206</span>
|
364
363
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_by_uri</span>(<span class="ruby-identifier">uri</span>)
|
365
364
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@datatype_properties</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mapping</span><span class="ruby-operator">|</span> <span class="ruby-identifier">uri</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">mapping</span>.<span class="ruby-identifier">property_uri</span> }
|
366
365
|
<span class="ruby-keyword kw">end</span>
|
@@ -369,11 +368,11 @@ property uri
|
|
369
368
|
</div>
|
370
369
|
</div>
|
371
370
|
|
372
|
-
<div id="method-
|
373
|
-
<a name="
|
371
|
+
<div id="method-M000097" class="method-detail">
|
372
|
+
<a name="M000097"></a>
|
374
373
|
|
375
374
|
<div class="method-heading">
|
376
|
-
<a href="#
|
375
|
+
<a href="#M000097" class="method-signature">
|
377
376
|
<span class="method-name">get_name</span><span class="method-args">(uri)</span>
|
378
377
|
</a>
|
379
378
|
</div>
|
@@ -388,10 +387,10 @@ Lookup the name mapped to the specified uri
|
|
388
387
|
</td></tr>
|
389
388
|
</table>
|
390
389
|
<p><a class="source-toggle" href="#"
|
391
|
-
onclick="toggleCode('
|
392
|
-
<div class="method-source-code" id="
|
390
|
+
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
391
|
+
<div class="method-source-code" id="M000097-source">
|
393
392
|
<pre>
|
394
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
393
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 169</span>
|
395
394
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_name</span>(<span class="ruby-identifier">uri</span>)
|
396
395
|
<span class="ruby-identifier">p</span> = <span class="ruby-ivar">@datatype_properties</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mapping</span><span class="ruby-operator">|</span> <span class="ruby-identifier">uri</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">mapping</span>.<span class="ruby-identifier">property_uri</span> }
|
397
396
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
@@ -405,11 +404,11 @@ Lookup the name mapped to the specified uri
|
|
405
404
|
</div>
|
406
405
|
</div>
|
407
406
|
|
408
|
-
<div id="method-
|
409
|
-
<a name="
|
407
|
+
<div id="method-M000098" class="method-detail">
|
408
|
+
<a name="M000098"></a>
|
410
409
|
|
411
410
|
<div class="method-heading">
|
412
|
-
<a href="#
|
411
|
+
<a href="#M000098" class="method-signature">
|
413
412
|
<span class="method-name">get_property_uri</span><span class="method-args">(name)</span>
|
414
413
|
</a>
|
415
414
|
</div>
|
@@ -424,10 +423,10 @@ Lookup the property mapped to the specified name
|
|
424
423
|
</td></tr>
|
425
424
|
</table>
|
426
425
|
<p><a class="source-toggle" href="#"
|
427
|
-
onclick="toggleCode('
|
428
|
-
<div class="method-source-code" id="
|
426
|
+
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
427
|
+
<div class="method-source-code" id="M000098-source">
|
429
428
|
<pre>
|
430
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
429
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 181</span>
|
431
430
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_property_uri</span>(<span class="ruby-identifier">name</span>)
|
432
431
|
<span class="ruby-identifier">p</span> = <span class="ruby-ivar">@datatype_properties</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">mapping</span><span class="ruby-operator">|</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">mapping</span>.<span class="ruby-identifier">name</span> }
|
433
432
|
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">p</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
@@ -441,11 +440,11 @@ Lookup the property mapped to the specified name
|
|
441
440
|
</div>
|
442
441
|
</div>
|
443
442
|
|
444
|
-
<div id="method-
|
445
|
-
<a name="
|
443
|
+
<div id="method-M000099" class="method-detail">
|
444
|
+
<a name="M000099"></a>
|
446
445
|
|
447
446
|
<div class="method-heading">
|
448
|
-
<a href="#
|
447
|
+
<a href="#M000099" class="method-signature">
|
449
448
|
<span class="method-name">mapped_name?</span><span class="method-args">(name)</span>
|
450
449
|
</a>
|
451
450
|
</div>
|
@@ -455,10 +454,10 @@ Lookup the property mapped to the specified name
|
|
455
454
|
Is there a mapping for a property with this name?
|
456
455
|
</p>
|
457
456
|
<p><a class="source-toggle" href="#"
|
458
|
-
onclick="toggleCode('
|
459
|
-
<div class="method-source-code" id="
|
457
|
+
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
458
|
+
<div class="method-source-code" id="M000099-source">
|
460
459
|
<pre>
|
461
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
460
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 191</span>
|
462
461
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapped_name?</span>(<span class="ruby-identifier">name</span>)
|
463
462
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_property_uri</span>(<span class="ruby-identifier">name</span>) <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
464
463
|
<span class="ruby-keyword kw">end</span>
|
@@ -467,11 +466,11 @@ Is there a mapping for a property with this name?
|
|
467
466
|
</div>
|
468
467
|
</div>
|
469
468
|
|
470
|
-
<div id="method-
|
471
|
-
<a name="
|
469
|
+
<div id="method-M000100" class="method-detail">
|
470
|
+
<a name="M000100"></a>
|
472
471
|
|
473
472
|
<div class="method-heading">
|
474
|
-
<a href="#
|
473
|
+
<a href="#M000100" class="method-signature">
|
475
474
|
<span class="method-name">mapped_uri?</span><span class="method-args">(uri)</span>
|
476
475
|
</a>
|
477
476
|
</div>
|
@@ -481,10 +480,10 @@ Is there a mapping for a property with this name?
|
|
481
480
|
Is there a mapping for this uri?
|
482
481
|
</p>
|
483
482
|
<p><a class="source-toggle" href="#"
|
484
|
-
onclick="toggleCode('
|
485
|
-
<div class="method-source-code" id="
|
483
|
+
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
484
|
+
<div class="method-source-code" id="M000100-source">
|
486
485
|
<pre>
|
487
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
486
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 196</span>
|
488
487
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapped_uri?</span>(<span class="ruby-identifier">uri</span>)
|
489
488
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_name</span>(<span class="ruby-identifier">uri</span>) <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
490
489
|
<span class="ruby-keyword kw">end</span>
|
@@ -493,11 +492,11 @@ Is there a mapping for this uri?
|
|
493
492
|
</div>
|
494
493
|
</div>
|
495
494
|
|
496
|
-
<div id="method-
|
497
|
-
<a name="
|
495
|
+
<div id="method-M000103" class="method-detail">
|
496
|
+
<a name="M000103"></a>
|
498
497
|
|
499
498
|
<div class="method-heading">
|
500
|
-
<a href="#
|
499
|
+
<a href="#M000103" class="method-signature">
|
501
500
|
<span class="method-name">remove</span><span class="method-args">(datatype_property)</span>
|
502
501
|
</a>
|
503
502
|
</div>
|
@@ -508,10 +507,10 @@ Remove a <a href="DatatypeProperty.html">DatatypeProperty</a> from the
|
|
508
507
|
collection
|
509
508
|
</p>
|
510
509
|
<p><a class="source-toggle" href="#"
|
511
|
-
onclick="toggleCode('
|
512
|
-
<div class="method-source-code" id="
|
510
|
+
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
511
|
+
<div class="method-source-code" id="M000103-source">
|
513
512
|
<pre>
|
514
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
513
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 211</span>
|
515
514
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">datatype_property</span>)
|
516
515
|
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@datatype_properties</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">datatype_property</span>)
|
517
516
|
<span class="ruby-keyword kw">end</span>
|
@@ -520,11 +519,11 @@ collection
|
|
520
519
|
</div>
|
521
520
|
</div>
|
522
521
|
|
523
|
-
<div id="method-
|
524
|
-
<a name="
|
522
|
+
<div id="method-M000104" class="method-detail">
|
523
|
+
<a name="M000104"></a>
|
525
524
|
|
526
525
|
<div class="method-heading">
|
527
|
-
<a href="#
|
526
|
+
<a href="#M000104" class="method-signature">
|
528
527
|
<span class="method-name">remove_by_name</span><span class="method-args">(name)</span>
|
529
528
|
</a>
|
530
529
|
</div>
|
@@ -535,10 +534,10 @@ Remove a <a href="DatatypeProperty.html">DatatypeProperty</a> by its mapped
|
|
535
534
|
name
|
536
535
|
</p>
|
537
536
|
<p><a class="source-toggle" href="#"
|
538
|
-
onclick="toggleCode('
|
539
|
-
<div class="method-source-code" id="
|
537
|
+
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
538
|
+
<div class="method-source-code" id="M000104-source">
|
540
539
|
<pre>
|
541
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
540
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 216</span>
|
542
541
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_by_name</span>(<span class="ruby-identifier">name</span>)
|
543
542
|
<span class="ruby-identifier">p</span> = <span class="ruby-identifier">get_by_name</span>(<span class="ruby-identifier">name</span>)
|
544
543
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">p</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>)
|
@@ -550,11 +549,11 @@ name
|
|
550
549
|
</div>
|
551
550
|
</div>
|
552
551
|
|
553
|
-
<div id="method-
|
554
|
-
<a name="
|
552
|
+
<div id="method-M000105" class="method-detail">
|
553
|
+
<a name="M000105"></a>
|
555
554
|
|
556
555
|
<div class="method-heading">
|
557
|
-
<a href="#
|
556
|
+
<a href="#M000105" class="method-signature">
|
558
557
|
<span class="method-name">remove_by_uri</span><span class="method-args">(uri)</span>
|
559
558
|
</a>
|
560
559
|
</div>
|
@@ -565,10 +564,10 @@ Remove a <a href="DatatypeProperty.html">DatatypeProperty</a> by its mapped
|
|
565
564
|
uri
|
566
565
|
</p>
|
567
566
|
<p><a class="source-toggle" href="#"
|
568
|
-
onclick="toggleCode('
|
569
|
-
<div class="method-source-code" id="
|
567
|
+
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
568
|
+
<div class="method-source-code" id="M000105-source">
|
570
569
|
<pre>
|
571
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
570
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 224</span>
|
572
571
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_by_uri</span>(<span class="ruby-identifier">uri</span>)
|
573
572
|
<span class="ruby-identifier">p</span> = <span class="ruby-identifier">get_by_uri</span>(<span class="ruby-identifier">uri</span>)
|
574
573
|
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">p</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>)
|
@@ -580,11 +579,11 @@ uri
|
|
580
579
|
</div>
|
581
580
|
</div>
|
582
581
|
|
583
|
-
<div id="method-
|
584
|
-
<a name="
|
582
|
+
<div id="method-M000106" class="method-detail">
|
583
|
+
<a name="M000106"></a>
|
585
584
|
|
586
585
|
<div class="method-heading">
|
587
|
-
<a href="#
|
586
|
+
<a href="#M000106" class="method-signature">
|
588
587
|
<span class="method-name">to_rdf</span><span class="method-args">()</span>
|
589
588
|
</a>
|
590
589
|
</div>
|
@@ -595,10 +594,10 @@ Dump this object to an <a href="RDF.html">RDF</a>/XML representation
|
|
595
594
|
suitable for submitting to the Platform
|
596
595
|
</p>
|
597
596
|
<p><a class="source-toggle" href="#"
|
598
|
-
onclick="toggleCode('
|
599
|
-
<div class="method-source-code" id="
|
597
|
+
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
598
|
+
<div class="method-source-code" id="M000106-source">
|
600
599
|
<pre>
|
601
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
600
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 232</span>
|
602
601
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>
|
603
602
|
<span class="ruby-identifier">rdf</span> = <span class="ruby-node">"<rdf:RDF xmlns:frm=\"#{Pho::Namespaces::FRAME}\" "</span>
|
604
603
|
<span class="ruby-identifier">rdf</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "</span>
|
@@ -627,11 +626,11 @@ suitable for submitting to the Platform
|
|
627
626
|
</div>
|
628
627
|
</div>
|
629
628
|
|
630
|
-
<div id="method-
|
631
|
-
<a name="
|
629
|
+
<div id="method-M000107" class="method-detail">
|
630
|
+
<a name="M000107"></a>
|
632
631
|
|
633
632
|
<div class="method-heading">
|
634
|
-
<a href="#
|
633
|
+
<a href="#M000107" class="method-signature">
|
635
634
|
<span class="method-name">upload</span><span class="method-args">(store)</span>
|
636
635
|
</a>
|
637
636
|
</div>
|
@@ -642,10 +641,10 @@ Upload an <a href="RDF.html">RDF</a>/XML presentation of this object to the
|
|
642
641
|
provided Platform <a href="Store.html">Store</a>
|
643
642
|
</p>
|
644
643
|
<p><a class="source-toggle" href="#"
|
645
|
-
onclick="toggleCode('
|
646
|
-
<div class="method-source-code" id="
|
644
|
+
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
645
|
+
<div class="method-source-code" id="M000107-source">
|
647
646
|
<pre>
|
648
|
-
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line
|
647
|
+
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 257</span>
|
649
648
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload</span>(<span class="ruby-identifier">store</span>)
|
650
649
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">store</span>.<span class="ruby-identifier">put_field_predicate_map</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_rdf</span>)
|
651
650
|
<span class="ruby-keyword kw">end</span>
|