pho 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +12 -1
- data/Rakefile +2 -2
- data/doc/index.html +15 -1
- data/doc/rdoc/classes/Pho.html +14 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
- data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +90 -90
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +61 -61
- data/doc/rdoc/classes/Pho/Namespaces.html +6 -1
- data/doc/rdoc/classes/Pho/QueryProfile.html +61 -61
- data/doc/rdoc/classes/Pho/RDFCollection.html +71 -71
- data/doc/rdoc/classes/Pho/RDF_JSON.html +118 -0
- data/doc/rdoc/classes/Pho/RDF_JSON/SetAlgebra.html +240 -0
- 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 +342 -264
- data/doc/rdoc/classes/Pho/Update.html +127 -0
- data/doc/rdoc/classes/Pho/Update/Changeset.html +520 -0
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +330 -0
- data/doc/rdoc/classes/Pho/Update/Changesets.html +204 -0
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +248 -0
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +213 -0
- data/doc/rdoc/classes/Pho/Update/Statement.html +302 -0
- data/doc/rdoc/classes/String.html +146 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +33 -2
- data/doc/rdoc/files/lib/pho/changeset_builder_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/changeset_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/job_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/query_profile_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_json_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/store_rb.html +1 -1
- data/doc/rdoc/files/lib/pho_rb.html +4 -1
- data/doc/rdoc/fr_class_index.html +10 -0
- data/doc/rdoc/fr_file_index.html +3 -0
- data/doc/rdoc/fr_method_index.html +140 -110
- data/lib/pho.rb +14 -1
- data/lib/pho/changeset.rb +312 -0
- data/lib/pho/changeset_builder.rb +118 -0
- data/lib/pho/job.rb +1 -1
- data/lib/pho/query_profile.rb +1 -1
- data/lib/pho/rdf_json.rb +81 -0
- data/lib/pho/store.rb +63 -25
- data/tests/tc_changeset.rb +273 -0
- data/tests/tc_changeset_builder.rb +151 -0
- data/tests/tc_changesets.rb +96 -0
- data/tests/tc_metabox.rb +20 -2
- data/tests/tc_query_profile.rb +4 -2
- data/tests/tc_rdf_json.rb +273 -0
- data/tests/tc_search.rb +5 -5
- data/tests/tc_sparql.rb +12 -0
- data/tests/ts_pho.rb +5 -1
- metadata +25 -3
data/CHANGES
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
Brief notes on significant changes and additions in each release
|
2
2
|
|
3
|
+
== Version 0.5
|
4
|
+
|
5
|
+
* Support for storing data in private graphs as well as metabox
|
6
|
+
* Support for submission of changesets to private graphs as well as metabox
|
7
|
+
* Multisparql options on all Store sparql methods
|
8
|
+
* Addition of ChangeSetBuilder class for constructing changesets from triple hashes
|
9
|
+
* Addition of RDF_JSON module and SetAlgebra class for working with triple hashes
|
10
|
+
* Addition of Changeset, Statement classes for capturing and serializing Changeset data
|
11
|
+
* Fixed bugs in facet, search params
|
12
|
+
* Added submit_changeset method to Store to support submission of changeset data
|
13
|
+
|
3
14
|
== Version 0.4
|
4
15
|
|
5
16
|
* Added support for reading Job lifecycle data exposed in Talis Platform Release 21
|
@@ -7,7 +18,7 @@ Brief notes on significant changes and additions in each release
|
|
7
18
|
* Refactored job submission code to move methods from the Store class onto the Jobs and Job classes instead.
|
8
19
|
This brings that code in line with the patterns used elsewhere
|
9
20
|
* Re-implemented snapshot reading code to use RDF/XML rather than scraping the HTML
|
10
|
-
* Added a fledgling command-line tool for working with the platform "
|
21
|
+
* Added a fledgling command-line tool for working with the platform "talis_store"
|
11
22
|
|
12
23
|
== Version 0.3
|
13
24
|
|
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ require 'rake/testtask'
|
|
5
5
|
require 'rake/clean'
|
6
6
|
|
7
7
|
NAME = "pho"
|
8
|
-
VER = "0.4"
|
8
|
+
VER = "0.4.1"
|
9
9
|
|
10
10
|
RDOC_OPTS = ['--quiet', '--title', 'Pho (Talis Platform Client) Reference', '--main', 'README']
|
11
11
|
|
@@ -18,7 +18,7 @@ SPEC =
|
|
18
18
|
s.name = NAME
|
19
19
|
s.version = VER
|
20
20
|
s.platform = Gem::Platform::RUBY
|
21
|
-
s.required_ruby_version = ">= 1.8.
|
21
|
+
s.required_ruby_version = ">= 1.8.5"
|
22
22
|
s.has_rdoc = true
|
23
23
|
s.extra_rdoc_files = ["README", "CHANGES"]
|
24
24
|
s.rdoc_options = RDOC_OPTS
|
data/doc/index.html
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
<html>
|
2
2
|
<head><title>Talis Platform Client</title></head>
|
3
3
|
<body>
|
4
|
-
|
4
|
+
|
5
|
+
<h1>Talis Platform Client</h1>
|
6
|
+
|
7
|
+
<p>Pho is a Ruby client for the <a href="http://www.talis.com/platform">Talis Platform</a> <a href="http://n2.talis.com/wiki/Platform_API">API</a>. The API provides
|
8
|
+
access to a semantic web data store capable of storing unstructured data (i.e. binary streams) as well as structured data (as RDF).</p>
|
9
|
+
|
10
|
+
<p>
|
11
|
+
Pho provides a client-side API suitable for working with the Platform API. The code is largely a thin wrapper around the underlying HTTP calls, as well as
|
12
|
+
a set of convenience classes and methods for parsing and working with responses from the Platform. The goal is to provide a complete API that also deals with
|
13
|
+
RDF updates and mapping to/from Ruby objects.
|
14
|
+
</p>
|
15
|
+
|
16
|
+
<p>Currently the best source of documentation is the <a href="rdoc/index.html">rdocs</a>.</p>
|
17
|
+
|
18
|
+
<p>There are also some <a href="http://blogs.talis.com/n2/archives/tag/pho">blog posts on the Platform developer blog</a> that illustrate use of the Pho API and command-line client.</p>
|
5
19
|
</body>
|
6
20
|
</html>
|
data/doc/rdoc/classes/Pho.html
CHANGED
@@ -58,6 +58,14 @@
|
|
58
58
|
<a href="../files/lib/pho_rb.html">
|
59
59
|
lib/pho.rb
|
60
60
|
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../files/lib/pho/changeset_builder_rb.html">
|
63
|
+
lib/pho/changeset_builder.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
<a href="../files/lib/pho/rdf_json_rb.html">
|
67
|
+
lib/pho/rdf_json.rb
|
68
|
+
</a>
|
61
69
|
<br />
|
62
70
|
<a href="../files/lib/pho/etags_rb.html">
|
63
71
|
lib/pho/etags.rb
|
@@ -78,6 +86,10 @@
|
|
78
86
|
<a href="../files/lib/pho/field_predicate_map_rb.html">
|
79
87
|
lib/pho/field_predicate_map.rb
|
80
88
|
</a>
|
89
|
+
<br />
|
90
|
+
<a href="../files/lib/pho/changeset_rb.html">
|
91
|
+
lib/pho/changeset.rb
|
92
|
+
</a>
|
81
93
|
<br />
|
82
94
|
<a href="../files/lib/pho/facet_rb.html">
|
83
95
|
lib/pho/facet.rb
|
@@ -124,6 +136,8 @@
|
|
124
136
|
<h3 class="section-bar">Classes and Modules</h3>
|
125
137
|
|
126
138
|
Module <a href="Pho/Facet.html" class="link">Pho::Facet</a><br />
|
139
|
+
Module <a href="Pho/RDF_JSON.html" class="link">Pho::RDF_JSON</a><br />
|
140
|
+
Module <a href="Pho/Update.html" class="link">Pho::Update</a><br />
|
127
141
|
Class <a href="Pho/Analyzers.html" class="link">Pho::Analyzers</a><br />
|
128
142
|
Class <a href="Pho/DatatypeProperty.html" class="link">Pho::DatatypeProperty</a><br />
|
129
143
|
Class <a href="Pho/Etags.html" class="link">Pho::Etags</a><br />
|
@@ -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="#M000073">new</a>
|
96
|
+
<a href="#M000074">to_rdf</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -155,19 +155,19 @@ URI for this mapping
|
|
155
155
|
<div id="methods">
|
156
156
|
<h3 class="section-bar">Public Class methods</h3>
|
157
157
|
|
158
|
-
<div id="method-
|
159
|
-
<a name="
|
158
|
+
<div id="method-M000073" class="method-detail">
|
159
|
+
<a name="M000073"></a>
|
160
160
|
|
161
161
|
<div class="method-heading">
|
162
|
-
<a href="#
|
162
|
+
<a href="#M000073" 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('M000073-source');return false;">[Source]</a></p>
|
170
|
+
<div class="method-source-code" id="M000073-source">
|
171
171
|
<pre>
|
172
172
|
<span class="ruby-comment cmt"># File lib/pho/field_predicate_map.rb, line 64</span>
|
173
173
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">property_uri</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">analyzer</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -183,11 +183,11 @@ URI for this mapping
|
|
183
183
|
|
184
184
|
<h3 class="section-bar">Public Instance methods</h3>
|
185
185
|
|
186
|
-
<div id="method-
|
187
|
-
<a name="
|
186
|
+
<div id="method-M000074" class="method-detail">
|
187
|
+
<a name="M000074"></a>
|
188
188
|
|
189
189
|
<div class="method-heading">
|
190
|
-
<a href="#
|
190
|
+
<a href="#M000074" class="method-signature">
|
191
191
|
<span class="method-name">to_rdf</span><span class="method-args">(ns=true)</span>
|
192
192
|
</a>
|
193
193
|
</div>
|
@@ -203,8 +203,8 @@ 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('M000074-source');return false;">[Source]</a></p>
|
207
|
+
<div class="method-source-code" id="M000074-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>)
|
@@ -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="#M000137">add</a>
|
96
|
+
<a href="#M000138">add_from_response</a>
|
97
|
+
<a href="#M000139">get</a>
|
98
|
+
<a href="#M000140">has_tag?</a>
|
99
|
+
<a href="#M000135">new</a>
|
100
|
+
<a href="#M000136">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-M000135" class="method-detail">
|
141
|
+
<a name="M000135"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000135" 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('M000135-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000135-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 10</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-M000137" class="method-detail">
|
171
|
+
<a name="M000137"></a>
|
172
172
|
|
173
173
|
<div class="method-heading">
|
174
|
-
<a href="#
|
174
|
+
<a href="#M000137" 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('M000137-source');return false;">[Source]</a></p>
|
182
|
+
<div class="method-source-code" id="M000137-source">
|
183
183
|
<pre>
|
184
184
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 33</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-M000138" class="method-detail">
|
197
|
+
<a name="M000138"></a>
|
198
198
|
|
199
199
|
<div class="method-heading">
|
200
|
-
<a href="#
|
200
|
+
<a href="#M000138" 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('M000138-source');return false;">[Source]</a></p>
|
208
|
+
<div class="method-source-code" id="M000138-source">
|
209
209
|
<pre>
|
210
210
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 40</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-M000139" class="method-detail">
|
220
|
+
<a name="M000139"></a>
|
221
221
|
|
222
222
|
<div class="method-heading">
|
223
|
-
<a href="#
|
223
|
+
<a href="#M000139" 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('M000139-source');return false;">[Source]</a></p>
|
231
|
+
<div class="method-source-code" id="M000139-source">
|
232
232
|
<pre>
|
233
233
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 44</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-M000140" class="method-detail">
|
243
|
+
<a name="M000140"></a>
|
244
244
|
|
245
245
|
<div class="method-heading">
|
246
|
-
<a href="#
|
246
|
+
<a href="#M000140" 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('M000140-source');return false;">[Source]</a></p>
|
254
|
+
<div class="method-source-code" id="M000140-source">
|
255
255
|
<pre>
|
256
256
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 48</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-M000136" class="method-detail">
|
266
|
+
<a name="M000136"></a>
|
267
267
|
|
268
268
|
<div class="method-heading">
|
269
|
-
<a href="#
|
269
|
+
<a href="#M000136" 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('M000136-source');return false;">[Source]</a></p>
|
277
|
+
<div class="method-source-code" id="M000136-source">
|
278
278
|
<pre>
|
279
279
|
<span class="ruby-comment cmt"># File lib/pho/etags.rb, line 19</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>)
|
@@ -92,9 +92,9 @@ Captures the data returned in a facetted search
|
|
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="#
|
95
|
+
<a href="#M000028">new</a>
|
96
|
+
<a href="#M000030">parse</a>
|
97
|
+
<a href="#M000029">read_from_store</a>
|
98
98
|
</div>
|
99
99
|
</div>
|
100
100
|
|
@@ -148,19 +148,19 @@ The query used to generate the facet results, as echoed in the response
|
|
148
148
|
<div id="methods">
|
149
149
|
<h3 class="section-bar">Public Class methods</h3>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000028" class="method-detail">
|
152
|
+
<a name="M000028"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000028" class="method-signature">
|
156
156
|
<span class="method-name">new</span><span class="method-args">(query, fields, facets=Hash.new)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
159
159
|
|
160
160
|
<div class="method-description">
|
161
161
|
<p><a class="source-toggle" href="#"
|
162
|
-
onclick="toggleCode('
|
163
|
-
<div class="method-source-code" id="
|
162
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000028-source">
|
164
164
|
<pre>
|
165
165
|
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 32</span>
|
166
166
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">fields</span>, <span class="ruby-identifier">facets</span>=<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>)
|
@@ -173,19 +173,19 @@ The query used to generate the facet results, as echoed in the response
|
|
173
173
|
</div>
|
174
174
|
</div>
|
175
175
|
|
176
|
-
<div id="method-
|
177
|
-
<a name="
|
176
|
+
<div id="method-M000030" class="method-detail">
|
177
|
+
<a name="M000030"></a>
|
178
178
|
|
179
179
|
<div class="method-heading">
|
180
|
-
<a href="#
|
180
|
+
<a href="#M000030" class="method-signature">
|
181
181
|
<span class="method-name">parse</span><span class="method-args">(data)</span>
|
182
182
|
</a>
|
183
183
|
</div>
|
184
184
|
|
185
185
|
<div class="method-description">
|
186
186
|
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('
|
188
|
-
<div class="method-source-code" id="
|
187
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
188
|
+
<div class="method-source-code" id="M000030-source">
|
189
189
|
<pre>
|
190
190
|
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 58</span>
|
191
191
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Results</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">data</span>)
|
@@ -232,11 +232,11 @@ The query used to generate the facet results, as echoed in the response
|
|
232
232
|
</div>
|
233
233
|
</div>
|
234
234
|
|
235
|
-
<div id="method-
|
236
|
-
<a name="
|
235
|
+
<div id="method-M000029" class="method-detail">
|
236
|
+
<a name="M000029"></a>
|
237
237
|
|
238
238
|
<div class="method-heading">
|
239
|
-
<a href="#
|
239
|
+
<a href="#M000029" class="method-signature">
|
240
240
|
<span class="method-name">read_from_store</span><span class="method-args">(store, query, facets, params=Hash.new)</span>
|
241
241
|
</a>
|
242
242
|
</div>
|
@@ -257,14 +257,14 @@ 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#M000089">Store.facet</a> for
|
261
261
|
details. XML output is requested automatically
|
262
262
|
|
263
263
|
</td></tr>
|
264
264
|
</table>
|
265
265
|
<p><a class="source-toggle" href="#"
|
266
|
-
onclick="toggleCode('
|
267
|
-
<div class="method-source-code" id="
|
266
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
267
|
+
<div class="method-source-code" id="M000029-source">
|
268
268
|
<pre>
|
269
269
|
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 45</span>
|
270
270
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Results</span>.<span class="ruby-identifier">read_from_store</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">query</span>, <span class="ruby-identifier">facets</span>, <span class="ruby-identifier">params</span>=<span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>)
|
@@ -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="#M000031">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-M000031" class="method-detail">
|
141
|
+
<a name="M000031"></a>
|
142
142
|
|
143
143
|
<div class="method-heading">
|
144
|
-
<a href="#
|
144
|
+
<a href="#M000031" 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('M000031-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000031-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>)
|