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
data/doc/rdoc/files/CHANGES.html
DELETED
@@ -1,351 +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>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>Sun Apr 04 15:30:05 +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.2</h2>
|
76
|
-
<ul>
|
77
|
-
<li>Now parses full OAI response, support for listing records between dates and
|
78
|
-
resumption tokens
|
79
|
-
|
80
|
-
</li>
|
81
|
-
</ul>
|
82
|
-
<h2>Version 0.7.1</h2>
|
83
|
-
<ul>
|
84
|
-
<li>Bug fix for changeset generation, escaping of & in literals
|
85
|
-
|
86
|
-
</li>
|
87
|
-
</ul>
|
88
|
-
<h2>Version 0.7</h2>
|
89
|
-
<ul>
|
90
|
-
<li>Started on OAI client
|
91
|
-
|
92
|
-
</li>
|
93
|
-
<li>New commandline options: add_mapping and add_weight
|
94
|
-
|
95
|
-
</li>
|
96
|
-
<li>Updated talis_store so that it now supports environment variables for user,
|
97
|
-
pass, store (TALIS_USER, TALIS_PASS, TALIS_STORE)
|
98
|
-
|
99
|
-
</li>
|
100
|
-
<li>Added getfpmap and getqueryprofile methods to command-line application for
|
101
|
-
retrieving either a summary or the raw data
|
102
|
-
|
103
|
-
</li>
|
104
|
-
<li>Updated command-line job control functions so that the Job URI is echoed to
|
105
|
-
command-line.
|
106
|
-
|
107
|
-
</li>
|
108
|
-
<li>Updated RDFManager so that it will now automatically upload all .rdf, .ttl
|
109
|
-
and .nt files in directory. An array of extension can be provided to
|
110
|
-
configure this behaviour
|
111
|
-
|
112
|
-
</li>
|
113
|
-
<li>Updated command-line tool so that it will now handle uploads of turtle
|
114
|
-
(.ttl) and ntriples (.nt) files correctly
|
115
|
-
|
116
|
-
</li>
|
117
|
-
<li>Updated Store class to allow mimetype of files and data to be specified
|
118
|
-
when uploading to metabox. Useful now that the platform supports turtle
|
119
|
-
|
120
|
-
</li>
|
121
|
-
</ul>
|
122
|
-
<h2>Version 0.6.1</h2>
|
123
|
-
<ul>
|
124
|
-
<li>Added examples/linkeddata/proxy.rb
|
125
|
-
|
126
|
-
</li>
|
127
|
-
<li>Fixed bug in command-line application
|
128
|
-
|
129
|
-
</li>
|
130
|
-
<li>Added SparqlHelper.exists method
|
131
|
-
|
132
|
-
</li>
|
133
|
-
</ul>
|
134
|
-
<h2>Version 0.6</h2>
|
135
|
-
<ul>
|
136
|
-
<li>Refactored talis_store command extracting code into <a
|
137
|
-
href="../classes/Pho/CommandLine.html">Pho::CommandLine</a>
|
138
|
-
|
139
|
-
</li>
|
140
|
-
<li>Tweaked talis_store command, so attempt to store .nt file will trigger
|
141
|
-
conversion into RDF/XML before submitting to Platform
|
142
|
-
|
143
|
-
</li>
|
144
|
-
<li>Added <a href="../classes/Pho/RDF.html">Pho::RDF</a> module for general rdf
|
145
|
-
utilities. Initially has method to convert ntriples into rdf/xml and to
|
146
|
-
store that in the platform
|
147
|
-
|
148
|
-
</li>
|
149
|
-
<li>At suggestion of @chrislowis added rescue around redland dependent
|
150
|
-
requires.
|
151
|
-
|
152
|
-
</li>
|
153
|
-
<li>talis_store command-line now supports "upload" option for storing
|
154
|
-
individual files or directories
|
155
|
-
|
156
|
-
</li>
|
157
|
-
<li>Added support for directory traversal to RDFManager and FileManager classes
|
158
|
-
|
159
|
-
</li>
|
160
|
-
<li>Fixed bug in counting files being managed in RDFManager
|
161
|
-
|
162
|
-
</li>
|
163
|
-
<li>Fixed file naming bug in AbstractFileManager, when path contains file
|
164
|
-
extension
|
165
|
-
|
166
|
-
</li>
|
167
|
-
<li>Added support for block to StoreEnricher.merge and StoreEnricher.infer
|
168
|
-
|
169
|
-
</li>
|
170
|
-
<li>Renamed ResourceEnricher to StoreEnricher
|
171
|
-
|
172
|
-
</li>
|
173
|
-
<li>Reimplemented ResourceEnricher.enrich method to support both a callback and
|
174
|
-
a block
|
175
|
-
|
176
|
-
</li>
|
177
|
-
<li>Added StoreSparqlClient to extend default client, and rewrite describe_uri
|
178
|
-
queries as describe service calls
|
179
|
-
|
180
|
-
</li>
|
181
|
-
<li>Added SparqlClient.describe_uri and SparqlHelper.describe_uri methods for
|
182
|
-
generating different forms of Bounded Description for a resource
|
183
|
-
|
184
|
-
</li>
|
185
|
-
</ul>
|
186
|
-
<h2>Version 0.5</h2>
|
187
|
-
<p>
|
188
|
-
NOTE: Released 0.4.1 version of the gem at this point to support earlier
|
189
|
-
versions of Ruby.
|
190
|
-
</p>
|
191
|
-
<ul>
|
192
|
-
<li>Added Enrichment module to support updating a store with results of simple
|
193
|
-
inference (using CONSTRUCT queries), merging data from external endpoints,
|
194
|
-
and support for parameterized lookup and enrichment of resources
|
195
|
-
|
196
|
-
</li>
|
197
|
-
<li>Added SparqlClient.multi_describe
|
198
|
-
|
199
|
-
</li>
|
200
|
-
<li>Added additional methods in SparqlHelper to support applying initial
|
201
|
-
bindings to queries, and generating initial bindings from SELECT results
|
202
|
-
|
203
|
-
</li>
|
204
|
-
<li>Added <a
|
205
|
-
href="../classes/Pho/FileManagement/FileManager.html">Pho::FileManagement::FileManager</a>
|
206
|
-
for pushing a directory of files into the content box
|
207
|
-
|
208
|
-
</li>
|
209
|
-
<li>RDFCollection is now deprecated
|
210
|
-
|
211
|
-
</li>
|
212
|
-
<li>Added <a href="../classes/Pho/FileManagement.html">Pho::FileManagement</a>
|
213
|
-
module and extracted code from RDFCollection to support creating similar
|
214
|
-
util for other files
|
215
|
-
|
216
|
-
</li>
|
217
|
-
<li>Added SparqlHelper class to simplify a few common tasks
|
218
|
-
|
219
|
-
</li>
|
220
|
-
<li>Added new Sparql module and refactored store methods to use SparqlClient
|
221
|
-
class
|
222
|
-
|
223
|
-
</li>
|
224
|
-
<li>Fixed bug in store.augment() method which was setting wrong headers on POST
|
225
|
-
|
226
|
-
</li>
|
227
|
-
<li>Added Converter class to convert between various RDF serializations and
|
228
|
-
resource hashes. This uses the Redland API.
|
229
|
-
|
230
|
-
</li>
|
231
|
-
<li>Support Ruby 1.8.5 or above (to allow installation on Centos 5)
|
232
|
-
|
233
|
-
</li>
|
234
|
-
<li>Support for storing data in private graphs as well as metabox
|
235
|
-
|
236
|
-
</li>
|
237
|
-
<li>Support for submission of changesets to private graphs as well as metabox
|
238
|
-
|
239
|
-
</li>
|
240
|
-
<li>Multisparql options on all Store sparql methods
|
241
|
-
|
242
|
-
</li>
|
243
|
-
<li>Addition of ChangeSetBuilder class for constructing changesets from triple
|
244
|
-
hashes
|
245
|
-
|
246
|
-
</li>
|
247
|
-
<li>Addition of ResourceHash module and SetAlgebra class for working with
|
248
|
-
triple hashes
|
249
|
-
|
250
|
-
</li>
|
251
|
-
<li>Addition of Changeset, Statement classes for capturing and serializing
|
252
|
-
Changeset data
|
253
|
-
|
254
|
-
</li>
|
255
|
-
<li>Fixed bugs in facet, search params
|
256
|
-
|
257
|
-
</li>
|
258
|
-
<li>Added submit_changeset method to Store to support submission of changeset
|
259
|
-
data
|
260
|
-
|
261
|
-
</li>
|
262
|
-
</ul>
|
263
|
-
<h2>Version 0.4</h2>
|
264
|
-
<ul>
|
265
|
-
<li>Added support for reading Job lifecycle data exposed in Talis Platform
|
266
|
-
Release 21
|
267
|
-
|
268
|
-
</li>
|
269
|
-
<li>Added constants for 2 new analysers added in Talis Platform Release 21
|
270
|
-
|
271
|
-
</li>
|
272
|
-
<li>Refactored job submission code to move methods from the Store class onto
|
273
|
-
the Jobs and Job classes instead. This brings that code in line with the
|
274
|
-
patterns used elsewhere
|
275
|
-
|
276
|
-
</li>
|
277
|
-
<li>Re-implemented snapshot reading code to use RDF/XML rather than scraping
|
278
|
-
the HTML
|
279
|
-
|
280
|
-
</li>
|
281
|
-
<li>Added a fledgling command-line tool for working with the platform
|
282
|
-
"talis_store"
|
283
|
-
|
284
|
-
</li>
|
285
|
-
</ul>
|
286
|
-
<h2>Version 0.3</h2>
|
287
|
-
<ul>
|
288
|
-
<li>Added support for QueryProfiles, Facets
|
289
|
-
|
290
|
-
</li>
|
291
|
-
<li>Added <a href="../classes/Pho/Namespaces.html">Pho::Namespaces</a> module
|
292
|
-
for collecting together ns declarations
|
293
|
-
|
294
|
-
</li>
|
295
|
-
<li>Altered store.status to return basic response, and a new Status class to
|
296
|
-
parse and encapsulate the response data
|
297
|
-
|
298
|
-
</li>
|
299
|
-
</ul>
|
300
|
-
<h2>Version 0.2</h2>
|
301
|
-
<ul>
|
302
|
-
<li>Added support for parsing and maintenance of FieldPredicate Maps
|
303
|
-
|
304
|
-
</li>
|
305
|
-
</ul>
|
306
|
-
<h2>Version 0.1</h2>
|
307
|
-
<ul>
|
308
|
-
<li>Implemented core contentbox, metabox and service functionality. First
|
309
|
-
proper release
|
310
|
-
|
311
|
-
</li>
|
312
|
-
</ul>
|
313
|
-
<h2>Version 0.0.1</h2>
|
314
|
-
<ul>
|
315
|
-
<li>Testing gem package building and release
|
316
|
-
|
317
|
-
</li>
|
318
|
-
</ul>
|
319
|
-
|
320
|
-
</div>
|
321
|
-
|
322
|
-
|
323
|
-
</div>
|
324
|
-
|
325
|
-
|
326
|
-
</div>
|
327
|
-
|
328
|
-
|
329
|
-
<!-- if includes -->
|
330
|
-
|
331
|
-
<div id="section">
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
<!-- if method_list -->
|
341
|
-
|
342
|
-
|
343
|
-
</div>
|
344
|
-
|
345
|
-
|
346
|
-
<div id="validator-badges">
|
347
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
348
|
-
</div>
|
349
|
-
|
350
|
-
</body>
|
351
|
-
</html>
|
data/doc/rdoc/files/README.html
DELETED
@@ -1,191 +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>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>Wed Apr 29 16:48:54 +0100 2009</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
|
-
The latest version of this library can be downloaded from:
|
85
|
-
</p>
|
86
|
-
<p>
|
87
|
-
<a href="http://pho.rubyforge.net">pho.rubyforge.net</a>
|
88
|
-
</p>
|
89
|
-
<h2>Installation</h2>
|
90
|
-
<p>
|
91
|
-
From the 0.5 release onwards, <a href="../classes/Pho.html">Pho</a> is
|
92
|
-
dependent on the Ruby bindings for the Redland RDF library. Ensure you have
|
93
|
-
the librdf0 and librdf-ruby packages installed.
|
94
|
-
</p>
|
95
|
-
<p>
|
96
|
-
All other dependencies are for specific Ruby gems which should get
|
97
|
-
automatically installed, along with the <a
|
98
|
-
href="../classes/Pho.html">Pho</a> gem itself, by running:
|
99
|
-
</p>
|
100
|
-
<pre>
|
101
|
-
sudo gem install pho
|
102
|
-
</pre>
|
103
|
-
<h2>Usage</h2>
|
104
|
-
<p>
|
105
|
-
To use <a href="../classes/Pho.html">Pho</a> you can:
|
106
|
-
</p>
|
107
|
-
<pre>
|
108
|
-
require 'pho'
|
109
|
-
</pre>
|
110
|
-
<p>
|
111
|
-
And then create an instance of the appropriate class, e.g Store:
|
112
|
-
</p>
|
113
|
-
<pre>
|
114
|
-
store = Pho::Store.new("http://api.talis.com/testing", "user", "pass")
|
115
|
-
response = store.describe("http://www.example.org")
|
116
|
-
</pre>
|
117
|
-
<p>
|
118
|
-
For more detailed examples consult the documentation for the Store class
|
119
|
-
</p>
|
120
|
-
<h2>Control over HTTP interactions</h2>
|
121
|
-
<p>
|
122
|
-
<a href="../classes/Pho.html">Pho</a> is dependent on the HTTPClient module
|
123
|
-
and all HTTP interactions are delegated to an instance of the HTTPClient
|
124
|
-
class. In circumstances where greater control over the HTTP interaction is
|
125
|
-
required, e.g. to configure proxy servers, etc, an existing instance of
|
126
|
-
this class can be provided, e.g:
|
127
|
-
</p>
|
128
|
-
<pre>
|
129
|
-
client = HTTPClient.new
|
130
|
-
=> configure client as required
|
131
|
-
store = Pho::Store.new("http://api.talis.com/testing", "user", "pass", client)
|
132
|
-
=> pass instance of client as parameter
|
133
|
-
response = store.describe("http://www.example.org")
|
134
|
-
</pre>
|
135
|
-
<h2>License</h2>
|
136
|
-
<p>
|
137
|
-
Copyright 2009 Leigh Dodds
|
138
|
-
</p>
|
139
|
-
<p>
|
140
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
141
|
-
you may not use this file except in compliance with the License.
|
142
|
-
</p>
|
143
|
-
<p>
|
144
|
-
You may obtain a copy of the License at
|
145
|
-
</p>
|
146
|
-
<p>
|
147
|
-
<a
|
148
|
-
href="http://www.apache.org/licenses/LICENSE-2.0">www.apache.org/licenses/LICENSE-2.0</a>
|
149
|
-
</p>
|
150
|
-
<p>
|
151
|
-
Unless required by applicable law or agreed to in writing, software
|
152
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
153
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
154
|
-
</p>
|
155
|
-
<p>
|
156
|
-
See the License for the specific language governing permissions and
|
157
|
-
limitations under the License.
|
158
|
-
</p>
|
159
|
-
|
160
|
-
</div>
|
161
|
-
|
162
|
-
|
163
|
-
</div>
|
164
|
-
|
165
|
-
|
166
|
-
</div>
|
167
|
-
|
168
|
-
|
169
|
-
<!-- if includes -->
|
170
|
-
|
171
|
-
<div id="section">
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<!-- if method_list -->
|
181
|
-
|
182
|
-
|
183
|
-
</div>
|
184
|
-
|
185
|
-
|
186
|
-
<div id="validator-badges">
|
187
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
188
|
-
</div>
|
189
|
-
|
190
|
-
</body>
|
191
|
-
</html>
|
@@ -1,108 +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>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>Tue Apr 28 09:10:05 +0100 2009</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>
|