pho 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/CHANGES +6 -0
  2. data/README +9 -1
  3. data/Rakefile +1 -1
  4. data/doc/index.html +3 -1
  5. data/doc/rdoc/classes/Pho/Analyzers.html +310 -0
  6. data/doc/rdoc/classes/Pho/CommandLine.html +770 -0
  7. data/doc/rdoc/classes/Pho/DatatypeProperty.html +241 -0
  8. data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +410 -0
  9. data/doc/rdoc/classes/Pho/Enrichment.html +119 -0
  10. data/doc/rdoc/classes/Pho/Etags.html +310 -0
  11. data/doc/rdoc/classes/Pho/Facet/Results.html +299 -0
  12. data/doc/rdoc/classes/Pho/Facet/Term.html +177 -0
  13. data/doc/rdoc/classes/Pho/Facet.html +119 -0
  14. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +695 -0
  15. data/doc/rdoc/classes/Pho/FieldWeighting.html +230 -0
  16. data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +478 -0
  17. data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +264 -0
  18. data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +259 -0
  19. data/doc/rdoc/classes/Pho/FileManagement.html +121 -0
  20. data/doc/rdoc/classes/Pho/Job.html +627 -0
  21. data/doc/rdoc/classes/Pho/JobUpdate.html +141 -0
  22. data/doc/rdoc/classes/Pho/Jobs.html +538 -0
  23. data/doc/rdoc/classes/Pho/Namespaces.html +164 -0
  24. data/doc/rdoc/classes/Pho/OAI/Record.html +165 -0
  25. data/doc/rdoc/classes/Pho/OAI/Records.html +331 -0
  26. data/doc/rdoc/classes/Pho/OAI.html +118 -0
  27. data/doc/rdoc/classes/Pho/QueryProfile.html +524 -0
  28. data/doc/rdoc/classes/Pho/RDF/Parser.html +279 -0
  29. data/doc/rdoc/classes/Pho/RDF.html +120 -0
  30. data/doc/rdoc/classes/Pho/RDFCollection.html +119 -0
  31. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +325 -0
  32. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +241 -0
  33. data/doc/rdoc/classes/Pho/ResourceHash.html +123 -0
  34. data/doc/rdoc/classes/Pho/Snapshot.html +402 -0
  35. data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +594 -0
  36. data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +696 -0
  37. data/doc/rdoc/classes/Pho/Sparql.html +187 -0
  38. data/doc/rdoc/classes/Pho/Status.html +296 -0
  39. data/doc/rdoc/classes/Pho/Store.html +1569 -0
  40. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +183 -0
  41. data/doc/rdoc/classes/Pho/Update/Changeset.html +521 -0
  42. data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +330 -0
  43. data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +159 -0
  44. data/doc/rdoc/classes/Pho/Update/Changesets.html +205 -0
  45. data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +257 -0
  46. data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +237 -0
  47. data/doc/rdoc/classes/Pho/Update/Statement.html +303 -0
  48. data/doc/rdoc/classes/Pho/Update.html +128 -0
  49. data/doc/rdoc/classes/Pho.html +283 -0
  50. data/doc/rdoc/classes/String.html +146 -0
  51. data/doc/rdoc/created.rid +1 -0
  52. data/doc/rdoc/files/CHANGES.html +373 -0
  53. data/doc/rdoc/files/README.html +204 -0
  54. data/doc/rdoc/files/lib/pho/changeset_builder_rb.html +108 -0
  55. data/doc/rdoc/files/lib/pho/changeset_rb.html +108 -0
  56. data/doc/rdoc/files/lib/pho/command_line_rb.html +101 -0
  57. data/doc/rdoc/files/lib/pho/converter_rb.html +108 -0
  58. data/doc/rdoc/files/lib/pho/enrichment_rb.html +101 -0
  59. data/doc/rdoc/files/lib/pho/etags_rb.html +108 -0
  60. data/doc/rdoc/files/lib/pho/facet_rb.html +101 -0
  61. data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +101 -0
  62. data/doc/rdoc/files/lib/pho/file_management_rb.html +101 -0
  63. data/doc/rdoc/files/lib/pho/file_manager_rb.html +108 -0
  64. data/doc/rdoc/files/lib/pho/job_rb.html +101 -0
  65. data/doc/rdoc/files/lib/pho/oai_rb.html +101 -0
  66. data/doc/rdoc/files/lib/pho/query_profile_rb.html +101 -0
  67. data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +101 -0
  68. data/doc/rdoc/files/lib/pho/rdf_rb.html +108 -0
  69. data/doc/rdoc/files/lib/pho/resource_hash_rb.html +101 -0
  70. data/doc/rdoc/files/lib/pho/snapshot_rb.html +109 -0
  71. data/doc/rdoc/files/lib/pho/sparql_rb.html +101 -0
  72. data/doc/rdoc/files/lib/pho/status_rb.html +101 -0
  73. data/doc/rdoc/files/lib/pho/store_rb.html +108 -0
  74. data/doc/rdoc/files/lib/pho_rb.html +133 -0
  75. data/doc/rdoc/fr_class_index.html +72 -0
  76. data/doc/rdoc/fr_file_index.html +49 -0
  77. data/doc/rdoc/fr_method_index.html +239 -0
  78. data/doc/rdoc/index.html +24 -0
  79. data/doc/rdoc/rdoc-style.css +208 -0
  80. data/lib/pho/enrichment.rb +1 -0
  81. data/lib/pho/field_predicate_map.rb +5 -0
  82. data/lib/pho/query_profile.rb +5 -0
  83. data/lib/pho/store.rb +4 -1
  84. data/tests/tc_field_predicate_map.rb +7 -1
  85. data/tests/tc_query_profile.rb +6 -0
  86. data/tests/tc_store_util.rb +7 -0
  87. metadata +134 -21
