pho 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +5 -0
- data/Rakefile +1 -1
- data/lib/pho/snapshot.rb +6 -1
- data/lib/pho/sparql.rb +4 -1
- data/tests/tc_snapshots.rb +14 -1
- data/tests/tc_sparql_helper.rb +23 -0
- metadata +60 -160
- data/doc/rdoc/classes/Pho/Analyzers.html +0 -310
- data/doc/rdoc/classes/Pho/CommandLine.html +0 -770
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +0 -241
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +0 -410
- data/doc/rdoc/classes/Pho/Enrichment.html +0 -119
- data/doc/rdoc/classes/Pho/Etags.html +0 -310
- data/doc/rdoc/classes/Pho/Facet/Results.html +0 -299
- data/doc/rdoc/classes/Pho/Facet/Term.html +0 -177
- data/doc/rdoc/classes/Pho/Facet.html +0 -119
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +0 -668
- data/doc/rdoc/classes/Pho/FieldWeighting.html +0 -230
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +0 -478
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +0 -264
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +0 -259
- data/doc/rdoc/classes/Pho/FileManagement.html +0 -121
- data/doc/rdoc/classes/Pho/Job.html +0 -627
- data/doc/rdoc/classes/Pho/JobUpdate.html +0 -141
- data/doc/rdoc/classes/Pho/Jobs.html +0 -538
- data/doc/rdoc/classes/Pho/Namespaces.html +0 -164
- data/doc/rdoc/classes/Pho/OAI/Record.html +0 -165
- data/doc/rdoc/classes/Pho/OAI/Records.html +0 -331
- data/doc/rdoc/classes/Pho/OAI.html +0 -118
- data/doc/rdoc/classes/Pho/QueryProfile.html +0 -497
- data/doc/rdoc/classes/Pho/RDF/Parser.html +0 -279
- data/doc/rdoc/classes/Pho/RDF.html +0 -120
- data/doc/rdoc/classes/Pho/RDFCollection.html +0 -119
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +0 -325
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +0 -241
- data/doc/rdoc/classes/Pho/ResourceHash.html +0 -123
- data/doc/rdoc/classes/Pho/Snapshot.html +0 -397
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +0 -594
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +0 -692
- data/doc/rdoc/classes/Pho/Sparql.html +0 -187
- data/doc/rdoc/classes/Pho/Status.html +0 -296
- data/doc/rdoc/classes/Pho/Store.html +0 -1560
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +0 -183
- data/doc/rdoc/classes/Pho/Update/Changeset.html +0 -521
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +0 -330
- data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +0 -159
- data/doc/rdoc/classes/Pho/Update/Changesets.html +0 -205
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +0 -257
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +0 -237
- data/doc/rdoc/classes/Pho/Update/Statement.html +0 -303
- data/doc/rdoc/classes/Pho/Update.html +0 -128
- data/doc/rdoc/classes/Pho.html +0 -283
- data/doc/rdoc/classes/String.html +0 -146
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/CHANGES.html +0 -351
- data/doc/rdoc/files/README.html +0 -191
- data/doc/rdoc/files/lib/pho/changeset_builder_rb.html +0 -108
- data/doc/rdoc/files/lib/pho/changeset_rb.html +0 -108
- data/doc/rdoc/files/lib/pho/command_line_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/converter_rb.html +0 -108
- data/doc/rdoc/files/lib/pho/enrichment_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/etags_rb.html +0 -108
- data/doc/rdoc/files/lib/pho/facet_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/file_management_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/file_manager_rb.html +0 -108
- data/doc/rdoc/files/lib/pho/job_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/oai_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/query_profile_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/rdf_rb.html +0 -108
- data/doc/rdoc/files/lib/pho/resource_hash_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/snapshot_rb.html +0 -109
- data/doc/rdoc/files/lib/pho/sparql_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/status_rb.html +0 -101
- data/doc/rdoc/files/lib/pho/store_rb.html +0 -108
- data/doc/rdoc/files/lib/pho_rb.html +0 -133
- data/doc/rdoc/fr_class_index.html +0 -72
- data/doc/rdoc/fr_file_index.html +0 -49
- data/doc/rdoc/fr_method_index.html +0 -237
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
@@ -1,299 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Pho::Facet::Results</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Pho::Facet::Results</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/pho/facet_rb.html">
|
59
|
-
lib/pho/facet.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
Captures the data returned in a facetted search
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000074">new</a>
|
96
|
-
<a href="#M000076">parse</a>
|
97
|
-
<a href="#M000075">read_from_store</a>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
|
101
|
-
</div>
|
102
|
-
|
103
|
-
|
104
|
-
<!-- if includes -->
|
105
|
-
|
106
|
-
<div id="section">
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<div id="attribute-list">
|
113
|
-
<h3 class="section-bar">Attributes</h3>
|
114
|
-
|
115
|
-
<div class="name-list">
|
116
|
-
<table>
|
117
|
-
<tr class="top-aligned-row context-row">
|
118
|
-
<td class="context-item-name">facets</td>
|
119
|
-
<td class="context-item-value"> [R] </td>
|
120
|
-
<td class="context-item-desc">
|
121
|
-
An array of facets
|
122
|
-
|
123
|
-
</td>
|
124
|
-
</tr>
|
125
|
-
<tr class="top-aligned-row context-row">
|
126
|
-
<td class="context-item-name">fields</td>
|
127
|
-
<td class="context-item-value"> [R] </td>
|
128
|
-
<td class="context-item-desc">
|
129
|
-
The fields used to generate the results
|
130
|
-
|
131
|
-
</td>
|
132
|
-
</tr>
|
133
|
-
<tr class="top-aligned-row context-row">
|
134
|
-
<td class="context-item-name">query</td>
|
135
|
-
<td class="context-item-value"> [R] </td>
|
136
|
-
<td class="context-item-desc">
|
137
|
-
The query used to generate the facet results, as echoed in the response
|
138
|
-
|
139
|
-
</td>
|
140
|
-
</tr>
|
141
|
-
</table>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
<!-- if method_list -->
|
148
|
-
<div id="methods">
|
149
|
-
<h3 class="section-bar">Public Class methods</h3>
|
150
|
-
|
151
|
-
<div id="method-M000074" class="method-detail">
|
152
|
-
<a name="M000074"></a>
|
153
|
-
|
154
|
-
<div class="method-heading">
|
155
|
-
<a href="#M000074" class="method-signature">
|
156
|
-
<span class="method-name">new</span><span class="method-args">(query, fields, facets=Hash.new)</span>
|
157
|
-
</a>
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<div class="method-description">
|
161
|
-
<p><a class="source-toggle" href="#"
|
162
|
-
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
163
|
-
<div class="method-source-code" id="M000074-source">
|
164
|
-
<pre>
|
165
|
-
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 32</span>
|
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>)
|
167
|
-
<span class="ruby-ivar">@query</span> = <span class="ruby-identifier">query</span>
|
168
|
-
<span class="ruby-ivar">@fields</span> = <span class="ruby-identifier">fields</span>
|
169
|
-
<span class="ruby-ivar">@facets</span> = <span class="ruby-identifier">facets</span>
|
170
|
-
<span class="ruby-keyword kw">end</span>
|
171
|
-
</pre>
|
172
|
-
</div>
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div id="method-M000076" class="method-detail">
|
177
|
-
<a name="M000076"></a>
|
178
|
-
|
179
|
-
<div class="method-heading">
|
180
|
-
<a href="#M000076" class="method-signature">
|
181
|
-
<span class="method-name">parse</span><span class="method-args">(data)</span>
|
182
|
-
</a>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
<div class="method-description">
|
186
|
-
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
188
|
-
<div class="method-source-code" id="M000076-source">
|
189
|
-
<pre>
|
190
|
-
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 58</span>
|
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>)
|
192
|
-
<span class="ruby-identifier">doc</span> = <span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">data</span>)
|
193
|
-
<span class="ruby-identifier">root</span> = <span class="ruby-identifier">doc</span>.<span class="ruby-identifier">root</span>
|
194
|
-
<span class="ruby-identifier">head</span> = <span class="ruby-identifier">root</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>]
|
195
|
-
|
196
|
-
<span class="ruby-identifier">query</span> = <span class="ruby-value str">""</span>
|
197
|
-
<span class="ruby-identifier">fields</span> = <span class="ruby-value str">""</span>
|
198
|
-
<span class="ruby-identifier">queryEl</span> = <span class="ruby-identifier">head</span>.<span class="ruby-identifier">get_elements</span>(<span class="ruby-value str">"query"</span>)[<span class="ruby-value">0</span>]
|
199
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">queryEl</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
200
|
-
<span class="ruby-identifier">query</span> = <span class="ruby-identifier">queryEl</span>.<span class="ruby-identifier">text</span>
|
201
|
-
<span class="ruby-keyword kw">end</span>
|
202
|
-
<span class="ruby-identifier">fieldsEl</span> = <span class="ruby-identifier">head</span>.<span class="ruby-identifier">get_elements</span>(<span class="ruby-value str">"fields"</span>)[<span class="ruby-value">0</span>]
|
203
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">fieldsEl</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
204
|
-
<span class="ruby-identifier">fields</span> = <span class="ruby-identifier">fieldsEl</span>.<span class="ruby-identifier">text</span>
|
205
|
-
<span class="ruby-keyword kw">end</span>
|
206
|
-
|
207
|
-
<span class="ruby-identifier">results</span> = <span class="ruby-constant">Results</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">fields</span>)
|
208
|
-
|
209
|
-
<span class="ruby-identifier">fields</span> = <span class="ruby-identifier">root</span>.<span class="ruby-identifier">get_elements</span>(<span class="ruby-value str">"fields"</span>)[<span class="ruby-value">0</span>]
|
210
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">fields</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
211
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"No fields in document!"</span>
|
212
|
-
<span class="ruby-keyword kw">end</span>
|
213
|
-
|
214
|
-
<span class="ruby-identifier">fields</span>.<span class="ruby-identifier">get_elements</span>(<span class="ruby-value str">"field"</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">field</span><span class="ruby-operator">|</span>
|
215
|
-
<span class="ruby-identifier">field_name</span> = <span class="ruby-identifier">field</span>.<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">"name"</span>).<span class="ruby-identifier">value</span>
|
216
|
-
<span class="ruby-identifier">results</span>.<span class="ruby-identifier">facets</span>[<span class="ruby-identifier">field_name</span>] = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
217
|
-
|
218
|
-
<span class="ruby-identifier">field</span>.<span class="ruby-identifier">get_elements</span>(<span class="ruby-value str">"term"</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">term</span><span class="ruby-operator">|</span>
|
219
|
-
<span class="ruby-identifier">term</span> = <span class="ruby-constant">Term</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">term</span>.<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">"number"</span>).<span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_i</span>,
|
220
|
-
<span class="ruby-identifier">term</span>.<span class="ruby-identifier">attribute</span>(<span class="ruby-value str">"search-uri"</span>).<span class="ruby-identifier">value</span>,
|
221
|
-
<span class="ruby-identifier">term</span>.<span class="ruby-identifier">text</span>() )
|
222
|
-
|
223
|
-
<span class="ruby-identifier">results</span>.<span class="ruby-identifier">facets</span>[<span class="ruby-identifier">field_name</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">term</span>
|
224
|
-
<span class="ruby-keyword kw">end</span>
|
225
|
-
|
226
|
-
<span class="ruby-keyword kw">end</span>
|
227
|
-
|
228
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">results</span>
|
229
|
-
<span class="ruby-keyword kw">end</span>
|
230
|
-
</pre>
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
<div id="method-M000075" class="method-detail">
|
236
|
-
<a name="M000075"></a>
|
237
|
-
|
238
|
-
<div class="method-heading">
|
239
|
-
<a href="#M000075" class="method-signature">
|
240
|
-
<span class="method-name">read_from_store</span><span class="method-args">(store, query, facets, params=Hash.new)</span>
|
241
|
-
</a>
|
242
|
-
</div>
|
243
|
-
|
244
|
-
<div class="method-description">
|
245
|
-
<p>
|
246
|
-
Convenience function to perform a facetted search against a store,
|
247
|
-
returning a <a href="Results.html">Results</a> object parsed from the XML
|
248
|
-
response
|
249
|
-
</p>
|
250
|
-
<table>
|
251
|
-
<tr><td valign="top">store:</td><td>the store against which the query will be performed
|
252
|
-
|
253
|
-
</td></tr>
|
254
|
-
<tr><td valign="top">query:</td><td>the search query
|
255
|
-
|
256
|
-
</td></tr>
|
257
|
-
<tr><td valign="top">facets:</td><td>an ordered list of facets to be used
|
258
|
-
|
259
|
-
</td></tr>
|
260
|
-
<tr><td valign="top">params:</td><td>additional params. See <a href="../Store.html#M000170">Store.facet</a> for
|
261
|
-
details. XML output is requested automatically
|
262
|
-
|
263
|
-
</td></tr>
|
264
|
-
</table>
|
265
|
-
<p><a class="source-toggle" href="#"
|
266
|
-
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
267
|
-
<div class="method-source-code" id="M000075-source">
|
268
|
-
<pre>
|
269
|
-
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 45</span>
|
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>)
|
271
|
-
|
272
|
-
<span class="ruby-identifier">params</span>[<span class="ruby-value str">"output"</span>] = <span class="ruby-value str">"xml"</span>
|
273
|
-
<span class="ruby-identifier">resp</span> = <span class="ruby-identifier">store</span>.<span class="ruby-identifier">facet</span>(<span class="ruby-identifier">query</span>, <span class="ruby-identifier">facets</span>, <span class="ruby-identifier">params</span>)
|
274
|
-
|
275
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">status</span> <span class="ruby-operator">!=</span> <span class="ruby-value">200</span>
|
276
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Unable to do facetted search. Response code was #{resp.status}"</span>
|
277
|
-
<span class="ruby-keyword kw">end</span>
|
278
|
-
|
279
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">resp</span>.<span class="ruby-identifier">content</span>)
|
280
|
-
|
281
|
-
<span class="ruby-keyword kw">end</span>
|
282
|
-
</pre>
|
283
|
-
</div>
|
284
|
-
</div>
|
285
|
-
</div>
|
286
|
-
|
287
|
-
|
288
|
-
</div>
|
289
|
-
|
290
|
-
|
291
|
-
</div>
|
292
|
-
|
293
|
-
|
294
|
-
<div id="validator-badges">
|
295
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
296
|
-
</div>
|
297
|
-
|
298
|
-
</body>
|
299
|
-
</html>
|
@@ -1,177 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Pho::Facet::Term</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Pho::Facet::Term</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/pho/facet_rb.html">
|
59
|
-
lib/pho/facet.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
Captures the information about a specific term
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000077">new</a>
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
|
99
|
-
</div>
|
100
|
-
|
101
|
-
|
102
|
-
<!-- if includes -->
|
103
|
-
|
104
|
-
<div id="section">
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<div id="attribute-list">
|
111
|
-
<h3 class="section-bar">Attributes</h3>
|
112
|
-
|
113
|
-
<div class="name-list">
|
114
|
-
<table>
|
115
|
-
<tr class="top-aligned-row context-row">
|
116
|
-
<td class="context-item-name">hits</td>
|
117
|
-
<td class="context-item-value"> [R] </td>
|
118
|
-
<td class="context-item-desc"></td>
|
119
|
-
</tr>
|
120
|
-
<tr class="top-aligned-row context-row">
|
121
|
-
<td class="context-item-name">search_uri</td>
|
122
|
-
<td class="context-item-value"> [R] </td>
|
123
|
-
<td class="context-item-desc"></td>
|
124
|
-
</tr>
|
125
|
-
<tr class="top-aligned-row context-row">
|
126
|
-
<td class="context-item-name">value</td>
|
127
|
-
<td class="context-item-value"> [R] </td>
|
128
|
-
<td class="context-item-desc"></td>
|
129
|
-
</tr>
|
130
|
-
</table>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
<!-- if method_list -->
|
137
|
-
<div id="methods">
|
138
|
-
<h3 class="section-bar">Public Class methods</h3>
|
139
|
-
|
140
|
-
<div id="method-M000077" class="method-detail">
|
141
|
-
<a name="M000077"></a>
|
142
|
-
|
143
|
-
<div class="method-heading">
|
144
|
-
<a href="#M000077" class="method-signature">
|
145
|
-
<span class="method-name">new</span><span class="method-args">(hits, search_uri, value)</span>
|
146
|
-
</a>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="method-description">
|
150
|
-
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
152
|
-
<div class="method-source-code" id="M000077-source">
|
153
|
-
<pre>
|
154
|
-
<span class="ruby-comment cmt"># File lib/pho/facet.rb, line 12</span>
|
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>)
|
156
|
-
<span class="ruby-ivar">@hits</span> = <span class="ruby-identifier">hits</span>
|
157
|
-
<span class="ruby-ivar">@search_uri</span> = <span class="ruby-identifier">search_uri</span>
|
158
|
-
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
|
159
|
-
<span class="ruby-keyword kw">end</span>
|
160
|
-
</pre>
|
161
|
-
</div>
|
162
|
-
</div>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
|
166
|
-
</div>
|
167
|
-
|
168
|
-
|
169
|
-
</div>
|
170
|
-
|
171
|
-
|
172
|
-
<div id="validator-badges">
|
173
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
</body>
|
177
|
-
</html>
|
@@ -1,119 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Pho::Facet</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Pho::Facet</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/pho/facet_rb.html">
|
59
|
-
lib/pho/facet.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
<div id="description">
|
76
|
-
<p>
|
77
|
-
This module organizes the classes related to the <a
|
78
|
-
href="Facet.html">Facet</a> service
|
79
|
-
</p>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
<!-- if includes -->
|
91
|
-
|
92
|
-
<div id="section">
|
93
|
-
|
94
|
-
<div id="class-list">
|
95
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
96
|
-
|
97
|
-
Class <a href="Facet/Results.html" class="link">Pho::Facet::Results</a><br />
|
98
|
-
Class <a href="Facet/Term.html" class="link">Pho::Facet::Term</a><br />
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<!-- if method_list -->
|
109
|
-
|
110
|
-
|
111
|
-
</div>
|
112
|
-
|
113
|
-
|
114
|
-
<div id="validator-badges">
|
115
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
116
|
-
</div>
|
117
|
-
|
118
|
-
</body>
|
119
|
-
</html>
|