pho 0.7.5 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -124,7 +124,7 @@ Class for converting to and from resource hashes
|
|
124
124
|
|
125
125
|
<div class="method-heading">
|
126
126
|
<a href="#M000088" class="method-signature">
|
127
|
-
<span class="method-name">parse</span><span class="method-args">(data,
|
127
|
+
<span class="method-name">parse</span><span class="method-args">(data, format=:rdfxml)</span>
|
128
128
|
</a>
|
129
129
|
</div>
|
130
130
|
|
@@ -134,28 +134,31 @@ Convert specified format into a <a
|
|
134
134
|
href="../ResourceHash.html">ResourceHash</a>
|
135
135
|
</p>
|
136
136
|
<pre>
|
137
|
-
format:: one of rdfxml, ntriples, turtle
|
137
|
+
format:: one of :rdfxml, :ntriples, :turtle
|
138
138
|
data:: String containing the data to be parsed
|
139
|
-
base_uri:: base uri of the data
|
140
139
|
</pre>
|
141
140
|
<p><a class="source-toggle" href="#"
|
142
141
|
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
143
142
|
<div class="method-source-code" id="M000088-source">
|
144
143
|
<pre>
|
145
|
-
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line
|
146
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">
|
147
|
-
<span class="ruby-identifier">
|
148
|
-
<span class="ruby-
|
149
|
-
|
150
|
-
|
151
|
-
<span class="ruby-keyword kw">
|
144
|
+
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 42</span>
|
145
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">format</span>=<span class="ruby-identifier">:rdfxml</span>)
|
146
|
+
<span class="ruby-identifier">graph</span> = <span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Graph</span>.<span class="ruby-identifier">new</span>()
|
147
|
+
<span class="ruby-identifier">io</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">data</span> )
|
148
|
+
|
149
|
+
<span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Reader</span>.<span class="ruby-identifier">for</span>(<span class="ruby-identifier">format</span>).<span class="ruby-identifier">new</span>(<span class="ruby-identifier">io</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">reader</span><span class="ruby-operator">|</span>
|
150
|
+
<span class="ruby-identifier">reader</span>.<span class="ruby-identifier">each_statement</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">statement</span><span class="ruby-operator">|</span>
|
151
|
+
<span class="ruby-identifier">graph</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">statement</span>
|
152
|
+
<span class="ruby-keyword kw">end</span>
|
153
|
+
<span class="ruby-keyword kw">end</span>
|
154
|
+
|
155
|
+
<span class="ruby-identifier">json</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>()
|
156
|
+
|
157
|
+
<span class="ruby-constant">RDF</span><span class="ruby-operator">::</span><span class="ruby-constant">Writer</span>.<span class="ruby-identifier">for</span>(<span class="ruby-identifier">:json</span>).<span class="ruby-identifier">new</span>(<span class="ruby-identifier">json</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">writer</span><span class="ruby-operator">|</span>
|
158
|
+
<span class="ruby-identifier">writer</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">graph</span>
|
152
159
|
<span class="ruby-keyword kw">end</span>
|
153
160
|
|
154
|
-
<span class="ruby-
|
155
|
-
<span class="ruby-identifier">parser</span>.<span class="ruby-identifier">parse_string_into_model</span>(<span class="ruby-identifier">model</span>, <span class="ruby-identifier">data</span>, <span class="ruby-identifier">base_uri</span>)
|
156
|
-
<span class="ruby-identifier">serializer</span> = <span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-constant">Serializer</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"json"</span>, <span class="ruby-value str">"application/json"</span> )
|
157
|
-
<span class="ruby-identifier">json</span> = <span class="ruby-identifier">serializer</span>.<span class="ruby-identifier">model_to_string</span>(<span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-constant">Uri</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">base_uri</span>), <span class="ruby-identifier">model</span>)
|
158
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>( <span class="ruby-identifier">json</span> )
|
161
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>( <span class="ruby-identifier">json</span>.<span class="ruby-identifier">string</span> )
|
159
162
|
<span class="ruby-keyword kw">end</span>
|
160
163
|
</pre>
|
161
164
|
</div>
|
@@ -173,9 +176,8 @@ href="../ResourceHash.html">ResourceHash</a>
|
|
173
176
|
|
174
177
|
<div class="method-description">
|
175
178
|
<p>
|
176
|
-
Parse JSON structured according to the
|
177
|
-
|
178
|
-
Simply invokes the JSON parser.
|
179
|
+
Parse JSON structured according to the RDF-in-JSON specification into a
|
180
|
+
Ruby resource hash. Simply invokes the JSON parser.
|
179
181
|
</p>
|
180
182
|
<pre>
|
181
183
|
json:: valid RDF-in-JSON
|
@@ -184,7 +186,7 @@ Simply invokes the JSON parser.
|
|
184
186
|
onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
|
185
187
|
<div class="method-source-code" id="M000084-source">
|
186
188
|
<pre>
|
187
|
-
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line
|
189
|
+
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 13</span>
|
188
190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_json</span>(<span class="ruby-identifier">json</span>)
|
189
191
|
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">json</span>)
|
190
192
|
<span class="ruby-keyword kw">end</span>
|
@@ -198,7 +200,7 @@ Simply invokes the JSON parser.
|
|
198
200
|
|
199
201
|
<div class="method-heading">
|
200
202
|
<a href="#M000086" class="method-signature">
|
201
|
-
<span class="method-name">parse_ntriples</span><span class="method-args">(ntriples
|
203
|
+
<span class="method-name">parse_ntriples</span><span class="method-args">(ntriples)</span>
|
202
204
|
</a>
|
203
205
|
</div>
|
204
206
|
|
@@ -213,9 +215,9 @@ Parse a string containing N-Triples into a resource hash
|
|
213
215
|
onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
|
214
216
|
<div class="method-source-code" id="M000086-source">
|
215
217
|
<pre>
|
216
|
-
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line
|
217
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_ntriples</span>(<span class="ruby-identifier">ntriples</span
|
218
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier"
|
218
|
+
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 27</span>
|
219
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_ntriples</span>(<span class="ruby-identifier">ntriples</span>)
|
220
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">ntriples</span>, <span class="ruby-identifier">:ntriples</span>)
|
219
221
|
<span class="ruby-keyword kw">end</span>
|
220
222
|
</pre>
|
221
223
|
</div>
|
@@ -227,14 +229,13 @@ Parse a string containing N-Triples into a resource hash
|
|
227
229
|
|
228
230
|
<div class="method-heading">
|
229
231
|
<a href="#M000085" class="method-signature">
|
230
|
-
<span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml
|
232
|
+
<span class="method-name">parse_rdfxml</span><span class="method-args">(rdfxml)</span>
|
231
233
|
</a>
|
232
234
|
</div>
|
233
235
|
|
234
236
|
<div class="method-description">
|
235
237
|
<p>
|
236
|
-
Parse a string containing
|
237
|
-
hash
|
238
|
+
Parse a string containing RDF/XML into a resource hash
|
238
239
|
</p>
|
239
240
|
<pre>
|
240
241
|
rdfxml: a String containing RDF/XML
|
@@ -243,9 +244,9 @@ hash
|
|
243
244
|
onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
|
244
245
|
<div class="method-source-code" id="M000085-source">
|
245
246
|
<pre>
|
246
|
-
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line
|
247
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_rdfxml</span>(<span class="ruby-identifier">rdfxml</span
|
248
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">rdfxml</span>, <span class="ruby-identifier"
|
247
|
+
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 20</span>
|
248
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_rdfxml</span>(<span class="ruby-identifier">rdfxml</span>)
|
249
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">rdfxml</span>, <span class="ruby-identifier">:rdfxml</span>)
|
249
250
|
<span class="ruby-keyword kw">end</span>
|
250
251
|
</pre>
|
251
252
|
</div>
|
@@ -257,7 +258,7 @@ hash
|
|
257
258
|
|
258
259
|
<div class="method-heading">
|
259
260
|
<a href="#M000087" class="method-signature">
|
260
|
-
<span class="method-name">parse_turtle</span><span class="method-args">(turtle
|
261
|
+
<span class="method-name">parse_turtle</span><span class="method-args">(turtle)</span>
|
261
262
|
</a>
|
262
263
|
</div>
|
263
264
|
|
@@ -272,9 +273,9 @@ Parse a string containing Turtle into a resource hash
|
|
272
273
|
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
273
274
|
<div class="method-source-code" id="M000087-source">
|
274
275
|
<pre>
|
275
|
-
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line
|
276
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_turtle</span>(<span class="ruby-identifier">turtle</span
|
277
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">turtle</span>, <span class="ruby-identifier"
|
276
|
+
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 34</span>
|
277
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse_turtle</span>(<span class="ruby-identifier">turtle</span>)
|
278
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">turtle</span>, <span class="ruby-identifier">:turtle</span>)
|
278
279
|
<span class="ruby-keyword kw">end</span>
|
279
280
|
</pre>
|
280
281
|
</div>
|
@@ -292,7 +293,7 @@ Parse a string containing Turtle into a resource hash
|
|
292
293
|
|
293
294
|
<div class="method-description">
|
294
295
|
<p>
|
295
|
-
Serialize a resource hash as
|
296
|
+
Serialize a resource hash as RDF-in-JSON
|
296
297
|
</p>
|
297
298
|
<pre>
|
298
299
|
hash:: the resource hash to serialize
|
@@ -301,7 +302,7 @@ Serialize a resource hash as <a href="../RDF.html">RDF</a>-in-JSON
|
|
301
302
|
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
302
303
|
<div class="method-source-code" id="M000089-source">
|
303
304
|
<pre>
|
304
|
-
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line
|
305
|
+
<span class="ruby-comment cmt"># File lib/pho/converter.rb, line 64</span>
|
305
306
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Converter</span>.<span class="ruby-identifier">serialize_json</span>(<span class="ruby-identifier">hash</span>)
|
306
307
|
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-identifier">hash</span>)
|
307
308
|
<span class="ruby-keyword kw">end</span>
|
@@ -126,9 +126,8 @@ Class providing set algebra methods over triple hashes
|
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p>
|
129
|
-
Accepts two triple hashes, expressed as
|
130
|
-
|
131
|
-
that constitutes the different between the two graphs
|
129
|
+
Accepts two triple hashes, expressed as RDF-in-JSON and returns a new Ruby
|
130
|
+
data structure that constitutes the different between the two graphs
|
132
131
|
</p>
|
133
132
|
<p>
|
134
133
|
i.e. the return value will be a hash containing the triples that are in the
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
83
|
In the Talis Platform a "snapshot" is an <a
|
84
|
-
href="Snapshot.html#
|
84
|
+
href="Snapshot.html#M000194">backup</a> of the contents of a <a
|
85
85
|
href="Store.html">Store</a>
|
86
86
|
</p>
|
87
87
|
<p>
|
@@ -102,11 +102,11 @@ A snapshot can be generated (or scheduled) using the Store.snapshot method.
|
|
102
102
|
<h3 class="section-bar">Methods</h3>
|
103
103
|
|
104
104
|
<div class="name-list">
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
105
|
+
<a href="#M000194">backup</a>
|
106
|
+
<a href="#M000192">new</a>
|
107
|
+
<a href="#M000191">parse</a>
|
108
|
+
<a href="#M000190">read_from_store</a>
|
109
|
+
<a href="#M000193">read_md5</a>
|
110
110
|
</div>
|
111
111
|
</div>
|
112
112
|
|
@@ -176,19 +176,19 @@ The URL from which the snapshot can be retrieved
|
|
176
176
|
<div id="methods">
|
177
177
|
<h3 class="section-bar">Public Class methods</h3>
|
178
178
|
|
179
|
-
<div id="method-
|
180
|
-
<a name="
|
179
|
+
<div id="method-M000192" class="method-detail">
|
180
|
+
<a name="M000192"></a>
|
181
181
|
|
182
182
|
<div class="method-heading">
|
183
|
-
<a href="#
|
183
|
+
<a href="#M000192" class="method-signature">
|
184
184
|
<span class="method-name">new</span><span class="method-args">(url, md5_url, size, units, date)</span>
|
185
185
|
</a>
|
186
186
|
</div>
|
187
187
|
|
188
188
|
<div class="method-description">
|
189
189
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
190
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000192-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 81</span>
|
194
194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">md5_url</span>, <span class="ruby-identifier">size</span>, <span class="ruby-identifier">units</span>, <span class="ruby-identifier">date</span>)
|
@@ -203,21 +203,21 @@ The URL from which the snapshot can be retrieved
|
|
203
203
|
</div>
|
204
204
|
</div>
|
205
205
|
|
206
|
-
<div id="method-
|
207
|
-
<a name="
|
206
|
+
<div id="method-M000191" class="method-detail">
|
207
|
+
<a name="M000191"></a>
|
208
208
|
|
209
209
|
<div class="method-heading">
|
210
|
-
<a href="#
|
210
|
+
<a href="#M000191" class="method-signature">
|
211
211
|
<span class="method-name">parse</span><span class="method-args">(storeuri, content)</span>
|
212
212
|
</a>
|
213
213
|
</div>
|
214
214
|
|
215
215
|
<div class="method-description">
|
216
216
|
<p>
|
217
|
-
Class method to <a href="Snapshot.html#
|
218
|
-
|
219
|
-
href="Store.html#
|
220
|
-
href="Snapshot.html#
|
217
|
+
Class method to <a href="Snapshot.html#M000191">parse</a> the RDF response
|
218
|
+
from the API, e.g. as produced by the <a
|
219
|
+
href="Store.html#M000184">Store.get_snapshots</a> method and create a <a
|
220
|
+
href="Snapshot.html#M000192">new</a> <a href="Snapshot.html">Snapshot</a>
|
221
221
|
object. At the moment the Platform only supports single snapshot.
|
222
222
|
</p>
|
223
223
|
<p>
|
@@ -229,8 +229,8 @@ snapshot can be found, then the method returns nil
|
|
229
229
|
content:: response from the API
|
230
230
|
</pre>
|
231
231
|
<p><a class="source-toggle" href="#"
|
232
|
-
onclick="toggleCode('
|
233
|
-
<div class="method-source-code" id="
|
232
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
233
|
+
<div class="method-source-code" id="M000191-source">
|
234
234
|
<pre>
|
235
235
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 53</span>
|
236
236
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Snapshot</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">storeuri</span>, <span class="ruby-identifier">content</span>)
|
@@ -265,11 +265,11 @@ snapshot can be found, then the method returns nil
|
|
265
265
|
</div>
|
266
266
|
</div>
|
267
267
|
|
268
|
-
<div id="method-
|
269
|
-
<a name="
|
268
|
+
<div id="method-M000190" class="method-detail">
|
269
|
+
<a name="M000190"></a>
|
270
270
|
|
271
271
|
<div class="method-heading">
|
272
|
-
<a href="#
|
272
|
+
<a href="#M000190" class="method-signature">
|
273
273
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
274
274
|
</a>
|
275
275
|
</div>
|
@@ -284,8 +284,8 @@ Read snapshot data from the given store
|
|
284
284
|
</td></tr>
|
285
285
|
</table>
|
286
286
|
<p><a class="source-toggle" href="#"
|
287
|
-
onclick="toggleCode('
|
288
|
-
<div class="method-source-code" id="
|
287
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
288
|
+
<div class="method-source-code" id="M000190-source">
|
289
289
|
<pre>
|
290
290
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 34</span>
|
291
291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Snapshot</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
@@ -305,11 +305,11 @@ Read snapshot data from the given store
|
|
305
305
|
|
306
306
|
<h3 class="section-bar">Public Instance methods</h3>
|
307
307
|
|
308
|
-
<div id="method-
|
309
|
-
<a name="
|
308
|
+
<div id="method-M000194" class="method-detail">
|
309
|
+
<a name="M000194"></a>
|
310
310
|
|
311
311
|
<div class="method-heading">
|
312
|
-
<a href="#
|
312
|
+
<a href="#M000194" class="method-signature">
|
313
313
|
<span class="method-name">backup</span><span class="method-args">(store, dir=Dir.tmpdir)</span>
|
314
314
|
</a>
|
315
315
|
</div>
|
@@ -322,7 +322,7 @@ published value. If they don‘t match then a RuntimeError will be
|
|
322
322
|
raised
|
323
323
|
</p>
|
324
324
|
<table>
|
325
|
-
<tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#
|
325
|
+
<tr><td valign="top">store:</td><td>the store to <a href="Snapshot.html#M000194">backup</a>
|
326
326
|
|
327
327
|
</td></tr>
|
328
328
|
<tr><td valign="top">dir:</td><td>directory in which snapshot will be stored
|
@@ -330,8 +330,8 @@ raised
|
|
330
330
|
</td></tr>
|
331
331
|
</table>
|
332
332
|
<p><a class="source-toggle" href="#"
|
333
|
-
onclick="toggleCode('
|
334
|
-
<div class="method-source-code" id="
|
333
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
334
|
+
<div class="method-source-code" id="M000194-source">
|
335
335
|
<pre>
|
336
336
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 101</span>
|
337
337
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">backup</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">dir</span>=<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">tmpdir</span>)
|
@@ -361,11 +361,11 @@ raised
|
|
361
361
|
</div>
|
362
362
|
</div>
|
363
363
|
|
364
|
-
<div id="method-
|
365
|
-
<a name="
|
364
|
+
<div id="method-M000193" class="method-detail">
|
365
|
+
<a name="M000193"></a>
|
366
366
|
|
367
367
|
<div class="method-heading">
|
368
|
-
<a href="#
|
368
|
+
<a href="#M000193" class="method-signature">
|
369
369
|
<span class="method-name">read_md5</span><span class="method-args">(client=HttpClient.new())</span>
|
370
370
|
</a>
|
371
371
|
</div>
|
@@ -375,8 +375,8 @@ raised
|
|
375
375
|
Read the published MD5 value
|
376
376
|
</p>
|
377
377
|
<p><a class="source-toggle" href="#"
|
378
|
-
onclick="toggleCode('
|
379
|
-
<div class="method-source-code" id="
|
378
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
379
|
+
<div class="method-source-code" id="M000193-source">
|
380
380
|
<pre>
|
381
381
|
<span class="ruby-comment cmt"># File lib/pho/snapshot.rb, line 91</span>
|
382
382
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_md5</span>(<span class="ruby-identifier">client</span>=<span class="ruby-constant">HttpClient</span>.<span class="ruby-identifier">new</span>())
|
@@ -162,9 +162,8 @@ Content Negotiation
|
|
162
162
|
<td class="context-item-name">supports_rdf_json</td>
|
163
163
|
<td class="context-item-value"> [RW] </td>
|
164
164
|
<td class="context-item-desc">
|
165
|
-
Configures whether the remote endpoint supports the
|
166
|
-
|
167
|
-
href="../RDF.html">RDF</a> graphs as JSON. Will default to false.
|
165
|
+
Configures whether the remote endpoint supports the RDF-in-JSON
|
166
|
+
specification for serializing RDF graphs as JSON. Will default to false.
|
168
167
|
|
169
168
|
</td>
|
170
169
|
</tr>
|
@@ -459,7 +458,7 @@ This will generate a <a href="SparqlClient.html#M000050">query</a> like:
|
|
459
458
|
<tr><td valign="top">uris:</td><td>list of the uris to be described
|
460
459
|
|
461
460
|
</td></tr>
|
462
|
-
<tr><td valign="top">format:</td><td>the preferred response format. Default is
|
461
|
+
<tr><td valign="top">format:</td><td>the preferred response format. Default is RDF/XML
|
463
462
|
|
464
463
|
</td></tr>
|
465
464
|
</table>
|
@@ -92,10 +92,10 @@ Captures status information relating to a store
|
|
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="#
|
95
|
+
<a href="#M000127">new</a>
|
96
|
+
<a href="#M000128">read_from_store</a>
|
97
|
+
<a href="#M000129">readable?</a>
|
98
|
+
<a href="#M000130">writeable?</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -153,19 +153,19 @@ Interval before status should be requested again.
|
|
153
153
|
<div id="methods">
|
154
154
|
<h3 class="section-bar">Public Class methods</h3>
|
155
155
|
|
156
|
-
<div id="method-
|
157
|
-
<a name="
|
156
|
+
<div id="method-M000127" class="method-detail">
|
157
|
+
<a name="M000127"></a>
|
158
158
|
|
159
159
|
<div class="method-heading">
|
160
|
-
<a href="#
|
160
|
+
<a href="#M000127" class="method-signature">
|
161
161
|
<span class="method-name">new</span><span class="method-args">(retry_interval, status_message, access_mode)</span>
|
162
162
|
</a>
|
163
163
|
</div>
|
164
164
|
|
165
165
|
<div class="method-description">
|
166
166
|
<p><a class="source-toggle" href="#"
|
167
|
-
onclick="toggleCode('
|
168
|
-
<div class="method-source-code" id="
|
167
|
+
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
168
|
+
<div class="method-source-code" id="M000127-source">
|
169
169
|
<pre>
|
170
170
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 25</span>
|
171
171
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">retry_interval</span>, <span class="ruby-identifier">status_message</span>, <span class="ruby-identifier">access_mode</span>)
|
@@ -178,11 +178,11 @@ Interval before status should be requested again.
|
|
178
178
|
</div>
|
179
179
|
</div>
|
180
180
|
|
181
|
-
<div id="method-
|
182
|
-
<a name="
|
181
|
+
<div id="method-M000128" class="method-detail">
|
182
|
+
<a name="M000128"></a>
|
183
183
|
|
184
184
|
<div class="method-heading">
|
185
|
-
<a href="#
|
185
|
+
<a href="#M000128" class="method-signature">
|
186
186
|
<span class="method-name">read_from_store</span><span class="method-args">(store)</span>
|
187
187
|
</a>
|
188
188
|
</div>
|
@@ -202,8 +202,8 @@ href="Status.html">Status</a> object.
|
|
202
202
|
</td></tr>
|
203
203
|
</table>
|
204
204
|
<p><a class="source-toggle" href="#"
|
205
|
-
onclick="toggleCode('
|
206
|
-
<div class="method-source-code" id="
|
205
|
+
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
206
|
+
<div class="method-source-code" id="M000128-source">
|
207
207
|
<pre>
|
208
208
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 36</span>
|
209
209
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Status</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>)
|
@@ -229,22 +229,22 @@ href="Status.html">Status</a> object.
|
|
229
229
|
|
230
230
|
<h3 class="section-bar">Public Instance methods</h3>
|
231
231
|
|
232
|
-
<div id="method-
|
233
|
-
<a name="
|
232
|
+
<div id="method-M000129" class="method-detail">
|
233
|
+
<a name="M000129"></a>
|
234
234
|
|
235
235
|
<div class="method-heading">
|
236
|
-
<a href="#
|
236
|
+
<a href="#M000129" class="method-signature">
|
237
237
|
<span class="method-name">readable?</span><span class="method-args">()</span>
|
238
238
|
</a>
|
239
239
|
</div>
|
240
240
|
|
241
241
|
<div class="method-description">
|
242
242
|
<p>
|
243
|
-
Is the store <a href="Status.html#
|
243
|
+
Is the store <a href="Status.html#M000129">readable?</a>
|
244
244
|
</p>
|
245
245
|
<p><a class="source-toggle" href="#"
|
246
|
-
onclick="toggleCode('
|
247
|
-
<div class="method-source-code" id="
|
246
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
247
|
+
<div class="method-source-code" id="M000129-source">
|
248
248
|
<pre>
|
249
249
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 54</span>
|
250
250
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readable?</span>
|
@@ -255,22 +255,22 @@ Is the store <a href="Status.html#M000133">readable?</a>
|
|
255
255
|
</div>
|
256
256
|
</div>
|
257
257
|
|
258
|
-
<div id="method-
|
259
|
-
<a name="
|
258
|
+
<div id="method-M000130" class="method-detail">
|
259
|
+
<a name="M000130"></a>
|
260
260
|
|
261
261
|
<div class="method-heading">
|
262
|
-
<a href="#
|
262
|
+
<a href="#M000130" class="method-signature">
|
263
263
|
<span class="method-name">writeable?</span><span class="method-args">()</span>
|
264
264
|
</a>
|
265
265
|
</div>
|
266
266
|
|
267
267
|
<div class="method-description">
|
268
268
|
<p>
|
269
|
-
Is the store <a href="Status.html#
|
269
|
+
Is the store <a href="Status.html#M000130">writeable?</a>
|
270
270
|
</p>
|
271
271
|
<p><a class="source-toggle" href="#"
|
272
|
-
onclick="toggleCode('
|
273
|
-
<div class="method-source-code" id="
|
272
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
273
|
+
<div class="method-source-code" id="M000130-source">
|
274
274
|
<pre>
|
275
275
|
<span class="ruby-comment cmt"># File lib/pho/status.rb, line 59</span>
|
276
276
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">writeable?</span>
|