data/CHANGES CHANGED
@@ -1,5 +1,11 @@
1
1
  Brief notes on significant changes and additions in each release
2
2
 
3
+ == Version 0.7.4
4
+
5
+ * Moved version control to github.
6
+ * Added store.name property
7
+ * Added remove_all methods to FieldPredicateMap and QueryProfile
8
+
3
9
  == Version 0.7.3
4
10
 
5
11
  * Fixed bug in Snapshot result parsing, now returns nil if no snapshot for store
data/README CHANGED
@@ -7,7 +7,15 @@ Leigh Dodds (leigh.dodds@talis.com)
7
7
 
8
8
  == Download
9
9
 
10
- The latest version of this library can be downloaded from:
10
+ Pho is packaged as a Ruby Gem and can be downloaded from:
11
+
12
+ http://rubygems.org/gems/pho
13
+
14
+ As of release 0.7.4 the source for the project is maintained in github at:
15
+
16
+ http://github.com/ldodds/pho
17
+
18
+ Earlier versions of the source, plus the RDoc can be accessed from:
11
19
 
12
20
  http://pho.rubyforge.net
13
21
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/testtask'
5
5
  require 'rake/clean'
6
6
 
7
7
  NAME = "pho"
8
- VER = "0.7.3"
8
+ VER = "0.7.4"
9
9
 
10
10
  RDOC_OPTS = ['--quiet', '--title', 'Pho (Talis Platform Client) Reference', '--main', 'README']
11
11
 
data/doc/index.html CHANGED
@@ -15,6 +15,8 @@
15
15
 
16
16
  <p>Currently the best source of documentation is the <a href="rdoc/index.html">rdocs</a>.</p>
17
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>
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>
19
+
20
+ <p>As of version 0.7.4 <a href="http://github.com/ldodds/pho"></a>the source code is managed in github</a>.</p>
19
21
  </body>
20
22
  </html>
