pho 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +6 -0
- data/README +9 -1
- data/Rakefile +1 -1
- data/doc/index.html +3 -1
- data/doc/rdoc/classes/Pho/Analyzers.html +310 -0
- data/doc/rdoc/classes/Pho/CommandLine.html +770 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +241 -0
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +410 -0
- data/doc/rdoc/classes/Pho/Enrichment.html +119 -0
- data/doc/rdoc/classes/Pho/Etags.html +310 -0
- data/doc/rdoc/classes/Pho/Facet/Results.html +299 -0
- data/doc/rdoc/classes/Pho/Facet/Term.html +177 -0
- data/doc/rdoc/classes/Pho/Facet.html +119 -0
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +695 -0
- data/doc/rdoc/classes/Pho/FieldWeighting.html +230 -0
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +478 -0
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +264 -0
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +259 -0
- data/doc/rdoc/classes/Pho/FileManagement.html +121 -0
- data/doc/rdoc/classes/Pho/Job.html +627 -0
- data/doc/rdoc/classes/Pho/JobUpdate.html +141 -0
- data/doc/rdoc/classes/Pho/Jobs.html +538 -0
- data/doc/rdoc/classes/Pho/Namespaces.html +164 -0
- data/doc/rdoc/classes/Pho/OAI/Record.html +165 -0
- data/doc/rdoc/classes/Pho/OAI/Records.html +331 -0
- data/doc/rdoc/classes/Pho/OAI.html +118 -0
- data/doc/rdoc/classes/Pho/QueryProfile.html +524 -0
- data/doc/rdoc/classes/Pho/RDF/Parser.html +279 -0
- data/doc/rdoc/classes/Pho/RDF.html +120 -0
- data/doc/rdoc/classes/Pho/RDFCollection.html +119 -0
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +325 -0
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +241 -0
- data/doc/rdoc/classes/Pho/ResourceHash.html +123 -0
- data/doc/rdoc/classes/Pho/Snapshot.html +402 -0
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +594 -0
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +696 -0
- data/doc/rdoc/classes/Pho/Sparql.html +187 -0
- data/doc/rdoc/classes/Pho/Status.html +296 -0
- data/doc/rdoc/classes/Pho/Store.html +1569 -0
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +183 -0
- data/doc/rdoc/classes/Pho/Update/Changeset.html +521 -0
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +330 -0
- data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +159 -0
- data/doc/rdoc/classes/Pho/Update/Changesets.html +205 -0
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +257 -0
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +237 -0
- data/doc/rdoc/classes/Pho/Update/Statement.html +303 -0
- data/doc/rdoc/classes/Pho/Update.html +128 -0
- data/doc/rdoc/classes/Pho.html +283 -0
- data/doc/rdoc/classes/String.html +146 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/CHANGES.html +373 -0
- data/doc/rdoc/files/README.html +204 -0
- 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/command_line_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/converter_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/enrichment_rb.html +101 -0
- 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/file_management_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/file_manager_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/job_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/oai_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/rdf_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/resource_hash_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/snapshot_rb.html +109 -0
- data/doc/rdoc/files/lib/pho/sparql_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/status_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/store_rb.html +108 -0
- data/doc/rdoc/files/lib/pho_rb.html +133 -0
- data/doc/rdoc/fr_class_index.html +72 -0
- data/doc/rdoc/fr_file_index.html +49 -0
- data/doc/rdoc/fr_method_index.html +239 -0
- data/doc/rdoc/index.html +24 -0
- data/doc/rdoc/rdoc-style.css +208 -0
- data/lib/pho/enrichment.rb +1 -0
- data/lib/pho/field_predicate_map.rb +5 -0
- data/lib/pho/query_profile.rb +5 -0
- data/lib/pho/store.rb +4 -1
- data/tests/tc_field_predicate_map.rb +7 -1
- data/tests/tc_query_profile.rb +6 -0
- data/tests/tc_store_util.rb +7 -0
- metadata +134 -21
@@ -0,0 +1,373 @@
|
|
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>File: CHANGES</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="fileHeader">
|
50
|
+
<h1>CHANGES</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>CHANGES
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Aug 31 08:54:49 +0100 2010</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
Brief notes on significant changes and additions in each release
|
74
|
+
</p>
|
75
|
+
<h2>Version 0.7.4</h2>
|
76
|
+
<ul>
|
77
|
+
<li>Moved version control to github.
|
78
|
+
|
79
|
+
</li>
|
80
|
+
<li>Added store.name property
|
81
|
+
|
82
|
+
</li>
|
83
|
+
<li>Added remove_all methods to FieldPredicateMap and QueryProfile
|
84
|
+
|
85
|
+
</li>
|
86
|
+
</ul>
|
87
|
+
<h2>Version 0.7.3</h2>
|
88
|
+
<ul>
|
89
|
+
<li>Fixed bug in Snapshot result parsing, now returns nil if no snapshot for
|
90
|
+
store
|
91
|
+
|
92
|
+
</li>
|
93
|
+
<li>Fixed bug in SparqlHelper when handling rows with no result binding
|
94
|
+
|
95
|
+
</li>
|
96
|
+
</ul>
|
97
|
+
<h2>Version 0.7.2</h2>
|
98
|
+
<ul>
|
99
|
+
<li>Now parses full OAI response, support for listing records between dates and
|
100
|
+
resumption tokens
|
101
|
+
|
102
|
+
</li>
|
103
|
+
</ul>
|
104
|
+
<h2>Version 0.7.1</h2>
|
105
|
+
<ul>
|
106
|
+
<li>Bug fix for changeset generation, escaping of & in literals
|
107
|
+
|
108
|
+
</li>
|
109
|
+
</ul>
|
110
|
+
<h2>Version 0.7</h2>
|
111
|
+
<ul>
|
112
|
+
<li>Started on OAI client
|
113
|
+
|
114
|
+
</li>
|
115
|
+
<li>New commandline options: add_mapping and add_weight
|
116
|
+
|
117
|
+
</li>
|
118
|
+
<li>Updated talis_store so that it now supports environment variables for user,
|
119
|
+
pass, store (TALIS_USER, TALIS_PASS, TALIS_STORE)
|
120
|
+
|
121
|
+
</li>
|
122
|
+
<li>Added getfpmap and getqueryprofile methods to command-line application for
|
123
|
+
retrieving either a summary or the raw data
|
124
|
+
|
125
|
+
</li>
|
126
|
+
<li>Updated command-line job control functions so that the Job URI is echoed to
|
127
|
+
command-line.
|
128
|
+
|
129
|
+
</li>
|
130
|
+
<li>Updated RDFManager so that it will now automatically upload all .rdf, .ttl
|
131
|
+
and .nt files in directory. An array of extension can be provided to
|
132
|
+
configure this behaviour
|
133
|
+
|
134
|
+
</li>
|
135
|
+
<li>Updated command-line tool so that it will now handle uploads of turtle
|
136
|
+
(.ttl) and ntriples (.nt) files correctly
|
137
|
+
|
138
|
+
</li>
|
139
|
+
<li>Updated Store class to allow mimetype of files and data to be specified
|
140
|
+
when uploading to metabox. Useful now that the platform supports turtle
|
141
|
+
|
142
|
+
</li>
|
143
|
+
</ul>
|
144
|
+
<h2>Version 0.6.1</h2>
|
145
|
+
<ul>
|
146
|
+
<li>Added examples/linkeddata/proxy.rb
|
147
|
+
|
148
|
+
</li>
|
149
|
+
<li>Fixed bug in command-line application
|
150
|
+
|
151
|
+
</li>
|
152
|
+
<li>Added SparqlHelper.exists method
|
153
|
+
|
154
|
+
</li>
|
155
|
+
</ul>
|
156
|
+
<h2>Version 0.6</h2>
|
157
|
+
<ul>
|
158
|
+
<li>Refactored talis_store command extracting code into <a
|
159
|
+
href="../classes/Pho/CommandLine.html">Pho::CommandLine</a>
|
160
|
+
|
161
|
+
</li>
|
162
|
+
<li>Tweaked talis_store command, so attempt to store .nt file will trigger
|
163
|
+
conversion into RDF/XML before submitting to Platform
|
164
|
+
|
165
|
+
</li>
|
166
|
+
<li>Added <a href="../classes/Pho/RDF.html">Pho::RDF</a> module for general rdf
|
167
|
+
utilities. Initially has method to convert ntriples into rdf/xml and to
|
168
|
+
store that in the platform
|
169
|
+
|
170
|
+
</li>
|
171
|
+
<li>At suggestion of @chrislowis added rescue around redland dependent
|
172
|
+
requires.
|
173
|
+
|
174
|
+
</li>
|
175
|
+
<li>talis_store command-line now supports "upload" option for storing
|
176
|
+
individual files or directories
|
177
|
+
|
178
|
+
</li>
|
179
|
+
<li>Added support for directory traversal to RDFManager and FileManager classes
|
180
|
+
|
181
|
+
</li>
|
182
|
+
<li>Fixed bug in counting files being managed in RDFManager
|
183
|
+
|
184
|
+
</li>
|
185
|
+
<li>Fixed file naming bug in AbstractFileManager, when path contains file
|
186
|
+
extension
|
187
|
+
|
188
|
+
</li>
|
189
|
+
<li>Added support for block to StoreEnricher.merge and StoreEnricher.infer
|
190
|
+
|
191
|
+
</li>
|
192
|
+
<li>Renamed ResourceEnricher to StoreEnricher
|
193
|
+
|
194
|
+
</li>
|
195
|
+
<li>Reimplemented ResourceEnricher.enrich method to support both a callback and
|
196
|
+
a block
|
197
|
+
|
198
|
+
</li>
|
199
|
+
<li>Added StoreSparqlClient to extend default client, and rewrite describe_uri
|
200
|
+
queries as describe service calls
|
201
|
+
|
202
|
+
</li>
|
203
|
+
<li>Added SparqlClient.describe_uri and SparqlHelper.describe_uri methods for
|
204
|
+
generating different forms of Bounded Description for a resource
|
205
|
+
|
206
|
+
</li>
|
207
|
+
</ul>
|
208
|
+
<h2>Version 0.5</h2>
|
209
|
+
<p>
|
210
|
+
NOTE: Released 0.4.1 version of the gem at this point to support earlier
|
211
|
+
versions of Ruby.
|
212
|
+
</p>
|
213
|
+
<ul>
|
214
|
+
<li>Added Enrichment module to support updating a store with results of simple
|
215
|
+
inference (using CONSTRUCT queries), merging data from external endpoints,
|
216
|
+
and support for parameterized lookup and enrichment of resources
|
217
|
+
|
218
|
+
</li>
|
219
|
+
<li>Added SparqlClient.multi_describe
|
220
|
+
|
221
|
+
</li>
|
222
|
+
<li>Added additional methods in SparqlHelper to support applying initial
|
223
|
+
bindings to queries, and generating initial bindings from SELECT results
|
224
|
+
|
225
|
+
</li>
|
226
|
+
<li>Added <a
|
227
|
+
href="../classes/Pho/FileManagement/FileManager.html">Pho::FileManagement::FileManager</a>
|
228
|
+
for pushing a directory of files into the content box
|
229
|
+
|
230
|
+
</li>
|
231
|
+
<li>RDFCollection is now deprecated
|
232
|
+
|
233
|
+
</li>
|
234
|
+
<li>Added <a href="../classes/Pho/FileManagement.html">Pho::FileManagement</a>
|
235
|
+
module and extracted code from RDFCollection to support creating similar
|
236
|
+
util for other files
|
237
|
+
|
238
|
+
</li>
|
239
|
+
<li>Added SparqlHelper class to simplify a few common tasks
|
240
|
+
|
241
|
+
</li>
|
242
|
+
<li>Added new Sparql module and refactored store methods to use SparqlClient
|
243
|
+
class
|
244
|
+
|
245
|
+
</li>
|
246
|
+
<li>Fixed bug in store.augment() method which was setting wrong headers on POST
|
247
|
+
|
248
|
+
</li>
|
249
|
+
<li>Added Converter class to convert between various RDF serializations and
|
250
|
+
resource hashes. This uses the Redland API.
|
251
|
+
|
252
|
+
</li>
|
253
|
+
<li>Support Ruby 1.8.5 or above (to allow installation on Centos 5)
|
254
|
+
|
255
|
+
</li>
|
256
|
+
<li>Support for storing data in private graphs as well as metabox
|
257
|
+
|
258
|
+
</li>
|
259
|
+
<li>Support for submission of changesets to private graphs as well as metabox
|
260
|
+
|
261
|
+
</li>
|
262
|
+
<li>Multisparql options on all Store sparql methods
|
263
|
+
|
264
|
+
</li>
|
265
|
+
<li>Addition of ChangeSetBuilder class for constructing changesets from triple
|
266
|
+
hashes
|
267
|
+
|
268
|
+
</li>
|
269
|
+
<li>Addition of ResourceHash module and SetAlgebra class for working with
|
270
|
+
triple hashes
|
271
|
+
|
272
|
+
</li>
|
273
|
+
<li>Addition of Changeset, Statement classes for capturing and serializing
|
274
|
+
Changeset data
|
275
|
+
|
276
|
+
</li>
|
277
|
+
<li>Fixed bugs in facet, search params
|
278
|
+
|
279
|
+
</li>
|
280
|
+
<li>Added submit_changeset method to Store to support submission of changeset
|
281
|
+
data
|
282
|
+
|
283
|
+
</li>
|
284
|
+
</ul>
|
285
|
+
<h2>Version 0.4</h2>
|
286
|
+
<ul>
|
287
|
+
<li>Added support for reading Job lifecycle data exposed in Talis Platform
|
288
|
+
Release 21
|
289
|
+
|
290
|
+
</li>
|
291
|
+
<li>Added constants for 2 new analysers added in Talis Platform Release 21
|
292
|
+
|
293
|
+
</li>
|
294
|
+
<li>Refactored job submission code to move methods from the Store class onto
|
295
|
+
the Jobs and Job classes instead. This brings that code in line with the
|
296
|
+
patterns used elsewhere
|
297
|
+
|
298
|
+
</li>
|
299
|
+
<li>Re-implemented snapshot reading code to use RDF/XML rather than scraping
|
300
|
+
the HTML
|
301
|
+
|
302
|
+
</li>
|
303
|
+
<li>Added a fledgling command-line tool for working with the platform
|
304
|
+
"talis_store"
|
305
|
+
|
306
|
+
</li>
|
307
|
+
</ul>
|
308
|
+
<h2>Version 0.3</h2>
|
309
|
+
<ul>
|
310
|
+
<li>Added support for QueryProfiles, Facets
|
311
|
+
|
312
|
+
</li>
|
313
|
+
<li>Added <a href="../classes/Pho/Namespaces.html">Pho::Namespaces</a> module
|
314
|
+
for collecting together ns declarations
|
315
|
+
|
316
|
+
</li>
|
317
|
+
<li>Altered store.status to return basic response, and a new Status class to
|
318
|
+
parse and encapsulate the response data
|
319
|
+
|
320
|
+
</li>
|
321
|
+
</ul>
|
322
|
+
<h2>Version 0.2</h2>
|
323
|
+
<ul>
|
324
|
+
<li>Added support for parsing and maintenance of FieldPredicate Maps
|
325
|
+
|
326
|
+
</li>
|
327
|
+
</ul>
|
328
|
+
<h2>Version 0.1</h2>
|
329
|
+
<ul>
|
330
|
+
<li>Implemented core contentbox, metabox and service functionality. First
|
331
|
+
proper release
|
332
|
+
|
333
|
+
</li>
|
334
|
+
</ul>
|
335
|
+
<h2>Version 0.0.1</h2>
|
336
|
+
<ul>
|
337
|
+
<li>Testing gem package building and release
|
338
|
+
|
339
|
+
</li>
|
340
|
+
</ul>
|
341
|
+
|
342
|
+
</div>
|
343
|
+
|
344
|
+
|
345
|
+
</div>
|
346
|
+
|
347
|
+
|
348
|
+
</div>
|
349
|
+
|
350
|
+
|
351
|
+
<!-- if includes -->
|
352
|
+
|
353
|
+
<div id="section">
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
<!-- if method_list -->
|
363
|
+
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
|
368
|
+
<div id="validator-badges">
|
369
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
370
|
+
</div>
|
371
|
+
|
372
|
+
</body>
|
373
|
+
</html>
|
@@ -0,0 +1,204 @@
|
|
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>File: README</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="fileHeader">
|
50
|
+
<h1>README</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>README
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Aug 31 08:32:36 +0100 2010</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<p>
|
73
|
+
The <a href="../classes/Pho.html">Pho</a> ruby module provides a
|
74
|
+
lightweight Ruby client library for interacting with the Talis Platform API
|
75
|
+
(<a
|
76
|
+
href="http://n2.talis.com/wiki/Platform_API">n2.talis.com/wiki/Platform_API</a>).
|
77
|
+
</p>
|
78
|
+
<h2>Author</h2>
|
79
|
+
<p>
|
80
|
+
Leigh Dodds (leigh.dodds@talis.com)
|
81
|
+
</p>
|
82
|
+
<h2>Download</h2>
|
83
|
+
<p>
|
84
|
+
<a href="../classes/Pho.html">Pho</a> is packaged as a Ruby Gem and can be
|
85
|
+
downloaded from:
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
<a href="http://rubygems.org/gems/pho">rubygems.org/gems/pho</a>
|
89
|
+
</p>
|
90
|
+
<p>
|
91
|
+
As of release 0.7.4 the source for the project is maintained in github at:
|
92
|
+
</p>
|
93
|
+
<p>
|
94
|
+
<a href="http://github.com/ldodds/pho">github.com/ldodds/pho</a>
|
95
|
+
</p>
|
96
|
+
<p>
|
97
|
+
Earlier versions of the source, plus the RDoc can be accessed from:
|
98
|
+
</p>
|
99
|
+
<p>
|
100
|
+
<a href="http://pho.rubyforge.net">pho.rubyforge.net</a>
|
101
|
+
</p>
|
102
|
+
<h2>Installation</h2>
|
103
|
+
<p>
|
104
|
+
From the 0.5 release onwards, <a href="../classes/Pho.html">Pho</a> is
|
105
|
+
dependent on the Ruby bindings for the Redland RDF library. Ensure you have
|
106
|
+
the librdf0 and librdf-ruby packages installed.
|
107
|
+
</p>
|
108
|
+
<p>
|
109
|
+
All other dependencies are for specific Ruby gems which should get
|
110
|
+
automatically installed, along with the <a
|
111
|
+
href="../classes/Pho.html">Pho</a> gem itself, by running:
|
112
|
+
</p>
|
113
|
+
<pre>
|
114
|
+
sudo gem install pho
|
115
|
+
</pre>
|
116
|
+
<h2>Usage</h2>
|
117
|
+
<p>
|
118
|
+
To use <a href="../classes/Pho.html">Pho</a> you can:
|
119
|
+
</p>
|
120
|
+
<pre>
|
121
|
+
require 'pho'
|
122
|
+
</pre>
|
123
|
+
<p>
|
124
|
+
And then create an instance of the appropriate class, e.g Store:
|
125
|
+
</p>
|
126
|
+
<pre>
|
127
|
+
store = Pho::Store.new("http://api.talis.com/testing", "user", "pass")
|
128
|
+
response = store.describe("http://www.example.org")
|
129
|
+
</pre>
|
130
|
+
<p>
|
131
|
+
For more detailed examples consult the documentation for the Store class
|
132
|
+
</p>
|
133
|
+
<h2>Control over HTTP interactions</h2>
|
134
|
+
<p>
|
135
|
+
<a href="../classes/Pho.html">Pho</a> is dependent on the HTTPClient module
|
136
|
+
and all HTTP interactions are delegated to an instance of the HTTPClient
|
137
|
+
class. In circumstances where greater control over the HTTP interaction is
|
138
|
+
required, e.g. to configure proxy servers, etc, an existing instance of
|
139
|
+
this class can be provided, e.g:
|
140
|
+
</p>
|
141
|
+
<pre>
|
142
|
+
client = HTTPClient.new
|
143
|
+
=> configure client as required
|
144
|
+
store = Pho::Store.new("http://api.talis.com/testing", "user", "pass", client)
|
145
|
+
=> pass instance of client as parameter
|
146
|
+
response = store.describe("http://www.example.org")
|
147
|
+
</pre>
|
148
|
+
<h2>License</h2>
|
149
|
+
<p>
|
150
|
+
Copyright 2009 Leigh Dodds
|
151
|
+
</p>
|
152
|
+
<p>
|
153
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
154
|
+
you may not use this file except in compliance with the License.
|
155
|
+
</p>
|
156
|
+
<p>
|
157
|
+
You may obtain a copy of the License at
|
158
|
+
</p>
|
159
|
+
<p>
|
160
|
+
<a
|
161
|
+
href="http://www.apache.org/licenses/LICENSE-2.0">www.apache.org/licenses/LICENSE-2.0</a>
|
162
|
+
</p>
|
163
|
+
<p>
|
164
|
+
Unless required by applicable law or agreed to in writing, software
|
165
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
166
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
167
|
+
</p>
|
168
|
+
<p>
|
169
|
+
See the License for the specific language governing permissions and
|
170
|
+
limitations under the License.
|
171
|
+
</p>
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
</div>
|
177
|
+
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
<!-- if includes -->
|
183
|
+
|
184
|
+
<div id="section">
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<!-- if method_list -->
|
194
|
+
|
195
|
+
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
<div id="validator-badges">
|
200
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
</body>
|
204
|
+
</html>
|
@@ -0,0 +1,108 @@
|
|
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>File: changeset_builder.rb</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="fileHeader">
|
50
|
+
<h1>changeset_builder.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/pho/changeset_builder.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Mon Jun 07 13:27:18 +0100 2010</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
uri
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|