pho 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/CHANGES +5 -0
  2. data/Rakefile +1 -1
  3. data/lib/pho/snapshot.rb +6 -1
  4. data/lib/pho/sparql.rb +4 -1
  5. data/tests/tc_snapshots.rb +14 -1
  6. data/tests/tc_sparql_helper.rb +23 -0
  7. metadata +60 -160
  8. data/doc/rdoc/classes/Pho/Analyzers.html +0 -310
  9. data/doc/rdoc/classes/Pho/CommandLine.html +0 -770
  10. data/doc/rdoc/classes/Pho/DatatypeProperty.html +0 -241
  11. data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +0 -410
  12. data/doc/rdoc/classes/Pho/Enrichment.html +0 -119
  13. data/doc/rdoc/classes/Pho/Etags.html +0 -310
  14. data/doc/rdoc/classes/Pho/Facet/Results.html +0 -299
  15. data/doc/rdoc/classes/Pho/Facet/Term.html +0 -177
  16. data/doc/rdoc/classes/Pho/Facet.html +0 -119
  17. data/doc/rdoc/classes/Pho/FieldPredicateMap.html +0 -668
  18. data/doc/rdoc/classes/Pho/FieldWeighting.html +0 -230
  19. data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +0 -478
  20. data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +0 -264
  21. data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +0 -259
  22. data/doc/rdoc/classes/Pho/FileManagement.html +0 -121
  23. data/doc/rdoc/classes/Pho/Job.html +0 -627
  24. data/doc/rdoc/classes/Pho/JobUpdate.html +0 -141
  25. data/doc/rdoc/classes/Pho/Jobs.html +0 -538
  26. data/doc/rdoc/classes/Pho/Namespaces.html +0 -164
  27. data/doc/rdoc/classes/Pho/OAI/Record.html +0 -165
  28. data/doc/rdoc/classes/Pho/OAI/Records.html +0 -331
  29. data/doc/rdoc/classes/Pho/OAI.html +0 -118
  30. data/doc/rdoc/classes/Pho/QueryProfile.html +0 -497
  31. data/doc/rdoc/classes/Pho/RDF/Parser.html +0 -279
  32. data/doc/rdoc/classes/Pho/RDF.html +0 -120
  33. data/doc/rdoc/classes/Pho/RDFCollection.html +0 -119
  34. data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +0 -325
  35. data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +0 -241
  36. data/doc/rdoc/classes/Pho/ResourceHash.html +0 -123
  37. data/doc/rdoc/classes/Pho/Snapshot.html +0 -397
  38. data/doc/rdoc/classes/Pho/Sparql/SparqlClient.html +0 -594
  39. data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +0 -692
  40. data/doc/rdoc/classes/Pho/Sparql.html +0 -187
  41. data/doc/rdoc/classes/Pho/Status.html +0 -296
  42. data/doc/rdoc/classes/Pho/Store.html +0 -1560
  43. data/doc/rdoc/classes/Pho/StoreSparqlClient.html +0 -183
  44. data/doc/rdoc/classes/Pho/Update/Changeset.html +0 -521
  45. data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +0 -330
  46. data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +0 -159
  47. data/doc/rdoc/classes/Pho/Update/Changesets.html +0 -205
  48. data/doc/rdoc/classes/Pho/Update/LiteralStatement.html +0 -257
  49. data/doc/rdoc/classes/Pho/Update/ResourceStatement.html +0 -237
  50. data/doc/rdoc/classes/Pho/Update/Statement.html +0 -303
  51. data/doc/rdoc/classes/Pho/Update.html +0 -128
  52. data/doc/rdoc/classes/Pho.html +0 -283
  53. data/doc/rdoc/classes/String.html +0 -146
  54. data/doc/rdoc/created.rid +0 -1
  55. data/doc/rdoc/files/CHANGES.html +0 -351
  56. data/doc/rdoc/files/README.html +0 -191
  57. data/doc/rdoc/files/lib/pho/changeset_builder_rb.html +0 -108
  58. data/doc/rdoc/files/lib/pho/changeset_rb.html +0 -108
  59. data/doc/rdoc/files/lib/pho/command_line_rb.html +0 -101
  60. data/doc/rdoc/files/lib/pho/converter_rb.html +0 -108
  61. data/doc/rdoc/files/lib/pho/enrichment_rb.html +0 -101
  62. data/doc/rdoc/files/lib/pho/etags_rb.html +0 -108
  63. data/doc/rdoc/files/lib/pho/facet_rb.html +0 -101
  64. data/doc/rdoc/files/lib/pho/field_predicate_map_rb.html +0 -101
  65. data/doc/rdoc/files/lib/pho/file_management_rb.html +0 -101
  66. data/doc/rdoc/files/lib/pho/file_manager_rb.html +0 -108
  67. data/doc/rdoc/files/lib/pho/job_rb.html +0 -101
  68. data/doc/rdoc/files/lib/pho/oai_rb.html +0 -101
  69. data/doc/rdoc/files/lib/pho/query_profile_rb.html +0 -101
  70. data/doc/rdoc/files/lib/pho/rdf_collection_rb.html +0 -101
  71. data/doc/rdoc/files/lib/pho/rdf_rb.html +0 -108
  72. data/doc/rdoc/files/lib/pho/resource_hash_rb.html +0 -101
  73. data/doc/rdoc/files/lib/pho/snapshot_rb.html +0 -109
  74. data/doc/rdoc/files/lib/pho/sparql_rb.html +0 -101
  75. data/doc/rdoc/files/lib/pho/status_rb.html +0 -101
  76. data/doc/rdoc/files/lib/pho/store_rb.html +0 -108
  77. data/doc/rdoc/files/lib/pho_rb.html +0 -133
  78. data/doc/rdoc/fr_class_index.html +0 -72
  79. data/doc/rdoc/fr_file_index.html +0 -49
  80. data/doc/rdoc/fr_method_index.html +0 -237
  81. data/doc/rdoc/index.html +0 -24
  82. data/doc/rdoc/rdoc-style.css +0 -208