@@ -0,0 +1,310 @@
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::Analyzers</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::Analyzers</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/pho/field_predicate_map_rb.html">
59
+ lib/pho/field_predicate_map.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
+ Declares URI constants for the various text analyzers supported by the
84
+ Talis Platform
85
+ </p>
86
+ <p>
87
+ <a href="Analyzers.html">Analyzers</a> are configured to operate on
88
+ specific DataTypePropertys using the <a
89
+ href="FieldPredicateMap.html">FieldPredicateMap</a>
90
+ </p>
91
+
92
+ </div>
93
+
94
+
95
+ </div>
96
+
97
+
98
+ </div>
99
+
100
+
101
+ <!-- if includes -->
102
+
103
+ <div id="section">
104
+
105
+
106
+ <div id="constants-list">
107
+ <h3 class="section-bar">Constants</h3>
108
+
109
+ <div class="name-list">
110
+ <table summary="Constants">
111
+ <tr class="top-aligned-row context-row">
112
+ <td class="context-item-name">STANDARD</td>
113
+ <td>=</td>
114
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-en&quot;.freeze</td>
115
+ <td width="3em">&nbsp;</td>
116
+ <td class="context-item-desc">
117
+ A standard English analyzer and the default if no analyzer is specified.
118
+ Words are split on punctuation characters, removing the punctuation. Words
119
+ containing a dot are not split. Words containing both hyphens and numbers
120
+ are not split. Email addresses and hostnames are not split. Stop words are
121
+ removed. Searches on fields with this type of analyzer are case
122
+ insensitive.
123
+
124
+ <p>
125
+ The following words are considered to be stop words and will not be
126
+ indexed: a, an, and, are, as, at, be, but, by, for, if, in, into, is, it,
127
+ no, not, of, on, or, such, that, the, their, then, there, these, they,
128
+ this, to, was, will, with
129
+ </p>
130
+ </td>
131
+ </tr>
132
+ <tr class="top-aligned-row context-row">
133
+ <td class="context-item-name">GREEK</td>
134
+ <td>=</td>
135
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-el&quot;.freeze</td>
136
+ <td width="3em">&nbsp;</td>
137
+ <td class="context-item-desc">
138
+ A standard Greek language analyzer. Words are split on punctuation
139
+ characters, removing the punctuation. Words containing a dot are not split.
140
+ Words containing both hyphens and numbers are not split. Email addresses
141
+ and hostnames are not split. Stop words are removed. Searches on fields
142
+ with this type of analyzer are case insensitive.
143
+
144
+ </td>
145
+ </tr>
146
+ <tr class="top-aligned-row context-row">
147
+ <td class="context-item-name">GERMAN</td>
148
+ <td>=</td>
149
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-de&quot;.freeze</td>
150
+ <td width="3em">&nbsp;</td>
151
+ <td class="context-item-desc">
152
+ The following words are considered to be stop words and will not be
153
+ indexed: einer, eine, eines, einem, einen, der, die, das, dass, daß, du,
154
+ er, sie, es, was, wer, wie, wir, und, oder, ohne, mit, am, im, in, aus,
155
+ auf, ist, sein, war, wird, ihr, ihre, ihres, als, für, von, mit, dich,
156
+ dir, mich, mir, mein, sein, kein, durch, wegen, wird
157
+
158
+ </td>
159
+ </tr>
160
+ <tr class="top-aligned-row context-row">
161
+ <td class="context-item-name">FRENCH</td>
162
+ <td>=</td>
163
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-fr&quot;.freeze</td>
164
+ <td width="3em">&nbsp;</td>
165
+ <td class="context-item-desc">
166
+ A standard French language analyzer. Words are split on punctuation
167
+ characters, removing the punctuation. Words containing a dot are not split.
168
+ Words containing both hyphens and numbers are not split. Email addresses
169
+ and hostnames are not split. Stop words are removed and any remaining words
170
+ are stemmed. Searches on fields with this type of analyzer are case
171
+ insensitive.
172
+
173
+ <p>
174
+ The following words are considered to be stop words and will not be
175
+ indexed: a, afin, ai, ainsi, après, attendu, au, aujourd, auquel, aussi,
176
+ autre, autres, aux, auxquelles, auxquels, avait, avant, avec, avoir, c,
177
+ car, ce, ceci, cela, celle, celles, celui, cependant, certain, certaine,
178
+ certaines, certains, ces, cet, cette, ceux, chez, ci, combien, comme,
179
+ comment, concernant, contre, d, dans, de, debout, dedans, dehors, delà,
180
+ depuis, derrière, des, désormais, desquelles, desquels, dessous, dessus,
181
+ devant, devers, devra, divers, diverse, diverses, doit, donc, dont, du,
182
+ duquel, durant, dès, elle, elles, en, entre, environ, est, et, etc, etre,
183
+ eu, eux, excepté, hormis, hors, hélas, hui, il, ils, j, je, jusqu,
184
+ jusque, l, la, laquelle, le, lequel, les, lesquelles, lesquels, leur,
185
+ leurs, lorsque, lui, là, ma, mais, malgré, me, merci, mes, mien, mienne,
186
+ miennes, miens, moi, moins, mon, moyennant, même, mêmes, n, ne, ni, non,
187
+ nos, notre, nous, néanmoins, nôtre, nôtres, on, ont, ou, outre, où,
188
+ par, parmi, partant, pas, passé, pendant, plein, plus, plusieurs, pour,
189
+ pourquoi, proche, près, puisque, qu, quand, que, quel, quelle, quelles,
190
+ quels, qui, quoi, quoique, revoici, revoilà, s, sa, sans, sauf, se, selon,
191
+ seront, ses, si, sien, sienne, siennes, siens, sinon, soi, soit, son, sont,
192
+ sous, suivant, sur, ta, te, tes, tien, tienne, tiennes, tiens, toi, ton,
193
+ tous, tout, toute, toutes, tu, un, une, va, vers, voici, voilà, vos,
194
+ votre, vous, vu, vôtre, vôtres, y, à, ça, ès, été, être, ô.
195
+ </p>
196
+ </td>
197
+ </tr>
198
+ <tr class="top-aligned-row context-row">
199
+ <td class="context-item-name">CJK</td>
200
+ <td>=</td>
201
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-cjk&quot;.freeze</td>
202
+ <td width="3em">&nbsp;</td>
203
+ <td class="context-item-desc">
204
+ A standard CJK language analyzer.
205
+
206
+ </td>
207
+ </tr>
208
+ <tr class="top-aligned-row context-row">
209
+ <td class="context-item-name">DUTCH</td>
210
+ <td>=</td>
211
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-nl&quot;.freeze</td>
212
+ <td width="3em">&nbsp;</td>
213
+ <td class="context-item-desc">
214
+ The following words are considered to be stop words and will not be
215
+ indexed: de, en, van, ik, te, dat, die, in, een, hij, het, niet, zijn, is,
216
+ was, op, aan, met, als, voor, had, er, maar, om, hem, dan, zou, of, wat,
217
+ mijn, men, dit, zo, door, over, ze, zich, bij, ook, tot, je, mij, uit, der,
218
+ daar, haar, naar, heb, hoe, heeft, hebben, deze, u, want, nog, zal, me,
219
+ zij, nu, ge, geen, omdat, iets, worden, toch, al, waren, veel, meer, doen,
220
+ toen, moet, ben, zonder, kan, hun, dus, alles, onder, ja, eens, hier, wie,
221
+ werd, altijd, doch, wordt, wezen, kunnen, ons, zelf, tegen, na, reeds, wil,
222
+ kon, niets, uw, iemand, geweest, andere
223
+
224
+ </td>
225
+ </tr>
226
+ <tr class="top-aligned-row context-row">
227
+ <td class="context-item-name">CHINESE</td>
228
+ <td>=</td>
229
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#standard-cn&quot;.freeze</td>
230
+ </tr>
231
+ <tr class="top-aligned-row context-row">
232
+ <td class="context-item-name">KEYWORD</td>
233
+ <td>=</td>
234
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#keyword&quot;.freeze</td>
235
+ <td width="3em">&nbsp;</td>
236
+ <td class="context-item-desc">
237
+ This analyzer does not split the field at all. The entire value of the
238
+ field is indexed as a single token.
239
+
240
+ </td>
241
+ </tr>
242
+ <tr class="top-aligned-row context-row">
243
+ <td class="context-item-name">NO_STOP_WORD_STANDARD</td>
244
+ <td>=</td>
245
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#nostop-en&quot;.freeze</td>
246
+ <td width="3em">&nbsp;</td>
247
+ <td class="context-item-desc">
248
+ English analyzer without stop words. This is identical to the standard
249
+ English analyzer but all words are indexed.
250
+
251
+ </td>
252
+ </tr>
253
+ <tr class="top-aligned-row context-row">
254
+ <td class="context-item-name">NORMALISE_STANDARD</td>
255
+ <td>=</td>
256
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#norm-en&quot;.freeze</td>
257
+ <td width="3em">&nbsp;</td>
258
+ <td class="context-item-desc">
259
+ English analyzer without stop words and with accent support. This is
260
+ identical to the standard English analyzer but all words are indexed plus
261
+ any accented characters in the ISO Latin 1 character set are replaced by
262
+ their unaccented equivalent See API documentation at <a
263
+ href="http://n2.talis.com/wiki/Field_Predicate_Map">n2.talis.com/wiki/Field_Predicate_Map</a>
264
+ for details of replacements
265
+
266
+ </td>
267
+ </tr>
268
+ <tr class="top-aligned-row context-row">
269
+ <td class="context-item-name">PORTER_NORMALIZE_STANDARD</td>
270
+ <td>=</td>
271
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#porter-norm-en&quot;.freeze</td>
272
+ <td width="3em">&nbsp;</td>
273
+ <td class="context-item-desc">
274
+ English analyzer with porter stemming, case normalization, latin 1
275
+ normalization, and stop words removal
276
+
277
+ </td>
278
+ </tr>
279
+ <tr class="top-aligned-row context-row">
280
+ <td class="context-item-name">PORTER_NO_STOP_WORD_STANDARD</td>
281
+ <td>=</td>
282
+ <td class="context-item-value">&quot;http://schemas.talis.com/2007/bigfoot/analyzers#porter-nostop-norm-en&quot;.freeze</td>
283
+ <td width="3em">&nbsp;</td>
284
+ <td class="context-item-desc">
285
+ English analyzer with porter stemming, case normalization and latin 1
286
+ normalization.
287
+
288
+ </td>
289
+ </tr>
290
+ </table>
291
+ </div>
292
+ </div>
293
+
294
+
295
+
296
+
297
+
298
+
299
+ <!-- if method_list -->
300
+
301
+
302
+ </div>
303
+
304
+
305
+ <div id="validator-badges">
306
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
307
+ </div>
308
+
309
+ </body>
310
+ </html>