pho 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +19 -0
- data/Rakefile +6 -4
- data/doc/index.html +6 -0
- data/doc/rdoc/classes/Pho.html +250 -0
- data/doc/rdoc/classes/Pho/Analyzers.html +288 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +209 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.src/M000034.html +21 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.src/M000035.html +29 -0
- data/doc/rdoc/classes/Pho/Etags.html +238 -0
- data/doc/rdoc/classes/Pho/Etags.src/M000088.html +23 -0
- data/doc/rdoc/classes/Pho/Etags.src/M000089.html +28 -0
- data/doc/rdoc/classes/Pho/Etags.src/M000090.html +21 -0
- data/doc/rdoc/classes/Pho/Etags.src/M000091.html +18 -0
- data/doc/rdoc/classes/Pho/Etags.src/M000092.html +18 -0
- data/doc/rdoc/classes/Pho/Etags.src/M000093.html +18 -0
- data/doc/rdoc/classes/Pho/Facet.html +119 -0
- data/doc/rdoc/classes/Pho/Facet/Results.html +225 -0
- data/doc/rdoc/classes/Pho/Facet/Results.src/M000001.html +20 -0
- data/doc/rdoc/classes/Pho/Facet/Results.src/M000002.html +27 -0
- data/doc/rdoc/classes/Pho/Facet/Results.src/M000003.html +54 -0
- data/doc/rdoc/classes/Pho/Facet/Term.html +166 -0
- data/doc/rdoc/classes/Pho/Facet/Term.src/M000004.html +20 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +461 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000005.html +38 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000006.html +28 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000007.html +20 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000008.html +18 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000009.html +23 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000010.html +23 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000011.html +18 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000012.html +18 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000013.html +18 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000014.html +18 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000015.html +18 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000016.html +21 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000017.html +21 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000018.html +38 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.src/M000019.html +18 -0
- data/doc/rdoc/classes/Pho/FieldWeighting.html +202 -0
- data/doc/rdoc/classes/Pho/FieldWeighting.src/M000075.html +20 -0
- data/doc/rdoc/classes/Pho/FieldWeighting.src/M000076.html +26 -0
- data/doc/rdoc/classes/Pho/Job.html +147 -0
- data/doc/rdoc/classes/Pho/Job.src/M000074.html +21 -0
- data/doc/rdoc/classes/Pho/Namespaces.html +128 -0
- data/doc/rdoc/classes/Pho/QueryProfile.html +355 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000024.html +39 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000025.html +24 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000026.html +20 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000027.html +18 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000028.html +18 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000029.html +21 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000030.html +18 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000031.html +18 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000032.html +38 -0
- data/doc/rdoc/classes/Pho/QueryProfile.src/M000033.html +18 -0
- data/doc/rdoc/classes/Pho/RDFCollection.html +353 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000077.html +23 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000078.html +22 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000079.html +24 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000080.html +23 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000081.html +18 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000082.html +22 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000083.html +22 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000084.html +26 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000085.html +23 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000086.html +18 -0
- data/doc/rdoc/classes/Pho/RDFCollection.src/M000087.html +18 -0
- data/doc/rdoc/classes/Pho/Snapshot.html +271 -0
- data/doc/rdoc/classes/Pho/Snapshot.src/M000070.html +31 -0
- data/doc/rdoc/classes/Pho/Snapshot.src/M000071.html +21 -0
- data/doc/rdoc/classes/Pho/Snapshot.src/M000072.html +18 -0
- data/doc/rdoc/classes/Pho/Snapshot.src/M000073.html +37 -0
- data/doc/rdoc/classes/Pho/Status.html +245 -0
- data/doc/rdoc/classes/Pho/Status.src/M000020.html +20 -0
- data/doc/rdoc/classes/Pho/Status.src/M000021.html +31 -0
- data/doc/rdoc/classes/Pho/Status.src/M000022.html +18 -0
- data/doc/rdoc/classes/Pho/Status.src/M000023.html +18 -0
- data/doc/rdoc/classes/Pho/Store.html +1055 -0
- data/doc/rdoc/classes/Pho/Store.src/M000036.html +22 -0
- data/doc/rdoc/classes/Pho/Store.src/M000037.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000038.html +25 -0
- data/doc/rdoc/classes/Pho/Store.src/M000039.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000040.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000041.html +28 -0
- data/doc/rdoc/classes/Pho/Store.src/M000042.html +23 -0
- data/doc/rdoc/classes/Pho/Store.src/M000043.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000044.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000045.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000046.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000047.html +23 -0
- data/doc/rdoc/classes/Pho/Store.src/M000048.html +22 -0
- data/doc/rdoc/classes/Pho/Store.src/M000049.html +26 -0
- data/doc/rdoc/classes/Pho/Store.src/M000050.html +24 -0
- data/doc/rdoc/classes/Pho/Store.src/M000051.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000052.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000053.html +25 -0
- data/doc/rdoc/classes/Pho/Store.src/M000054.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000055.html +30 -0
- data/doc/rdoc/classes/Pho/Store.src/M000056.html +21 -0
- data/doc/rdoc/classes/Pho/Store.src/M000057.html +23 -0
- data/doc/rdoc/classes/Pho/Store.src/M000058.html +28 -0
- data/doc/rdoc/classes/Pho/Store.src/M000059.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000060.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000061.html +18 -0
- data/doc/rdoc/classes/Pho/Store.src/M000062.html +31 -0
- data/doc/rdoc/classes/Pho/Store.src/M000063.html +21 -0
- data/doc/rdoc/classes/Pho/Store.src/M000064.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000065.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000066.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000067.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000068.html +20 -0
- data/doc/rdoc/classes/Pho/Store.src/M000069.html +20 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +140 -0
- data/doc/rdoc/files/README.html +9 -8
- data/doc/rdoc/files/lib/pho/etags_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/facet_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/job_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/query_profile_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/snapshot_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/status_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/store_rb.html +101 -0
- data/doc/rdoc/files/lib/pho_rb.html +120 -0
- data/doc/rdoc/fr_class_index.html +16 -0
- data/doc/rdoc/fr_file_index.html +11 -0
- data/doc/rdoc/fr_method_index.html +93 -0
- data/examples/status.rb +3 -3
- data/lib/pho.rb +11 -2
- data/lib/pho/facet.rb +101 -0
- data/lib/pho/field_predicate_map.rb +4 -4
- data/lib/pho/query_profile.rb +170 -0
- data/lib/pho/status.rb +65 -0
- data/lib/pho/store.rb +26 -13
- data/tests/tc_facet.rb +91 -0
- data/tests/tc_query_profile.rb +196 -0
- data/tests/tc_status.rb +56 -0
- data/tests/ts_pho.rb +3 -0
- metadata +148 -3
data/CHANGES
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Brief notes on significant changes and additions in each release
|
|
2
|
+
|
|
3
|
+
== Version 0.3
|
|
4
|
+
|
|
5
|
+
* Added support for QueryProfiles, Facets
|
|
6
|
+
* Added Pho::Namespaces module for collecting together ns declarations
|
|
7
|
+
* Altered store.status to return basic response, and a new Status class to parse and encapsulate the response data
|
|
8
|
+
|
|
9
|
+
== Version 0.2
|
|
10
|
+
|
|
11
|
+
* Added support for parsing and maintenance of FieldPredicate Maps
|
|
12
|
+
|
|
13
|
+
== Version 0.1
|
|
14
|
+
|
|
15
|
+
* Implemented core contentbox, metabox and service functionality. First proper release
|
|
16
|
+
|
|
17
|
+
== Version 0.0.1
|
|
18
|
+
|
|
19
|
+
* Testing gem package building and release
|
data/Rakefile
CHANGED
|
@@ -5,11 +5,11 @@ require 'rake/testtask'
|
|
|
5
5
|
require 'rake/clean'
|
|
6
6
|
|
|
7
7
|
NAME = "pho"
|
|
8
|
-
VER = "0.
|
|
8
|
+
VER = "0.3"
|
|
9
9
|
|
|
10
10
|
RDOC_OPTS = ['--quiet', '--title', 'Pho (Talis Platform Client) Reference', '--main', 'README']
|
|
11
11
|
|
|
12
|
-
PKG_FILES = %w( README Rakefile ) +
|
|
12
|
+
PKG_FILES = %w( README Rakefile CHANGES ) +
|
|
13
13
|
Dir.glob("{bin,doc,tests,examples,lib}/**/*")
|
|
14
14
|
|
|
15
15
|
CLEAN.include ['*.gem', 'pkg']
|
|
@@ -18,8 +18,9 @@ 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.7"
|
|
21
22
|
s.has_rdoc = true
|
|
22
|
-
s.extra_rdoc_files = ["README"]
|
|
23
|
+
s.extra_rdoc_files = ["README", "CHANGES"]
|
|
23
24
|
s.rdoc_options = RDOC_OPTS
|
|
24
25
|
s.summary = "Ruby client for the Talis Platform"
|
|
25
26
|
s.description = s.summary
|
|
@@ -43,8 +44,9 @@ end
|
|
|
43
44
|
Rake::RDocTask.new do |rdoc|
|
|
44
45
|
rdoc.rdoc_dir = 'doc/rdoc'
|
|
45
46
|
rdoc.options += RDOC_OPTS
|
|
47
|
+
rdoc.rdoc_files.include("README", "CHANGES", "lib/**/*.rb")
|
|
46
48
|
rdoc.main = "README"
|
|
47
|
-
|
|
49
|
+
|
|
48
50
|
end
|
|
49
51
|
|
|
50
52
|
|
data/doc/index.html
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
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</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</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../files/lib/pho_rb.html">
|
|
59
|
+
lib/pho.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
<a href="../files/lib/pho/etags_rb.html">
|
|
63
|
+
lib/pho/etags.rb
|
|
64
|
+
</a>
|
|
65
|
+
<br />
|
|
66
|
+
<a href="../files/lib/pho/status_rb.html">
|
|
67
|
+
lib/pho/status.rb
|
|
68
|
+
</a>
|
|
69
|
+
<br />
|
|
70
|
+
<a href="../files/lib/pho/rdf_collection_rb.html">
|
|
71
|
+
lib/pho/rdf_collection.rb
|
|
72
|
+
</a>
|
|
73
|
+
<br />
|
|
74
|
+
<a href="../files/lib/pho/store_rb.html">
|
|
75
|
+
lib/pho/store.rb
|
|
76
|
+
</a>
|
|
77
|
+
<br />
|
|
78
|
+
<a href="../files/lib/pho/field_predicate_map_rb.html">
|
|
79
|
+
lib/pho/field_predicate_map.rb
|
|
80
|
+
</a>
|
|
81
|
+
<br />
|
|
82
|
+
<a href="../files/lib/pho/facet_rb.html">
|
|
83
|
+
lib/pho/facet.rb
|
|
84
|
+
</a>
|
|
85
|
+
<br />
|
|
86
|
+
<a href="../files/lib/pho/query_profile_rb.html">
|
|
87
|
+
lib/pho/query_profile.rb
|
|
88
|
+
</a>
|
|
89
|
+
<br />
|
|
90
|
+
<a href="../files/lib/pho/job_rb.html">
|
|
91
|
+
lib/pho/job.rb
|
|
92
|
+
</a>
|
|
93
|
+
<br />
|
|
94
|
+
<a href="../files/lib/pho/snapshot_rb.html">
|
|
95
|
+
lib/pho/snapshot.rb
|
|
96
|
+
</a>
|
|
97
|
+
<br />
|
|
98
|
+
</td>
|
|
99
|
+
</tr>
|
|
100
|
+
|
|
101
|
+
</table>
|
|
102
|
+
</div>
|
|
103
|
+
<!-- banner header -->
|
|
104
|
+
|
|
105
|
+
<div id="bodyContent">
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<div id="contextContent">
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<!-- if includes -->
|
|
120
|
+
|
|
121
|
+
<div id="section">
|
|
122
|
+
|
|
123
|
+
<div id="class-list">
|
|
124
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
125
|
+
|
|
126
|
+
Module <a href="Pho/Facet.html" class="link">Pho::Facet</a><br />
|
|
127
|
+
Module <a href="Pho/Namespaces.html" class="link">Pho::Namespaces</a><br />
|
|
128
|
+
Class <a href="Pho/Analyzers.html" class="link">Pho::Analyzers</a><br />
|
|
129
|
+
Class <a href="Pho/DatatypeProperty.html" class="link">Pho::DatatypeProperty</a><br />
|
|
130
|
+
Class <a href="Pho/Etags.html" class="link">Pho::Etags</a><br />
|
|
131
|
+
Class <a href="Pho/FieldPredicateMap.html" class="link">Pho::FieldPredicateMap</a><br />
|
|
132
|
+
Class <a href="Pho/FieldWeighting.html" class="link">Pho::FieldWeighting</a><br />
|
|
133
|
+
Class <a href="Pho/Job.html" class="link">Pho::Job</a><br />
|
|
134
|
+
Class <a href="Pho/QueryProfile.html" class="link">Pho::QueryProfile</a><br />
|
|
135
|
+
Class <a href="Pho/RDFCollection.html" class="link">Pho::RDFCollection</a><br />
|
|
136
|
+
Class <a href="Pho/Snapshot.html" class="link">Pho::Snapshot</a><br />
|
|
137
|
+
Class <a href="Pho/Status.html" class="link">Pho::Status</a><br />
|
|
138
|
+
Class <a href="Pho/Store.html" class="link">Pho::Store</a><br />
|
|
139
|
+
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<div id="constants-list">
|
|
143
|
+
<h3 class="section-bar">Constants</h3>
|
|
144
|
+
|
|
145
|
+
<div class="name-list">
|
|
146
|
+
<table summary="Constants">
|
|
147
|
+
<tr class="top-aligned-row context-row">
|
|
148
|
+
<td class="context-item-name">ACCEPT_RDF</td>
|
|
149
|
+
<td>=</td>
|
|
150
|
+
<td class="context-item-value">{"Accept" => "application/rdf+xml"}.freeze</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr class="top-aligned-row context-row">
|
|
153
|
+
<td class="context-item-name">ACCEPT_JSON</td>
|
|
154
|
+
<td>=</td>
|
|
155
|
+
<td class="context-item-value">{ "Accept" => "application/json" }.freeze</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr class="top-aligned-row context-row">
|
|
158
|
+
<td class="context-item-name">RDF_XML</td>
|
|
159
|
+
<td>=</td>
|
|
160
|
+
<td class="context-item-value">{"Content-Type"=>"application/rdf+xml"}.freeze</td>
|
|
161
|
+
</tr>
|
|
162
|
+
<tr class="top-aligned-row context-row">
|
|
163
|
+
<td class="context-item-name">JOB_RESET</td>
|
|
164
|
+
<td>=</td>
|
|
165
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/configuration#ResetDataJob".freeze</td>
|
|
166
|
+
</tr>
|
|
167
|
+
<tr class="top-aligned-row context-row">
|
|
168
|
+
<td class="context-item-name">JOB_SNAPSHOT</td>
|
|
169
|
+
<td>=</td>
|
|
170
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/configuration#SnapshotJob".freeze</td>
|
|
171
|
+
</tr>
|
|
172
|
+
<tr class="top-aligned-row context-row">
|
|
173
|
+
<td class="context-item-name">JOB_REINDEX</td>
|
|
174
|
+
<td>=</td>
|
|
175
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/configuration#ReindexJob".freeze</td>
|
|
176
|
+
</tr>
|
|
177
|
+
<tr class="top-aligned-row context-row">
|
|
178
|
+
<td class="context-item-name">JOB_RESTORE</td>
|
|
179
|
+
<td>=</td>
|
|
180
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/configuration#RestoreJob".freeze</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr class="top-aligned-row context-row">
|
|
183
|
+
<td class="context-item-name">READ_ONLY</td>
|
|
184
|
+
<td>=</td>
|
|
185
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/statuses#read-only".freeze</td>
|
|
186
|
+
<td width="3em"> </td>
|
|
187
|
+
<td class="context-item-desc">
|
|
188
|
+
Can only read data
|
|
189
|
+
|
|
190
|
+
</td>
|
|
191
|
+
</tr>
|
|
192
|
+
<tr class="top-aligned-row context-row">
|
|
193
|
+
<td class="context-item-name">READ_WRITE</td>
|
|
194
|
+
<td>=</td>
|
|
195
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/statuses#read-write".freeze</td>
|
|
196
|
+
<td width="3em"> </td>
|
|
197
|
+
<td class="context-item-desc">
|
|
198
|
+
Can read and write data
|
|
199
|
+
|
|
200
|
+
</td>
|
|
201
|
+
</tr>
|
|
202
|
+
<tr class="top-aligned-row context-row">
|
|
203
|
+
<td class="context-item-name">UNAVAILABLE</td>
|
|
204
|
+
<td>=</td>
|
|
205
|
+
<td class="context-item-value">"http://schemas.talis.com/2006/bigfoot/statuses#unavailable".freeze</td>
|
|
206
|
+
<td width="3em"> </td>
|
|
207
|
+
<td class="context-item-desc">
|
|
208
|
+
Cannot access the store
|
|
209
|
+
|
|
210
|
+
</td>
|
|
211
|
+
</tr>
|
|
212
|
+
</table>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
<div id="attribute-list">
|
|
219
|
+
<h3 class="section-bar">Attributes</h3>
|
|
220
|
+
|
|
221
|
+
<div class="name-list">
|
|
222
|
+
<table>
|
|
223
|
+
<tr class="top-aligned-row context-row">
|
|
224
|
+
<td class="context-item-name">dir</td>
|
|
225
|
+
<td class="context-item-value"> [R] </td>
|
|
226
|
+
<td class="context-item-desc"></td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr class="top-aligned-row context-row">
|
|
229
|
+
<td class="context-item-name">store</td>
|
|
230
|
+
<td class="context-item-value"> [R] </td>
|
|
231
|
+
<td class="context-item-desc"></td>
|
|
232
|
+
</tr>
|
|
233
|
+
</table>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<!-- if method_list -->
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
<div id="validator-badges">
|
|
246
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
</body>
|
|
250
|
+
</html>
|
|
@@ -0,0 +1,288 @@
|
|
|
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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-en".freeze</td>
|
|
115
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-el".freeze</td>
|
|
136
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-de".freeze</td>
|
|
150
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-fr".freeze</td>
|
|
164
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-cjk".freeze</td>
|
|
202
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-nl".freeze</td>
|
|
212
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#standard-cn".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">"http://schemas.talis.com/2007/bigfoot/analyzers#keyword".freeze</td>
|
|
235
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#nostop-en".freeze</td>
|
|
246
|
+
<td width="3em"> </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">"http://schemas.talis.com/2007/bigfoot/analyzers#norm-en".freeze</td>
|
|
257
|
+
<td width="3em"> </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
|
+
</table>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
<!-- if method_list -->
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
<div id="validator-badges">
|
|
284
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
285
|
+
</div>
|
|
286
|
+
|
|
287
|
+
</body>
|
|
288
|
+
</html>
|