pho 0.7.5 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +21 -0
- data/Rakefile +1 -1
- data/doc/rdoc/classes/Pho.html +0 -5
- data/doc/rdoc/classes/Pho/CommandLine.html +108 -108
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +15 -15
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +3 -3
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +1 -1
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +106 -106
- data/doc/rdoc/classes/Pho/FieldWeighting.html +14 -14
- data/doc/rdoc/classes/Pho/Job.html +67 -68
- data/doc/rdoc/classes/Pho/Jobs.html +62 -62
- data/doc/rdoc/classes/Pho/OAI/Records.html +7 -6
- data/doc/rdoc/classes/Pho/OAI/Statistics.html +194 -0
- data/doc/rdoc/classes/Pho/QueryProfile.html +86 -81
- data/doc/rdoc/classes/Pho/ResourceHash.html +1 -1
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -35
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +2 -3
- data/doc/rdoc/classes/Pho/Snapshot.html +36 -36
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +3 -4
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +257 -254
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +14 -14
- data/doc/rdoc/classes/Pho/Update/Changeset.html +5 -6
- data/doc/rdoc/classes/Pho/Update/Changesets.html +2 -3
- data/doc/rdoc/classes/Pho/Update/Statement.html +3 -4
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +33 -4
- data/doc/rdoc/files/lib/pho/converter_rb.html +1 -8
- data/doc/rdoc/files/lib/pho/oai_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/query_profile_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
- data/doc/rdoc/files/lib/pho_rb.html +5 -3
- data/doc/rdoc/fr_class_index.html +0 -2
- data/doc/rdoc/fr_file_index.html +0 -1
- data/doc/rdoc/fr_method_index.html +132 -136
- data/lib/pho.rb +7 -3
- data/lib/pho/converter.rb +23 -30
- data/lib/pho/oai.rb +5 -4
- data/lib/pho/query_profile.rb +6 -1
- data/lib/pho/store.rb +17 -12
- data/tests/tc_changeset_builder.rb +2 -2
- data/tests/tc_converter.rb +3 -3
- data/tests/tc_oai.rb +1 -1
- data/tests/tc_query_profile.rb +37 -1
- data/tests/ts_pho.rb +0 -1
- metadata +5 -9
- data/doc/rdoc/classes/Pho/RDF.html +0 -120
- data/doc/rdoc/classes/Pho/RDF/Parser.html +0 -279
- data/doc/rdoc/files/lib/pho/rdf_rb.html +0 -108
- data/lib/pho/rdf.rb +0 -76
- data/tests/tc_rdf_parser.rb +0 -37
@@ -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="#M000152">new</a>
|
96
|
+
<a href="#M000153">to_rdf</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -133,7 +133,7 @@ Short name for the property
|
|
133
133
|
<td class="context-item-name">property_uri</td>
|
134
134
|
<td class="context-item-value"> [R] </td>
|
135
135
|
<td class="context-item-desc">
|
136
|
-
|
136
|
+
RDF predicate URI for the mapped property
|
137
137
|
|
138
138
|
</td>
|
139
139
|
</tr>
|
@@ -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-M000152" class="method-detail">
|
159
|
+
<a name="M000152"></a>
|
160
160
|
|
161
161
|
<div class="method-heading">
|
162
|
-
<a href="#
|
162
|
+
<a href="#M000152" 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('M000152-source');return false;">[Source]</a></p>
|
170
|
+
<div class="method-source-code" id="M000152-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,19 +183,19 @@ 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-M000153" class="method-detail">
|
187
|
+
<a name="M000153"></a>
|
188
188
|
|
189
189
|
<div class="method-heading">
|
190
|
-
<a href="#
|
190
|
+
<a href="#M000153" 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>
|
194
194
|
|
195
195
|
<div class="method-description">
|
196
196
|
<p>
|
197
|
-
Convert this object into an
|
198
|
-
|
197
|
+
Convert this object into an RDF representation. Generates a simple
|
198
|
+
rdf:Description, optionally including namespaces
|
199
199
|
</p>
|
200
200
|
<table>
|
201
201
|
<tr><td valign="top">ns:</td><td>include namespace declarations
|
@@ -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('M000153-source');return false;">[Source]</a></p>
|
207
|
+
<div class="method-source-code" id="M000153-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>)
|
@@ -261,9 +261,9 @@ substituted instead of the original value.
|
|
261
261
|
<p>
|
262
262
|
The second callback method, <tt>post_process</tt> is called after data has
|
263
263
|
been written to the store and provides access to the response from the
|
264
|
-
store, and the
|
265
|
-
|
266
|
-
|
264
|
+
store, and the RDF/XML data that had been attempted to be stored. As the
|
265
|
+
request may have been un-successful, code should check the status on the
|
266
|
+
HTTPMessage parameter.
|
267
267
|
</p>
|
268
268
|
<pre>
|
269
269
|
class MyCallback
|
@@ -92,12 +92,12 @@ Simple mechanism for managing etags
|
|
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="#
|
95
|
+
<a href="#M000209">add</a>
|
96
|
+
<a href="#M000210">add_from_response</a>
|
97
|
+
<a href="#M000211">get</a>
|
98
|
+
<a href="#M000212">has_tag?</a>
|
99
|
+
<a href="#M000207">new</a>
|
100
|
+
<a href="#M000208">save</a>
|
101
101
|
</div>
|
102
102
|
</div>
|
103
103
|
|
@@ -137,19 +137,19 @@ Simple mechanism for managing etags
|
|
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-M000207" class="method-detail">
|
141
|
+
<a name="M000207"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000207" class="method-signature">
|
145
145
|
<span class="method-name">new</span><span class="method-args">(file = nil)</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('M000207-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000207-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 11</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -167,19 +167,19 @@ Simple mechanism for managing etags
|
|
167
167
|
|
168
168
|
<h3 class="section-bar">Public Instance methods</h3>
|
169
169
|
|
170
|
-
<div id="method-
|
171
|
-
<a name="
|
170
|
+
<div id="method-M000209" class="method-detail">
|
171
|
+
<a name="M000209"></a>
|
172
172
|
|
173
173
|
<div class="method-heading">
|
174
|
-
<a href="#
|
174
|
+
<a href="#M000209" class="method-signature">
|
175
175
|
<span class="method-name">add</span><span class="method-args">(uri, tag)</span>
|
176
176
|
</a>
|
177
177
|
</div>
|
178
178
|
|
179
179
|
<div class="method-description">
|
180
180
|
<p><a class="source-toggle" href="#"
|
181
|
-
onclick="toggleCode('
|
182
|
-
<div class="method-source-code" id="
|
181
|
+
onclick="toggleCode('M000209-source');return false;">[Source]</a></p>
|
182
|
+
<div class="method-source-code" id="M000209-source">
|
183
183
|
<pre>
|
184
184
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 34</span>
|
185
185
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">tag</span>)
|
@@ -193,19 +193,19 @@ Simple mechanism for managing etags
|
|
193
193
|
</div>
|
194
194
|
</div>
|
195
195
|
|
196
|
-
<div id="method-
|
197
|
-
<a name="
|
196
|
+
<div id="method-M000210" class="method-detail">
|
197
|
+
<a name="M000210"></a>
|
198
198
|
|
199
199
|
<div class="method-heading">
|
200
|
-
<a href="#
|
200
|
+
<a href="#M000210" class="method-signature">
|
201
201
|
<span class="method-name">add_from_response</span><span class="method-args">(uri, response)</span>
|
202
202
|
</a>
|
203
203
|
</div>
|
204
204
|
|
205
205
|
<div class="method-description">
|
206
206
|
<p><a class="source-toggle" href="#"
|
207
|
-
onclick="toggleCode('
|
208
|
-
<div class="method-source-code" id="
|
207
|
+
onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
|
208
|
+
<div class="method-source-code" id="M000210-source">
|
209
209
|
<pre>
|
210
210
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 41</span>
|
211
211
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_from_response</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">response</span>)
|
@@ -216,19 +216,19 @@ Simple mechanism for managing etags
|
|
216
216
|
</div>
|
217
217
|
</div>
|
218
218
|
|
219
|
-
<div id="method-
|
220
|
-
<a name="
|
219
|
+
<div id="method-M000211" class="method-detail">
|
220
|
+
<a name="M000211"></a>
|
221
221
|
|
222
222
|
<div class="method-heading">
|
223
|
-
<a href="#
|
223
|
+
<a href="#M000211" class="method-signature">
|
224
224
|
<span class="method-name">get</span><span class="method-args">(uri)</span>
|
225
225
|
</a>
|
226
226
|
</div>
|
227
227
|
|
228
228
|
<div class="method-description">
|
229
229
|
<p><a class="source-toggle" href="#"
|
230
|
-
onclick="toggleCode('
|
231
|
-
<div class="method-source-code" id="
|
230
|
+
onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
|
231
|
+
<div class="method-source-code" id="M000211-source">
|
232
232
|
<pre>
|
233
233
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 45</span>
|
234
234
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">uri</span>)
|
@@ -239,19 +239,19 @@ Simple mechanism for managing etags
|
|
239
239
|
</div>
|
240
240
|
</div>
|
241
241
|
|
242
|
-
<div id="method-
|
243
|
-
<a name="
|
242
|
+
<div id="method-M000212" class="method-detail">
|
243
|
+
<a name="M000212"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="#
|
246
|
+
<a href="#M000212" class="method-signature">
|
247
247
|
<span class="method-name">has_tag?</span><span class="method-args">(uri)</span>
|
248
248
|
</a>
|
249
249
|
</div>
|
250
250
|
|
251
251
|
<div class="method-description">
|
252
252
|
<p><a class="source-toggle" href="#"
|
253
|
-
onclick="toggleCode('
|
254
|
-
<div class="method-source-code" id="
|
253
|
+
onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
|
254
|
+
<div class="method-source-code" id="M000212-source">
|
255
255
|
<pre>
|
256
256
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 49</span>
|
257
257
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_tag?</span>(<span class="ruby-identifier">uri</span>)
|
@@ -262,19 +262,19 @@ Simple mechanism for managing etags
|
|
262
262
|
</div>
|
263
263
|
</div>
|
264
264
|
|
265
|
-
<div id="method-
|
266
|
-
<a name="
|
265
|
+
<div id="method-M000208" class="method-detail">
|
266
|
+
<a name="M000208"></a>
|
267
267
|
|
268
268
|
<div class="method-heading">
|
269
|
-
<a href="#
|
269
|
+
<a href="#M000208" class="method-signature">
|
270
270
|
<span class="method-name">save</span><span class="method-args">(other=nil)</span>
|
271
271
|
</a>
|
272
272
|
</div>
|
273
273
|
|
274
274
|
<div class="method-description">
|
275
275
|
<p><a class="source-toggle" href="#"
|
276
|
-
onclick="toggleCode('
|
277
|
-
<div class="method-source-code" id="
|
276
|
+
onclick="toggleCode('M000208-source');return false;">[Source]</a></p>
|
277
|
+
<div class="method-source-code" id="M000208-source">
|
278
278
|
<pre>
|
279
279
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 20</span>
|
280
280
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">other</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -257,7 +257,7 @@ response
|
|
257
257
|
<tr><td valign="top">facets:</td><td>an ordered list of facets to be used
|
258
258
|
|
259
259
|
</td></tr>
|
260
|
-
<tr><td valign="top">params:</td><td>additional params. See <a href="../Store.html#
|
260
|
+
<tr><td valign="top">params:</td><td>additional params. See <a href="../Store.html#M000171">Store.facet</a> for
|
261
261
|
details. XML output is requested automatically
|
262
262
|
|
263
263
|
</td></tr>
|
@@ -101,23 +101,23 @@ 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="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
104
|
+
<a href="#M000096"><<</a>
|
105
|
+
<a href="#M000094">add_mapping</a>
|
106
|
+
<a href="#M000093">create_mapping</a>
|
107
|
+
<a href="#M000101">get_by_name</a>
|
108
|
+
<a href="#M000102">get_by_uri</a>
|
109
|
+
<a href="#M000097">get_name</a>
|
110
|
+
<a href="#M000098">get_property_uri</a>
|
111
|
+
<a href="#M000099">mapped_name?</a>
|
112
|
+
<a href="#M000100">mapped_uri?</a>
|
113
|
+
<a href="#M000095">new</a>
|
114
|
+
<a href="#M000092">read_from_store</a>
|
115
|
+
<a href="#M000103">remove</a>
|
116
|
+
<a href="#M000106">remove_all</a>
|
117
|
+
<a href="#M000104">remove_by_name</a>
|
118
|
+
<a href="#M000105">remove_by_uri</a>
|
119
|
+
<a href="#M000107">to_rdf</a>
|
120
|
+
<a href="#M000108">upload</a>
|
121
121
|
</div>
|
122
122
|
</div>
|
123
123
|
|
@@ -171,11 +171,11 @@ URI for this resource
|
|
171
171
|
<div id="methods">
|
172
172
|
<h3 class="section-bar">Public Class methods</h3>
|
173
173
|
|
174
|
-
<div id="method-
|
175
|
-
<a name="
|
174
|
+
<div id="method-M000094" class="method-detail">
|
175
|
+
<a name="M000094"></a>
|
176
176
|
|
177
177
|
<div class="method-heading">
|
178
|
-
<a href="#
|
178
|
+
<a href="#M000094" class="method-signature">
|
179
179
|
<span class="method-name">add_mapping</span><span class="method-args">(fpmap, store, property_uri, name, analyzer=nil)</span>
|
180
180
|
</a>
|
181
181
|
</div>
|
@@ -190,8 +190,8 @@ supplied data to ensure it matches the platform rules.
|
|
190
190
|
Then automatically appends it to the provided fpmap instance
|
191
191
|
</p>
|
192
192
|
<p><a class="source-toggle" href="#"
|
193
|
-
onclick="toggleCode('
|
194
|
-
<div class="method-source-code" id="
|
193
|
+
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
194
|
+
<div class="method-source-code" id="M000094-source">
|
195
195
|
<pre>
|
196
196
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 157</span>
|
197
197
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">FieldPredicateMap</span>.<span class="ruby-identifier">add_mapping</span>(<span class="ruby-identifier">fpmap</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>)
|
@@ -204,11 +204,11 @@ Then automatically appends it to the provided fpmap instance
|
|
204
204
|
</div>
|
205
205
|
</div>
|
206
206
|
|
207
|
-
<div id="method-
|
208
|
-
<a name="
|
207
|
+
<div id="method-M000093" class="method-detail">
|
208
|
+
<a name="M000093"></a>
|
209
209
|
|
210
210
|
<div class="method-heading">
|
211
|
-
<a href="#
|
211
|
+
<a href="#M000093" class="method-signature">
|
212
212
|
<span class="method-name">create_mapping</span><span class="method-args">(store, property_uri, name, analyzer=nil)</span>
|
213
213
|
</a>
|
214
214
|
</div>
|
@@ -220,8 +220,8 @@ automatically assigning a unique identifier to it, and validating the
|
|
220
220
|
supplied data to ensure it matches the platform rules
|
221
221
|
</p>
|
222
222
|
<p><a class="source-toggle" href="#"
|
223
|
-
onclick="toggleCode('
|
224
|
-
<div class="method-source-code" id="
|
223
|
+
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
224
|
+
<div class="method-source-code" id="M000093-source">
|
225
225
|
<pre>
|
226
226
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 139</span>
|
227
227
|
<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>)
|
@@ -242,19 +242,19 @@ supplied data to ensure it matches the platform rules
|
|
242
242
|
</div>
|
243
243
|
</div>
|
244
244
|
|
245
|
-
<div id="method-
|
246
|
-
<a name="
|
245
|
+
<div id="method-M000095" class="method-detail">
|
246
|
+
<a name="M000095"></a>
|
247
247
|
|
248
248
|
<div class="method-heading">
|
249
|
-
<a href="#
|
249
|
+
<a href="#M000095" class="method-signature">
|
250
250
|
<span class="method-name">new</span><span class="method-args">(uri, label, datatype_properties = [])</span>
|
251
251
|
</a>
|
252
252
|
</div>
|
253
253
|
|
254
254
|
<div class="method-description">
|
255
255
|
<p><a class="source-toggle" href="#"
|
256
|
-
onclick="toggleCode('
|
257
|
-
<div class="method-source-code" id="
|
256
|
+
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
257
|
+
<div class="method-source-code" id="M000095-source">
|
258
258
|
<pre>
|
259
259
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 163</span>
|
260
260
|
<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> = [])
|
@@ -267,11 +267,11 @@ supplied data to ensure it matches the platform rules
|
|
267
267
|
</div>
|
268
268
|
</div>
|
269
269
|
|
270
|
-
<div id="method-
|
271
|
-
<a name="
|
270
|
+
<div id="method-M000092" class="method-detail">
|
271
|
+
<a name="M000092"></a>
|
272
272
|
|
273
273
|
<div class="method-heading">
|
274
|
-
<a href="#
|
274
|
+
<a href="#M000092" class="method-signature">
|
275
275
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
276
276
|
</a>
|
277
277
|
</div>
|
@@ -283,8 +283,8 @@ the provided store. The method will retrieve the config as JSON, and parse
|
|
283
283
|
it to create an object instance.
|
284
284
|
</p>
|
285
285
|
<p><a class="source-toggle" href="#"
|
286
|
-
onclick="toggleCode('
|
287
|
-
<div class="method-source-code" id="
|
286
|
+
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
287
|
+
<div class="method-source-code" id="M000092-source">
|
288
288
|
<pre>
|
289
289
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 109</span>
|
290
290
|
<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>)
|
@@ -321,11 +321,11 @@ it to create an object instance.
|
|
321
321
|
|
322
322
|
<h3 class="section-bar">Public Instance methods</h3>
|
323
323
|
|
324
|
-
<div id="method-
|
325
|
-
<a name="
|
324
|
+
<div id="method-M000096" class="method-detail">
|
325
|
+
<a name="M000096"></a>
|
326
326
|
|
327
327
|
<div class="method-heading">
|
328
|
-
<a href="#
|
328
|
+
<a href="#M000096" class="method-signature">
|
329
329
|
<span class="method-name"><<</span><span class="method-args">(obj)</span>
|
330
330
|
</a>
|
331
331
|
</div>
|
@@ -337,8 +337,8 @@ this map. Note that the method does not validate the object, and neither
|
|
337
337
|
does it check for duplicate mappings.
|
338
338
|
</p>
|
339
339
|
<p><a class="source-toggle" href="#"
|
340
|
-
onclick="toggleCode('
|
341
|
-
<div class="method-source-code" id="
|
340
|
+
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
341
|
+
<div class="method-source-code" id="M000096-source">
|
342
342
|
<pre>
|
343
343
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 172</span>
|
344
344
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-identifier">obj</span>)
|
@@ -349,11 +349,11 @@ does it check for duplicate mappings.
|
|
349
349
|
</div>
|
350
350
|
</div>
|
351
351
|
|
352
|
-
<div id="method-
|
353
|
-
<a name="
|
352
|
+
<div id="method-M000101" class="method-detail">
|
353
|
+
<a name="M000101"></a>
|
354
354
|
|
355
355
|
<div class="method-heading">
|
356
|
-
<a href="#
|
356
|
+
<a href="#M000101" class="method-signature">
|
357
357
|
<span class="method-name">get_by_name</span><span class="method-args">(name)</span>
|
358
358
|
</a>
|
359
359
|
</div>
|
@@ -364,8 +364,8 @@ Find the <a href="DatatypeProperty.html">DatatypeProperty</a> (if any) with
|
|
364
364
|
the following name mapping
|
365
365
|
</p>
|
366
366
|
<p><a class="source-toggle" href="#"
|
367
|
-
onclick="toggleCode('
|
368
|
-
<div class="method-source-code" id="
|
367
|
+
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
368
|
+
<div class="method-source-code" id="M000101-source">
|
369
369
|
<pre>
|
370
370
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 211</span>
|
371
371
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_by_name</span>(<span class="ruby-identifier">name</span>)
|
@@ -376,11 +376,11 @@ the following name mapping
|
|
376
376
|
</div>
|
377
377
|
</div>
|
378
378
|
|
379
|
-
<div id="method-
|
380
|
-
<a name="
|
379
|
+
<div id="method-M000102" class="method-detail">
|
380
|
+
<a name="M000102"></a>
|
381
381
|
|
382
382
|
<div class="method-heading">
|
383
|
-
<a href="#
|
383
|
+
<a href="#M000102" class="method-signature">
|
384
384
|
<span class="method-name">get_by_uri</span><span class="method-args">(uri)</span>
|
385
385
|
</a>
|
386
386
|
</div>
|
@@ -391,8 +391,8 @@ Find the <a href="DatatypeProperty.html">DatatypeProperty</a> using a
|
|
391
391
|
property uri
|
392
392
|
</p>
|
393
393
|
<p><a class="source-toggle" href="#"
|
394
|
-
onclick="toggleCode('
|
395
|
-
<div class="method-source-code" id="
|
394
|
+
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
395
|
+
<div class="method-source-code" id="M000102-source">
|
396
396
|
<pre>
|
397
397
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 216</span>
|
398
398
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_by_uri</span>(<span class="ruby-identifier">uri</span>)
|
@@ -403,11 +403,11 @@ property uri
|
|
403
403
|
</div>
|
404
404
|
</div>
|
405
405
|
|
406
|
-
<div id="method-
|
407
|
-
<a name="
|
406
|
+
<div id="method-M000097" class="method-detail">
|
407
|
+
<a name="M000097"></a>
|
408
408
|
|
409
409
|
<div class="method-heading">
|
410
|
-
<a href="#
|
410
|
+
<a href="#M000097" class="method-signature">
|
411
411
|
<span class="method-name">get_name</span><span class="method-args">(uri)</span>
|
412
412
|
</a>
|
413
413
|
</div>
|
@@ -422,8 +422,8 @@ Lookup the name mapped to the specified uri
|
|
422
422
|
</td></tr>
|
423
423
|
</table>
|
424
424
|
<p><a class="source-toggle" href="#"
|
425
|
-
onclick="toggleCode('
|
426
|
-
<div class="method-source-code" id="
|
425
|
+
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
426
|
+
<div class="method-source-code" id="M000097-source">
|
427
427
|
<pre>
|
428
428
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 179</span>
|
429
429
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_name</span>(<span class="ruby-identifier">uri</span>)
|
@@ -439,11 +439,11 @@ Lookup the name mapped to the specified uri
|
|
439
439
|
</div>
|
440
440
|
</div>
|
441
441
|
|
442
|
-
<div id="method-
|
443
|
-
<a name="
|
442
|
+
<div id="method-M000098" class="method-detail">
|
443
|
+
<a name="M000098"></a>
|
444
444
|
|
445
445
|
<div class="method-heading">
|
446
|
-
<a href="#
|
446
|
+
<a href="#M000098" class="method-signature">
|
447
447
|
<span class="method-name">get_property_uri</span><span class="method-args">(name)</span>
|
448
448
|
</a>
|
449
449
|
</div>
|
@@ -458,8 +458,8 @@ Lookup the property mapped to the specified name
|
|
458
458
|
</td></tr>
|
459
459
|
</table>
|
460
460
|
<p><a class="source-toggle" href="#"
|
461
|
-
onclick="toggleCode('
|
462
|
-
<div class="method-source-code" id="
|
461
|
+
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
462
|
+
<div class="method-source-code" id="M000098-source">
|
463
463
|
<pre>
|
464
464
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 191</span>
|
465
465
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_property_uri</span>(<span class="ruby-identifier">name</span>)
|
@@ -475,11 +475,11 @@ Lookup the property mapped to the specified name
|
|
475
475
|
</div>
|
476
476
|
</div>
|
477
477
|
|
478
|
-
<div id="method-
|
479
|
-
<a name="
|
478
|
+
<div id="method-M000099" class="method-detail">
|
479
|
+
<a name="M000099"></a>
|
480
480
|
|
481
481
|
<div class="method-heading">
|
482
|
-
<a href="#
|
482
|
+
<a href="#M000099" class="method-signature">
|
483
483
|
<span class="method-name">mapped_name?</span><span class="method-args">(name)</span>
|
484
484
|
</a>
|
485
485
|
</div>
|
@@ -489,8 +489,8 @@ Lookup the property mapped to the specified name
|
|
489
489
|
Is there a mapping for a property with this name?
|
490
490
|
</p>
|
491
491
|
<p><a class="source-toggle" href="#"
|
492
|
-
onclick="toggleCode('
|
493
|
-
<div class="method-source-code" id="
|
492
|
+
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
493
|
+
<div class="method-source-code" id="M000099-source">
|
494
494
|
<pre>
|
495
495
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 201</span>
|
496
496
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapped_name?</span>(<span class="ruby-identifier">name</span>)
|
@@ -501,11 +501,11 @@ Is there a mapping for a property with this name?
|
|
501
501
|
</div>
|
502
502
|
</div>
|
503
503
|
|
504
|
-
<div id="method-
|
505
|
-
<a name="
|
504
|
+
<div id="method-M000100" class="method-detail">
|
505
|
+
<a name="M000100"></a>
|
506
506
|
|
507
507
|
<div class="method-heading">
|
508
|
-
<a href="#
|
508
|
+
<a href="#M000100" class="method-signature">
|
509
509
|
<span class="method-name">mapped_uri?</span><span class="method-args">(uri)</span>
|
510
510
|
</a>
|
511
511
|
</div>
|
@@ -515,8 +515,8 @@ Is there a mapping for a property with this name?
|
|
515
515
|
Is there a mapping for this uri?
|
516
516
|
</p>
|
517
517
|
<p><a class="source-toggle" href="#"
|
518
|
-
onclick="toggleCode('
|
519
|
-
<div class="method-source-code" id="
|
518
|
+
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
519
|
+
<div class="method-source-code" id="M000100-source">
|
520
520
|
<pre>
|
521
521
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 206</span>
|
522
522
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mapped_uri?</span>(<span class="ruby-identifier">uri</span>)
|
@@ -527,11 +527,11 @@ Is there a mapping for this uri?
|
|
527
527
|
</div>
|
528
528
|
</div>
|
529
529
|
|
530
|
-
<div id="method-
|
531
|
-
<a name="
|
530
|
+
<div id="method-M000103" class="method-detail">
|
531
|
+
<a name="M000103"></a>
|
532
532
|
|
533
533
|
<div class="method-heading">
|
534
|
-
<a href="#
|
534
|
+
<a href="#M000103" class="method-signature">
|
535
535
|
<span class="method-name">remove</span><span class="method-args">(datatype_property)</span>
|
536
536
|
</a>
|
537
537
|
</div>
|
@@ -542,8 +542,8 @@ Remove a <a href="DatatypeProperty.html">DatatypeProperty</a> from the
|
|
542
542
|
collection
|
543
543
|
</p>
|
544
544
|
<p><a class="source-toggle" href="#"
|
545
|
-
onclick="toggleCode('
|
546
|
-
<div class="method-source-code" id="
|
545
|
+
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
546
|
+
<div class="method-source-code" id="M000103-source">
|
547
547
|
<pre>
|
548
548
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 221</span>
|
549
549
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">datatype_property</span>)
|
@@ -554,11 +554,11 @@ collection
|
|
554
554
|
</div>
|
555
555
|
</div>
|
556
556
|
|
557
|
-
<div id="method-
|
558
|
-
<a name="
|
557
|
+
<div id="method-M000106" class="method-detail">
|
558
|
+
<a name="M000106"></a>
|
559
559
|
|
560
560
|
<div class="method-heading">
|
561
|
-
<a href="#
|
561
|
+
<a href="#M000106" class="method-signature">
|
562
562
|
<span class="method-name">remove_all</span><span class="method-args">()</span>
|
563
563
|
</a>
|
564
564
|
</div>
|
@@ -568,8 +568,8 @@ collection
|
|
568
568
|
Remove all currently mapped properties
|
569
569
|
</p>
|
570
570
|
<p><a class="source-toggle" href="#"
|
571
|
-
onclick="toggleCode('
|
572
|
-
<div class="method-source-code" id="
|
571
|
+
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
572
|
+
<div class="method-source-code" id="M000106-source">
|
573
573
|
<pre>
|
574
574
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 242</span>
|
575
575
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_all</span>()
|
@@ -580,11 +580,11 @@ Remove all currently mapped properties
|
|
580
580
|
</div>
|
581
581
|
</div>
|
582
582
|
|
583
|
-
<div id="method-
|
584
|
-
<a name="
|
583
|
+
<div id="method-M000104" class="method-detail">
|
584
|
+
<a name="M000104"></a>
|
585
585
|
|
586
586
|
<div class="method-heading">
|
587
|
-
<a href="#
|
587
|
+
<a href="#M000104" class="method-signature">
|
588
588
|
<span class="method-name">remove_by_name</span><span class="method-args">(name)</span>
|
589
589
|
</a>
|
590
590
|
</div>
|
@@ -595,8 +595,8 @@ Remove a <a href="DatatypeProperty.html">DatatypeProperty</a> by its mapped
|
|
595
595
|
name
|
596
596
|
</p>
|
597
597
|
<p><a class="source-toggle" href="#"
|
598
|
-
onclick="toggleCode('
|
599
|
-
<div class="method-source-code" id="
|
598
|
+
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
599
|
+
<div class="method-source-code" id="M000104-source">
|
600
600
|
<pre>
|
601
601
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 226</span>
|
602
602
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_by_name</span>(<span class="ruby-identifier">name</span>)
|
@@ -610,11 +610,11 @@ name
|
|
610
610
|
</div>
|
611
611
|
</div>
|
612
612
|
|
613
|
-
<div id="method-
|
614
|
-
<a name="
|
613
|
+
<div id="method-M000105" class="method-detail">
|
614
|
+
<a name="M000105"></a>
|
615
615
|
|
616
616
|
<div class="method-heading">
|
617
|
-
<a href="#
|
617
|
+
<a href="#M000105" class="method-signature">
|
618
618
|
<span class="method-name">remove_by_uri</span><span class="method-args">(uri)</span>
|
619
619
|
</a>
|
620
620
|
</div>
|
@@ -625,8 +625,8 @@ Remove a <a href="DatatypeProperty.html">DatatypeProperty</a> by its mapped
|
|
625
625
|
uri
|
626
626
|
</p>
|
627
627
|
<p><a class="source-toggle" href="#"
|
628
|
-
onclick="toggleCode('
|
629
|
-
<div class="method-source-code" id="
|
628
|
+
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
629
|
+
<div class="method-source-code" id="M000105-source">
|
630
630
|
<pre>
|
631
631
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 234</span>
|
632
632
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_by_uri</span>(<span class="ruby-identifier">uri</span>)
|
@@ -640,23 +640,23 @@ uri
|
|
640
640
|
</div>
|
641
641
|
</div>
|
642
642
|
|
643
|
-
<div id="method-
|
644
|
-
<a name="
|
643
|
+
<div id="method-M000107" class="method-detail">
|
644
|
+
<a name="M000107"></a>
|
645
645
|
|
646
646
|
<div class="method-heading">
|
647
|
-
<a href="#
|
647
|
+
<a href="#M000107" class="method-signature">
|
648
648
|
<span class="method-name">to_rdf</span><span class="method-args">()</span>
|
649
649
|
</a>
|
650
650
|
</div>
|
651
651
|
|
652
652
|
<div class="method-description">
|
653
653
|
<p>
|
654
|
-
Dump this object to an
|
655
|
-
|
654
|
+
Dump this object to an RDF/XML representation suitable for submitting to
|
655
|
+
the Platform
|
656
656
|
</p>
|
657
657
|
<p><a class="source-toggle" href="#"
|
658
|
-
onclick="toggleCode('
|
659
|
-
<div class="method-source-code" id="
|
658
|
+
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
659
|
+
<div class="method-source-code" id="M000107-source">
|
660
660
|
<pre>
|
661
661
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 247</span>
|
662
662
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>
|
@@ -687,23 +687,23 @@ suitable for submitting to the Platform
|
|
687
687
|
</div>
|
688
688
|
</div>
|
689
689
|
|
690
|
-
<div id="method-
|
691
|
-
<a name="
|
690
|
+
<div id="method-M000108" class="method-detail">
|
691
|
+
<a name="M000108"></a>
|
692
692
|
|
693
693
|
<div class="method-heading">
|
694
|
-
<a href="#
|
694
|
+
<a href="#M000108" class="method-signature">
|
695
695
|
<span class="method-name">upload</span><span class="method-args">(store)</span>
|
696
696
|
</a>
|
697
697
|
</div>
|
698
698
|
|
699
699
|
<div class="method-description">
|
700
700
|
<p>
|
701
|
-
Upload an
|
702
|
-
|
701
|
+
Upload an RDF/XML presentation of this object to the provided Platform <a
|
702
|
+
href="Store.html">Store</a>
|
703
703
|
</p>
|
704
704
|
<p><a class="source-toggle" href="#"
|
705
|
-
onclick="toggleCode('
|
706
|
-
<div class="method-source-code" id="
|
705
|
+
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
706
|
+
<div class="method-source-code" id="M000108-source">
|
707
707
|
<pre>
|
708
708
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 272</span>
|
709
709
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">upload</span>(<span class="ruby-identifier">store</span>)
|