pho 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +17 -0
- data/Rakefile +10 -2
- data/bin/talis_store +37 -92
- data/doc/rdoc/classes/Pho.html +11 -0
- data/doc/rdoc/classes/Pho/CommandLine.html +508 -0
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +15 -15
- data/doc/rdoc/classes/Pho/Enrichment.html +1 -1
- data/doc/rdoc/classes/Pho/Enrichment/{ResourceEnricher.html → StoreEnricher.html} +158 -58
- data/doc/rdoc/classes/Pho/Etags.html +36 -36
- data/doc/rdoc/classes/Pho/Facet/Results.html +19 -19
- data/doc/rdoc/classes/Pho/Facet/Term.html +6 -6
- data/doc/rdoc/classes/Pho/FieldPredicateMap.html +94 -94
- data/doc/rdoc/classes/Pho/FieldWeighting.html +14 -14
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +126 -91
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +68 -62
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +22 -57
- data/doc/rdoc/classes/Pho/Job.html +68 -67
- data/doc/rdoc/classes/Pho/Jobs.html +62 -62
- data/doc/rdoc/classes/Pho/QueryProfile.html +64 -64
- data/doc/rdoc/classes/Pho/RDF.html +120 -0
- data/doc/rdoc/classes/Pho/RDF/Parser.html +277 -0
- data/doc/rdoc/classes/Pho/ResourceHash.html +1 -1
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +48 -46
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +15 -14
- data/doc/rdoc/classes/Pho/Snapshot.html +36 -36
- data/doc/rdoc/classes/Pho/Sparql.html +50 -0
- data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +147 -68
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +195 -114
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +271 -264
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +183 -0
- data/doc/rdoc/classes/Pho/Update.html +1 -0
- data/doc/rdoc/classes/Pho/Update/Changeset.html +69 -68
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Changesets.html +15 -14
- data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +18 -18
- data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +24 -24
- data/doc/rdoc/classes/Pho/Update/Statement.html +28 -27
- data/doc/rdoc/classes/String.html +1 -1
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +53 -1
- data/doc/rdoc/files/lib/pho/changeset_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/command_line_rb.html +101 -0
- data/doc/rdoc/files/lib/pho/converter_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/enrichment_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_management_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/file_manager_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/rdf_rb.html +108 -0
- data/doc/rdoc/files/lib/pho/sparql_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/store_rb.html +8 -1
- data/doc/rdoc/files/lib/pho_rb.html +4 -2
- data/doc/rdoc/fr_class_index.html +6 -1
- data/doc/rdoc/fr_file_index.html +2 -0
- data/doc/rdoc/fr_method_index.html +192 -172
- data/examples/calais/bio.txt +7 -0
- data/examples/calais/dump.rb +17 -0
- data/examples/calais/enlighten.rb +23 -0
- data/examples/calais/output.rdf +25 -0
- data/examples/sinatra/viewer.rb +20 -0
- data/lib/pho.rb +4 -1
- data/lib/pho/changeset.rb +17 -1
- data/lib/pho/command_line.rb +166 -0
- data/lib/pho/converter.rb +8 -3
- data/lib/pho/enrichment.rb +93 -28
- data/lib/pho/file_management.rb +32 -19
- data/lib/pho/file_manager.rb +22 -26
- data/lib/pho/rdf.rb +74 -0
- data/lib/pho/rdf_collection.rb +2 -17
- data/lib/pho/sparql.rb +150 -38
- data/lib/pho/store.rb +28 -2
- data/tests/tc_contentbox.rb +41 -0
- data/tests/tc_enrichment.rb +41 -4
- data/tests/tc_file_manager.rb +97 -7
- data/tests/tc_rdf_collection.rb +25 -13
- data/tests/tc_rdf_parser.rb +37 -0
- data/tests/tc_sparql.rb +72 -2
- data/tests/tc_sparql_helper.rb +16 -0
- data/tests/ts_pho.rb +2 -1
- metadata +20 -3
@@ -0,0 +1,183 @@
|
|
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::StoreSparqlClient</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::StoreSparqlClient</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/pho/store_rb.html">
|
59
|
+
lib/pho/store.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
|
+
<a href="Sparql/SparqlClient.html">
|
69
|
+
Pho::Sparql::SparqlClient
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="method-list">
|
88
|
+
<h3 class="section-bar">Methods</h3>
|
89
|
+
|
90
|
+
<div class="name-list">
|
91
|
+
<a href="#M000141">describe_uri</a>
|
92
|
+
<a href="#M000140">new</a>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
<div id="section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
<div id="methods">
|
112
|
+
<h3 class="section-bar">Public Class methods</h3>
|
113
|
+
|
114
|
+
<div id="method-M000140" class="method-detail">
|
115
|
+
<a name="M000140"></a>
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<a href="#M000140" class="method-signature">
|
119
|
+
<span class="method-name">new</span><span class="method-args">(store, endpoint, client=HTTPClient.new() )</span>
|
120
|
+
</a>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
<p><a class="source-toggle" href="#"
|
125
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
126
|
+
<div class="method-source-code" id="M000140-source">
|
127
|
+
<pre>
|
128
|
+
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 484</span>
|
129
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">endpoint</span>, <span class="ruby-identifier">client</span>=<span class="ruby-constant">HTTPClient</span>.<span class="ruby-identifier">new</span>() )
|
130
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">endpoint</span>, <span class="ruby-identifier">client</span>)
|
131
|
+
<span class="ruby-ivar">@store</span> = <span class="ruby-identifier">store</span>
|
132
|
+
<span class="ruby-keyword kw">end</span>
|
133
|
+
</pre>
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
139
|
+
|
140
|
+
<div id="method-M000141" class="method-detail">
|
141
|
+
<a name="M000141"></a>
|
142
|
+
|
143
|
+
<div class="method-heading">
|
144
|
+
<a href="#M000141" class="method-signature">
|
145
|
+
<span class="method-name">describe_uri</span><span class="method-args">(uri, format="application/rdf+xml", type=:cbd)</span>
|
146
|
+
</a>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
<p>
|
151
|
+
Override default behaviour to use the Stores Describe service instead when
|
152
|
+
requesting CBDs
|
153
|
+
</p>
|
154
|
+
<p><a class="source-toggle" href="#"
|
155
|
+
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
156
|
+
<div class="method-source-code" id="M000141-source">
|
157
|
+
<pre>
|
158
|
+
<span class="ruby-comment cmt"># File lib/pho/store.rb, line 491</span>
|
159
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">describe_uri</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">format</span>=<span class="ruby-value str">"application/rdf+xml"</span>, <span class="ruby-identifier">type</span>=<span class="ruby-identifier">:cbd</span>)
|
160
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:cbd</span>
|
161
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@store</span>.<span class="ruby-identifier">describe</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">format</span>)
|
162
|
+
<span class="ruby-keyword kw">else</span>
|
163
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">super</span>
|
164
|
+
<span class="ruby-keyword kw">end</span>
|
165
|
+
<span class="ruby-keyword kw">end</span>
|
166
|
+
</pre>
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</div>
|
176
|
+
|
177
|
+
|
178
|
+
<div id="validator-badges">
|
179
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
180
|
+
</div>
|
181
|
+
|
182
|
+
</body>
|
183
|
+
</html>
|
@@ -100,6 +100,7 @@ href="Update/Changeset.html">Changeset</a> handling.
|
|
100
100
|
|
101
101
|
Class <a href="Update/Changeset.html" class="link">Pho::Update::Changeset</a><br />
|
102
102
|
Class <a href="Update/ChangesetBuilder.html" class="link">Pho::Update::ChangesetBuilder</a><br />
|
103
|
+
Class <a href="Update/ChangesetHelper.html" class="link">Pho::Update::ChangesetHelper</a><br />
|
103
104
|
Class <a href="Update/Changesets.html" class="link">Pho::Update::Changesets</a><br />
|
104
105
|
Class <a href="Update/LiteralStatement.html" class="link">Pho::Update::LiteralStatement</a><br />
|
105
106
|
Class <a href="Update/ResourceStatement.html" class="link">Pho::Update::ResourceStatement</a><br />
|
@@ -80,11 +80,12 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
Models a <a href="Changeset.html">Changeset</a>: a delta to an
|
83
|
+
Models a <a href="Changeset.html">Changeset</a>: a delta to an <a
|
84
|
+
href="../RDF.html">RDF</a> graph
|
84
85
|
</p>
|
85
86
|
<p>
|
86
|
-
The
|
87
|
-
at:
|
87
|
+
The <a href="../RDF.html">RDF</a> Schema for <a
|
88
|
+
href="Changesets.html">Changesets</a> can be found at:
|
88
89
|
</p>
|
89
90
|
<pre>
|
90
91
|
http://vocab.org/changeset/schema
|
@@ -118,16 +119,16 @@ Processing of batch changesets is described at:
|
|
118
119
|
<h3 class="section-bar">Methods</h3>
|
119
120
|
|
120
121
|
<div class="name-list">
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
122
|
+
<a href="#M000062">add_addition</a>
|
123
|
+
<a href="#M000063">add_additions</a>
|
124
|
+
<a href="#M000065">add_removal</a>
|
125
|
+
<a href="#M000066">add_removals</a>
|
126
|
+
<a href="#M000061">additions</a>
|
127
|
+
<a href="#M000058">new</a>
|
128
|
+
<a href="#M000064">removals</a>
|
129
|
+
<a href="#M000067">submit</a>
|
130
|
+
<a href="#M000060">to_rdf</a>
|
131
|
+
<a href="#M000059">to_s</a>
|
131
132
|
</div>
|
132
133
|
</div>
|
133
134
|
|
@@ -181,11 +182,11 @@ URI of the subject of change for this changeset
|
|
181
182
|
<div id="methods">
|
182
183
|
<h3 class="section-bar">Public Class methods</h3>
|
183
184
|
|
184
|
-
<div id="method-
|
185
|
-
<a name="
|
185
|
+
<div id="method-M000058" class="method-detail">
|
186
|
+
<a name="M000058"></a>
|
186
187
|
|
187
188
|
<div class="method-heading">
|
188
|
-
<a href="#
|
189
|
+
<a href="#M000058" class="method-signature">
|
189
190
|
<span class="method-name">new</span><span class="method-args">(subject_of_change, creator_name=nil, change_reason=nil) {|self if block_given?| ...}</span>
|
190
191
|
</a>
|
191
192
|
</div>
|
@@ -200,8 +201,8 @@ Constructor. Parameter should be the URI of the subject of change
|
|
200
201
|
change_reason:: the reason for the change (optional)
|
201
202
|
</pre>
|
202
203
|
<p><a class="source-toggle" href="#"
|
203
|
-
onclick="toggleCode('
|
204
|
-
<div class="method-source-code" id="
|
204
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
205
|
+
<div class="method-source-code" id="M000058-source">
|
205
206
|
<pre>
|
206
207
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 221</span>
|
207
208
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">subject_of_change</span>, <span class="ruby-identifier">creator_name</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">change_reason</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -224,11 +225,11 @@ Constructor. Parameter should be the URI of the subject of change
|
|
224
225
|
|
225
226
|
<h3 class="section-bar">Public Instance methods</h3>
|
226
227
|
|
227
|
-
<div id="method-
|
228
|
-
<a name="
|
228
|
+
<div id="method-M000062" class="method-detail">
|
229
|
+
<a name="M000062"></a>
|
229
230
|
|
230
231
|
<div class="method-heading">
|
231
|
-
<a href="#
|
232
|
+
<a href="#M000062" class="method-signature">
|
232
233
|
<span class="method-name">add_addition</span><span class="method-args">(statement)</span>
|
233
234
|
</a>
|
234
235
|
</div>
|
@@ -239,8 +240,8 @@ Include a <a href="Statement.html">Statement</a> in the <a
|
|
239
240
|
href="Changeset.html">Changeset</a> as an addition
|
240
241
|
</p>
|
241
242
|
<p><a class="source-toggle" href="#"
|
242
|
-
onclick="toggleCode('
|
243
|
-
<div class="method-source-code" id="
|
243
|
+
onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000062-source">
|
244
245
|
<pre>
|
245
246
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 280</span>
|
246
247
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_addition</span>(<span class="ruby-identifier">statement</span>)
|
@@ -254,11 +255,11 @@ href="Changeset.html">Changeset</a> as an addition
|
|
254
255
|
</div>
|
255
256
|
</div>
|
256
257
|
|
257
|
-
<div id="method-
|
258
|
-
<a name="
|
258
|
+
<div id="method-M000063" class="method-detail">
|
259
|
+
<a name="M000063"></a>
|
259
260
|
|
260
261
|
<div class="method-heading">
|
261
|
-
<a href="#
|
262
|
+
<a href="#M000063" class="method-signature">
|
262
263
|
<span class="method-name">add_additions</span><span class="method-args">(statements)</span>
|
263
264
|
</a>
|
264
265
|
</div>
|
@@ -266,11 +267,11 @@ href="Changeset.html">Changeset</a> as an addition
|
|
266
267
|
<div class="method-description">
|
267
268
|
<p>
|
268
269
|
Add an array of statements as <a
|
269
|
-
href="Changeset.html#
|
270
|
+
href="Changeset.html#M000061">additions</a>
|
270
271
|
</p>
|
271
272
|
<p><a class="source-toggle" href="#"
|
272
|
-
onclick="toggleCode('
|
273
|
-
<div class="method-source-code" id="
|
273
|
+
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
274
|
+
<div class="method-source-code" id="M000063-source">
|
274
275
|
<pre>
|
275
276
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 288</span>
|
276
277
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_additions</span>(<span class="ruby-identifier">statements</span>)
|
@@ -283,11 +284,11 @@ href="Changeset.html#M000058">additions</a>
|
|
283
284
|
</div>
|
284
285
|
</div>
|
285
286
|
|
286
|
-
<div id="method-
|
287
|
-
<a name="
|
287
|
+
<div id="method-M000065" class="method-detail">
|
288
|
+
<a name="M000065"></a>
|
288
289
|
|
289
290
|
<div class="method-heading">
|
290
|
-
<a href="#
|
291
|
+
<a href="#M000065" class="method-signature">
|
291
292
|
<span class="method-name">add_removal</span><span class="method-args">(statement)</span>
|
292
293
|
</a>
|
293
294
|
</div>
|
@@ -298,8 +299,8 @@ Include a <a href="Statement.html">Statement</a> in the <a
|
|
298
299
|
href="Changeset.html">Changeset</a> as a removal
|
299
300
|
</p>
|
300
301
|
<p><a class="source-toggle" href="#"
|
301
|
-
onclick="toggleCode('
|
302
|
-
<div class="method-source-code" id="
|
302
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
303
|
+
<div class="method-source-code" id="M000065-source">
|
303
304
|
<pre>
|
304
305
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 300</span>
|
305
306
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_removal</span>(<span class="ruby-identifier">statement</span>)
|
@@ -313,22 +314,22 @@ href="Changeset.html">Changeset</a> as a removal
|
|
313
314
|
</div>
|
314
315
|
</div>
|
315
316
|
|
316
|
-
<div id="method-
|
317
|
-
<a name="
|
317
|
+
<div id="method-M000066" class="method-detail">
|
318
|
+
<a name="M000066"></a>
|
318
319
|
|
319
320
|
<div class="method-heading">
|
320
|
-
<a href="#
|
321
|
+
<a href="#M000066" class="method-signature">
|
321
322
|
<span class="method-name">add_removals</span><span class="method-args">(statements)</span>
|
322
323
|
</a>
|
323
324
|
</div>
|
324
325
|
|
325
326
|
<div class="method-description">
|
326
327
|
<p>
|
327
|
-
Add an array of statements as <a href="Changeset.html#
|
328
|
+
Add an array of statements as <a href="Changeset.html#M000064">removals</a>
|
328
329
|
</p>
|
329
330
|
<p><a class="source-toggle" href="#"
|
330
|
-
onclick="toggleCode('
|
331
|
-
<div class="method-source-code" id="
|
331
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
332
|
+
<div class="method-source-code" id="M000066-source">
|
332
333
|
<pre>
|
333
334
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 308</span>
|
334
335
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_removals</span>(<span class="ruby-identifier">statements</span>)
|
@@ -341,11 +342,11 @@ Add an array of statements as <a href="Changeset.html#M000061">removals</a>
|
|
341
342
|
</div>
|
342
343
|
</div>
|
343
344
|
|
344
|
-
<div id="method-
|
345
|
-
<a name="
|
345
|
+
<div id="method-M000061" class="method-detail">
|
346
|
+
<a name="M000061"></a>
|
346
347
|
|
347
348
|
<div class="method-heading">
|
348
|
-
<a href="#
|
349
|
+
<a href="#M000061" class="method-signature">
|
349
350
|
<span class="method-name">additions</span><span class="method-args">()</span>
|
350
351
|
</a>
|
351
352
|
</div>
|
@@ -356,8 +357,8 @@ Return the <a href="Statement.html">Statement</a> describing the addition
|
|
356
357
|
in this <a href="Changeset.html">Changeset</a>
|
357
358
|
</p>
|
358
359
|
<p><a class="source-toggle" href="#"
|
359
|
-
onclick="toggleCode('
|
360
|
-
<div class="method-source-code" id="
|
360
|
+
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
361
|
+
<div class="method-source-code" id="M000061-source">
|
361
362
|
<pre>
|
362
363
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 275</span>
|
363
364
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">additions</span>()
|
@@ -368,11 +369,11 @@ in this <a href="Changeset.html">Changeset</a>
|
|
368
369
|
</div>
|
369
370
|
</div>
|
370
371
|
|
371
|
-
<div id="method-
|
372
|
-
<a name="
|
372
|
+
<div id="method-M000064" class="method-detail">
|
373
|
+
<a name="M000064"></a>
|
373
374
|
|
374
375
|
<div class="method-heading">
|
375
|
-
<a href="#
|
376
|
+
<a href="#M000064" class="method-signature">
|
376
377
|
<span class="method-name">removals</span><span class="method-args">()</span>
|
377
378
|
</a>
|
378
379
|
</div>
|
@@ -380,12 +381,12 @@ in this <a href="Changeset.html">Changeset</a>
|
|
380
381
|
<div class="method-description">
|
381
382
|
<p>
|
382
383
|
Return the list of Statements describing the <a
|
383
|
-
href="Changeset.html#
|
384
|
+
href="Changeset.html#M000064">removals</a> in this <a
|
384
385
|
href="Changeset.html">Changeset</a>
|
385
386
|
</p>
|
386
387
|
<p><a class="source-toggle" href="#"
|
387
|
-
onclick="toggleCode('
|
388
|
-
<div class="method-source-code" id="
|
388
|
+
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
389
|
+
<div class="method-source-code" id="M000064-source">
|
389
390
|
<pre>
|
390
391
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 295</span>
|
391
392
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removals</span>()
|
@@ -396,11 +397,11 @@ href="Changeset.html">Changeset</a>
|
|
396
397
|
</div>
|
397
398
|
</div>
|
398
399
|
|
399
|
-
<div id="method-
|
400
|
-
<a name="
|
400
|
+
<div id="method-M000067" class="method-detail">
|
401
|
+
<a name="M000067"></a>
|
401
402
|
|
402
403
|
<div class="method-heading">
|
403
|
-
<a href="#
|
404
|
+
<a href="#M000067" class="method-signature">
|
404
405
|
<span class="method-name">submit</span><span class="method-args">(store, versioned=false)</span>
|
405
406
|
</a>
|
406
407
|
</div>
|
@@ -413,8 +414,8 @@ Submit this changeset to the specified store
|
|
413
414
|
store:: the store to which the changeset should be applied
|
414
415
|
</pre>
|
415
416
|
<p><a class="source-toggle" href="#"
|
416
|
-
onclick="toggleCode('
|
417
|
-
<div class="method-source-code" id="
|
417
|
+
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
418
|
+
<div class="method-source-code" id="M000067-source">
|
418
419
|
<pre>
|
419
420
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 317</span>
|
420
421
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">versioned</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -425,23 +426,23 @@ Submit this changeset to the specified store
|
|
425
426
|
</div>
|
426
427
|
</div>
|
427
428
|
|
428
|
-
<div id="method-
|
429
|
-
<a name="
|
429
|
+
<div id="method-M000060" class="method-detail">
|
430
|
+
<a name="M000060"></a>
|
430
431
|
|
431
432
|
<div class="method-heading">
|
432
|
-
<a href="#
|
433
|
+
<a href="#M000060" class="method-signature">
|
433
434
|
<span class="method-name">to_rdf</span><span class="method-args">(include_root=true)</span>
|
434
435
|
</a>
|
435
436
|
</div>
|
436
437
|
|
437
438
|
<div class="method-description">
|
438
439
|
<p>
|
439
|
-
Serialize this changeset as RDF
|
440
|
-
Platform.
|
440
|
+
Serialize this changeset as <a href="../RDF.html">RDF</a>/XML suitable for
|
441
|
+
submitting to the Platform.
|
441
442
|
</p>
|
442
443
|
<p><a class="source-toggle" href="#"
|
443
|
-
onclick="toggleCode('
|
444
|
-
<div class="method-source-code" id="
|
444
|
+
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
445
|
+
<div class="method-source-code" id="M000060-source">
|
445
446
|
<pre>
|
446
447
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 240</span>
|
447
448
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>(<span class="ruby-identifier">include_root</span>=<span class="ruby-keyword kw">true</span>)
|
@@ -482,19 +483,19 @@ Platform.
|
|
482
483
|
</div>
|
483
484
|
</div>
|
484
485
|
|
485
|
-
<div id="method-
|
486
|
-
<a name="
|
486
|
+
<div id="method-M000059" class="method-detail">
|
487
|
+
<a name="M000059"></a>
|
487
488
|
|
488
489
|
<div class="method-heading">
|
489
|
-
<a href="#
|
490
|
+
<a href="#M000059" class="method-signature">
|
490
491
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
491
492
|
</a>
|
492
493
|
</div>
|
493
494
|
|
494
495
|
<div class="method-description">
|
495
496
|
<p><a class="source-toggle" href="#"
|
496
|
-
onclick="toggleCode('
|
497
|
-
<div class="method-source-code" id="
|
497
|
+
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
498
|
+
<div class="method-source-code" id="M000059-source">
|
498
499
|
<pre>
|
499
500
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 235</span>
|
500
501
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|