@@ -1,521 +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>Class: Pho::Update::Changeset</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::Update::Changeset</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/pho/changeset_rb.html">
59
- lib/pho/changeset.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
- Models a <a href="Changeset.html">Changeset</a>: a delta to an <a
84
- href="../RDF.html">RDF</a> graph
85
- </p>
86
- <p>
87
- The <a href="../RDF.html">RDF</a> Schema for <a
88
- href="Changesets.html">Changesets</a> can be found at:
89
- </p>
90
- <pre>
91
- http://vocab.org/changeset/schema
92
- </pre>
93
- <p>
94
- Further reading:
95
- </p>
96
- <pre>
97
- http://n2.talis.com/wiki/Changesets
98
- </pre>
99
- <p>
100
- The Platform <a href="Changeset.html">Changeset</a> protocol is described
101
- at:
102
- </p>
103
- <pre>
104
- http://n2.talis.com/wiki/Changeset_Protocol
105
- </pre>
106
- <p>
107
- Processing of batch changesets is described at:
108
- </p>
109
- <pre>
110
- http://n2.talis.com/wiki/Metabox
111
- </pre>
112
-
113
- </div>
114
-
115
-
116
- </div>
117
-
118
- <div id="method-list">
119
- <h3 class="section-bar">Methods</h3>
120
-
121
- <div class="name-list">
122
- <a href="#M000063">add_addition</a>&nbsp;&nbsp;
123
- <a href="#M000064">add_additions</a>&nbsp;&nbsp;
124
- <a href="#M000066">add_removal</a>&nbsp;&nbsp;
125
- <a href="#M000067">add_removals</a>&nbsp;&nbsp;
126
- <a href="#M000062">additions</a>&nbsp;&nbsp;
127
- <a href="#M000059">new</a>&nbsp;&nbsp;
128
- <a href="#M000065">removals</a>&nbsp;&nbsp;
129
- <a href="#M000068">submit</a>&nbsp;&nbsp;
130
- <a href="#M000061">to_rdf</a>&nbsp;&nbsp;
131
- <a href="#M000060">to_s</a>&nbsp;&nbsp;
132
- </div>
133
- </div>
134
-
135
- </div>
136
-
137
-
138
- <!-- if includes -->
139
-
140
- <div id="section">
141
-
142
-
143
-
144
-
145
-
146
- <div id="attribute-list">
147
- <h3 class="section-bar">Attributes</h3>
148
-
149
- <div class="name-list">
150
- <table>
151
- <tr class="top-aligned-row context-row">
152
- <td class="context-item-name">change_reason</td>
153
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
154
- <td class="context-item-desc">
155
- Reason for the change being made
156
-
157
- </td>
158
- </tr>
159
- <tr class="top-aligned-row context-row">
160
- <td class="context-item-name">creator_name</td>
161
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
162
- <td class="context-item-desc">
163
- Creator name
164
-
165
- </td>
166
- </tr>
167
- <tr class="top-aligned-row context-row">
168
- <td class="context-item-name">subject_of_change</td>
169
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
170
- <td class="context-item-desc">
171
- URI of the subject of change for this changeset
172
-
173
- </td>
174
- </tr>
175
- </table>
176
- </div>
177
- </div>
178
-
179
-
180
-
181
- <!-- if method_list -->
182
- <div id="methods">
183
- <h3 class="section-bar">Public Class methods</h3>
184
-
185
- <div id="method-M000059" class="method-detail">
186
- <a name="M000059"></a>
187
-
188
- <div class="method-heading">
189
- <a href="#M000059" class="method-signature">
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>
191
- </a>
192
- </div>
193
-
194
- <div class="method-description">
195
- <p>
196
- Constructor. Parameter should be the URI of the subject of change
197
- </p>
198
- <pre>
199
- subject_of_change:: the URI of the resource being changed
200
- creator_name:: the name of the creator of this change (optional)
201
- change_reason:: the reason for the change (optional)
202
- </pre>
203
- <p><a class="source-toggle" href="#"
204
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
205
- <div class="method-source-code" id="M000059-source">
206
- <pre>
207
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 222</span>
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>)
209
- <span class="ruby-identifier">u</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">subject_of_change</span>)
210
- <span class="ruby-comment cmt">#this should catch literals</span>
211
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">u</span>.<span class="ruby-identifier">scheme</span>() <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
212
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">URI</span><span class="ruby-operator">::</span><span class="ruby-constant">InvalidURIError</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Invalid URI&quot;</span>)
213
- <span class="ruby-keyword kw">end</span>
214
- <span class="ruby-ivar">@subject_of_change</span> = <span class="ruby-identifier">subject_of_change</span>
215
- <span class="ruby-ivar">@creator_name</span> = <span class="ruby-identifier">creator_name</span>
216
- <span class="ruby-ivar">@change_reason</span> = <span class="ruby-identifier">change_reason</span>
217
- <span class="ruby-ivar">@additions</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
218
- <span class="ruby-ivar">@removals</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
219
- <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
220
- <span class="ruby-keyword kw">end</span>
221
- </pre>
222
- </div>
223
- </div>
224
- </div>
225
-
226
- <h3 class="section-bar">Public Instance methods</h3>
227
-
228
- <div id="method-M000063" class="method-detail">
229
- <a name="M000063"></a>
230
-
231
- <div class="method-heading">
232
- <a href="#M000063" class="method-signature">
233
- <span class="method-name">add_addition</span><span class="method-args">(statement)</span>
234
- </a>
235
- </div>
236
-
237
- <div class="method-description">
238
- <p>
239
- Include a <a href="Statement.html">Statement</a> in the <a
240
- href="Changeset.html">Changeset</a> as an addition
241
- </p>
242
- <p><a class="source-toggle" href="#"
243
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
244
- <div class="method-source-code" id="M000063-source">
245
- <pre>
246
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 281</span>
247
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_addition</span>(<span class="ruby-identifier">statement</span>)
248
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">statement</span>.<span class="ruby-identifier">subject</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@subject_of_change</span>
249
- <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Subject of statement must match subject of change of changeset&quot;</span>
250
- <span class="ruby-keyword kw">end</span>
251
- <span class="ruby-ivar">@additions</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">statement</span>
252
- <span class="ruby-keyword kw">end</span>
253
- </pre>
254
- </div>
255
- </div>
256
- </div>
257
-
258
- <div id="method-M000064" class="method-detail">
259
- <a name="M000064"></a>
260
-
261
- <div class="method-heading">
262
- <a href="#M000064" class="method-signature">
263
- <span class="method-name">add_additions</span><span class="method-args">(statements)</span>
264
- </a>
265
- </div>
266
-
267
- <div class="method-description">
268
- <p>
269
- Add an array of statements as <a
270
- href="Changeset.html#M000062">additions</a>
271
- </p>
272
- <p><a class="source-toggle" href="#"
273
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
274
- <div class="method-source-code" id="M000064-source">
275
- <pre>
276
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 289</span>
277
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_additions</span>(<span class="ruby-identifier">statements</span>)
278
- <span class="ruby-identifier">statements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">statement</span><span class="ruby-operator">|</span>
279
- <span class="ruby-identifier">add_addition</span>(<span class="ruby-identifier">statement</span>)
280
- <span class="ruby-keyword kw">end</span>
281
- <span class="ruby-keyword kw">end</span>
282
- </pre>
283
- </div>
284
- </div>
285
- </div>
286
-
287
- <div id="method-M000066" class="method-detail">
288
- <a name="M000066"></a>
289
-
290
- <div class="method-heading">
291
- <a href="#M000066" class="method-signature">
292
- <span class="method-name">add_removal</span><span class="method-args">(statement)</span>
293
- </a>
294
- </div>
295
-
296
- <div class="method-description">
297
- <p>
298
- Include a <a href="Statement.html">Statement</a> in the <a
299
- href="Changeset.html">Changeset</a> as a removal
300
- </p>
301
- <p><a class="source-toggle" href="#"
302
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
303
- <div class="method-source-code" id="M000066-source">
304
- <pre>
305
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 301</span>
306
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_removal</span>(<span class="ruby-identifier">statement</span>)
307
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">statement</span>.<span class="ruby-identifier">subject</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@subject_of_change</span>
308
- <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Subject of statement must match subject of change of changeset&quot;</span>
309
- <span class="ruby-keyword kw">end</span>
310
- <span class="ruby-ivar">@removals</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">statement</span>
311
- <span class="ruby-keyword kw">end</span>
312
- </pre>
313
- </div>
314
- </div>
315
- </div>
316
-
317
- <div id="method-M000067" class="method-detail">
318
- <a name="M000067"></a>
319
-
320
- <div class="method-heading">
321
- <a href="#M000067" class="method-signature">
322
- <span class="method-name">add_removals</span><span class="method-args">(statements)</span>
323
- </a>
324
- </div>
325
-
326
- <div class="method-description">
327
- <p>
328
- Add an array of statements as <a href="Changeset.html#M000065">removals</a>
329
- </p>
330
- <p><a class="source-toggle" href="#"
331
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
332
- <div class="method-source-code" id="M000067-source">
333
- <pre>
334
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 309</span>
335
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_removals</span>(<span class="ruby-identifier">statements</span>)
336
- <span class="ruby-identifier">statements</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">statement</span><span class="ruby-operator">|</span>
337
- <span class="ruby-identifier">add_removal</span>(<span class="ruby-identifier">statement</span>)
338
- <span class="ruby-keyword kw">end</span>
339
- <span class="ruby-keyword kw">end</span>
340
- </pre>
341
- </div>
342
- </div>
343
- </div>
344
-
345
- <div id="method-M000062" class="method-detail">
346
- <a name="M000062"></a>
347
-
348
- <div class="method-heading">
349
- <a href="#M000062" class="method-signature">
350
- <span class="method-name">additions</span><span class="method-args">()</span>
351
- </a>
352
- </div>
353
-
354
- <div class="method-description">
355
- <p>
356
- Return the <a href="Statement.html">Statement</a> describing the addition
357
- in this <a href="Changeset.html">Changeset</a>
358
- </p>
359
- <p><a class="source-toggle" href="#"
360
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
361
- <div class="method-source-code" id="M000062-source">
362
- <pre>
363
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 276</span>
364
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">additions</span>()
365
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@additions</span>
366
- <span class="ruby-keyword kw">end</span>
367
- </pre>
368
- </div>
369
- </div>
370
- </div>
371
-
372
- <div id="method-M000065" class="method-detail">
373
- <a name="M000065"></a>
374
-
375
- <div class="method-heading">
376
- <a href="#M000065" class="method-signature">
377
- <span class="method-name">removals</span><span class="method-args">()</span>
378
- </a>
379
- </div>
380
-
381
- <div class="method-description">
382
- <p>
383
- Return the list of Statements describing the <a
384
- href="Changeset.html#M000065">removals</a> in this <a
385
- href="Changeset.html">Changeset</a>
386
- </p>
387
- <p><a class="source-toggle" href="#"
388
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
389
- <div class="method-source-code" id="M000065-source">
390
- <pre>
391
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 296</span>
392
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removals</span>()
393
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@removals</span>
394
- <span class="ruby-keyword kw">end</span>
395
- </pre>
396
- </div>
397
- </div>
398
- </div>
399
-
400
- <div id="method-M000068" class="method-detail">
401
- <a name="M000068"></a>
402
-
403
- <div class="method-heading">
404
- <a href="#M000068" class="method-signature">
405
- <span class="method-name">submit</span><span class="method-args">(store, versioned=false)</span>
406
- </a>
407
- </div>
408
-
409
- <div class="method-description">
410
- <p>
411
- Submit this changeset to the specified store
412
- </p>
413
- <pre>
414
- store:: the store to which the changeset should be applied
415
- </pre>
416
- <p><a class="source-toggle" href="#"
417
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
418
- <div class="method-source-code" id="M000068-source">
419
- <pre>
420
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 318</span>
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>)
422
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">store</span>.<span class="ruby-identifier">submit_changeset</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_rdf</span>, <span class="ruby-identifier">versioned</span>)
423
- <span class="ruby-keyword kw">end</span>
424
- </pre>
425
- </div>
426
- </div>
427
- </div>
428
-
429
- <div id="method-M000061" class="method-detail">
430
- <a name="M000061"></a>
431
-
432
- <div class="method-heading">
433
- <a href="#M000061" class="method-signature">
434
- <span class="method-name">to_rdf</span><span class="method-args">(include_root=true)</span>
435
- </a>
436
- </div>
437
-
438
- <div class="method-description">
439
- <p>
440
- Serialize this changeset as <a href="../RDF.html">RDF</a>/XML suitable for
441
- submitting to the Platform.
442
- </p>
443
- <p><a class="source-toggle" href="#"
444
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
445
- <div class="method-source-code" id="M000061-source">
446
- <pre>
447
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 241</span>
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>)
449
- <span class="ruby-identifier">rdf</span> = <span class="ruby-value str">&quot;&quot;</span>
450
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">include_root</span>
451
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;rdf:RDF xmlns:cs=\&quot;http://purl.org/vocab/changeset/schema#\&quot; xmlns:rdf=\&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#\&quot;&gt;&quot;</span>
452
- <span class="ruby-keyword kw">end</span>
453
-
454
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &lt;cs:ChangeSet&gt;&quot;</span>
455
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; &lt;cs:subjectOfChange rdf:resource=\&quot;#{@subject_of_change}\&quot;/&gt;&quot;</span>
456
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@creator_name</span>
457
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; &lt;cs:creatorName&gt;#{@creator_name}&lt;/cs:creatorName&gt;&quot;</span>
458
- <span class="ruby-keyword kw">end</span>
459
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@change_reason</span>
460
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; &lt;cs:changeReason&gt;#{@change_reason}&lt;/cs:changeReason&gt;&quot;</span>
461
- <span class="ruby-keyword kw">end</span>
462
- <span class="ruby-ivar">@additions</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">add</span><span class="ruby-operator">|</span>
463
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &lt;cs:addition&gt;&quot;</span>
464
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">add</span>.<span class="ruby-identifier">to_rdf</span>
465
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &lt;/cs:addition&gt;&quot;</span>
466
- <span class="ruby-keyword kw">end</span>
467
- <span class="ruby-ivar">@removals</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">remove</span><span class="ruby-operator">|</span>
468
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &lt;cs:removal&gt;&quot;</span>
469
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">remove</span>.<span class="ruby-identifier">to_rdf</span>
470
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &lt;/cs:removal&gt;&quot;</span>
471
- <span class="ruby-keyword kw">end</span>
472
-
473
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; &lt;/cs:ChangeSet&gt;&quot;</span>
474
-
475
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">include_root</span>
476
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/rdf:RDF&gt;&quot;</span>
477
- <span class="ruby-keyword kw">end</span>
478
-
479
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rdf</span>
480
- <span class="ruby-keyword kw">end</span>
481
- </pre>
482
- </div>
483
- </div>
484
- </div>
485
-
486
- <div id="method-M000060" class="method-detail">
487
- <a name="M000060"></a>
488
-
489
- <div class="method-heading">
490
- <a href="#M000060" class="method-signature">
491
- <span class="method-name">to_s</span><span class="method-args">()</span>
492
- </a>
493
- </div>
494
-
495
- <div class="method-description">
496
- <p><a class="source-toggle" href="#"
497
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
498
- <div class="method-source-code" id="M000060-source">
499
- <pre>
500
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 236</span>
501
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
502
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">to_rdf</span>
503
- <span class="ruby-keyword kw">end</span>
504
- </pre>
505
- </div>
506
- </div>
507
- </div>
508
-
509
-
510
- </div>
511
-
512
-
513
- </div>
514
-
515
-
516
- <div id="validator-badges">
517
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
518
- </div>
519
-
520
- </body>
521
- </html>