pho 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,237 +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::ResourceStatement</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::ResourceStatement</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
- <a href="Statement.html">
69
- Statement
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="#M000050">==</a>&nbsp;&nbsp;
92
- <a href="#M000049">new</a>&nbsp;&nbsp;
93
- <a href="#M000052">write_object</a>&nbsp;&nbsp;
94
- <a href="#M000051">write_subject</a>&nbsp;&nbsp;
95
- </div>
96
- </div>
97
-
98
- </div>
99
-
100
-
101
- <!-- if includes -->
102
-
103
- <div id="section">
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <!-- if method_list -->
113
- <div id="methods">
114
- <h3 class="section-bar">Public Class methods</h3>
115
-
116
- <div id="method-M000049" class="method-detail">
117
- <a name="M000049"></a>
118
-
119
- <div class="method-heading">
120
- <a href="#M000049" class="method-signature">
121
- <span class="method-name">new</span><span class="method-args">(subject, predicate, object)</span>
122
- </a>
123
- </div>
124
-
125
- <div class="method-description">
126
- <p>
127
- Create a <a href="Statement.html">Statement</a> referring to a resource
128
- </p>
129
- <pre>
130
- subject:: URI of subject of triple
131
- predicate:: URI of predicate of triple
132
- object:: resource uri
133
- </pre>
134
- <p><a class="source-toggle" href="#"
135
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
136
- <div class="method-source-code" id="M000049-source">
137
- <pre>
138
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 128</span>
139
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>)
140
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>)
141
- <span class="ruby-keyword kw">end</span>
142
- </pre>
143
- </div>
144
- </div>
145
- </div>
146
-
147
- <h3 class="section-bar">Public Instance methods</h3>
148
-
149
- <div id="method-M000050" class="method-detail">
150
- <a name="M000050"></a>
151
-
152
- <div class="method-heading">
153
- <a href="#M000050" class="method-signature">
154
- <span class="method-name">==</span><span class="method-args">(other)</span>
155
- </a>
156
- </div>
157
-
158
- <div class="method-description">
159
- <p><a class="source-toggle" href="#"
160
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
161
- <div class="method-source-code" id="M000050-source">
162
- <pre>
163
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 132</span>
164
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
165
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">other</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
166
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
167
- <span class="ruby-keyword kw">end</span>
168
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@subject</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">subject</span> <span class="ruby-operator">&amp;&amp;</span>
169
- <span class="ruby-ivar">@predicate</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">predicate</span> <span class="ruby-operator">&amp;&amp;</span>
170
- <span class="ruby-ivar">@object</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">object</span>
171
- <span class="ruby-keyword kw">end</span>
172
- </pre>
173
- </div>
174
- </div>
175
- </div>
176
-
177
- <h3 class="section-bar">Protected Instance methods</h3>
178
-
179
- <div id="method-M000052" class="method-detail">
180
- <a name="M000052"></a>
181
-
182
- <div class="method-heading">
183
- <a href="#M000052" class="method-signature">
184
- <span class="method-name">write_object</span><span class="method-args">()</span>
185
- </a>
186
- </div>
187
-
188
- <div class="method-description">
189
- <p><a class="source-toggle" href="#"
190
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000052-source">
192
- <pre>
193
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 146</span>
194
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_object</span>()
195
- <span class="ruby-node">&quot;&lt;rdf:object rdf:resource=\&quot;#{@object}\&quot;/&gt;&quot;</span>
196
- <span class="ruby-keyword kw">end</span>
197
- </pre>
198
- </div>
199
- </div>
200
- </div>
201
-
202
- <div id="method-M000051" class="method-detail">
203
- <a name="M000051"></a>
204
-
205
- <div class="method-heading">
206
- <a href="#M000051" class="method-signature">
207
- <span class="method-name">write_subject</span><span class="method-args">()</span>
208
- </a>
209
- </div>
210
-
211
- <div class="method-description">
212
- <p><a class="source-toggle" href="#"
213
- onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
214
- <div class="method-source-code" id="M000051-source">
215
- <pre>
216
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 142</span>
217
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_subject</span>()
218
- <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot; &lt;rdf:subject rdf:resource=\&quot;#{@subject}\&quot;/&gt;&quot;</span>
219
- <span class="ruby-keyword kw">end</span>
220
- </pre>
221
- </div>
222
- </div>
223
- </div>
224
-
225
-
226
- </div>
227
-
228
-
229
- </div>
230
-
231
-
232
- <div id="validator-badges">
233
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
234
- </div>
235
-
236
- </body>
237
- </html>
@@ -1,303 +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::Statement</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::Statement</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
- Base class capturing data relating to a reified <a
84
- href="../RDF.html">RDF</a> triple described in a <a
85
- href="Changeset.html">Changeset</a>
86
- </p>
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
- <div id="method-list">
94
- <h3 class="section-bar">Methods</h3>
95
-
96
- <div class="name-list">
97
- <a href="#M000055">create_literal</a>&nbsp;&nbsp;
98
- <a href="#M000056">create_resource</a>&nbsp;&nbsp;
99
- <a href="#M000058">new</a>&nbsp;&nbsp;
100
- <a href="#M000057">to_rdf</a>&nbsp;&nbsp;
101
- </div>
102
- </div>
103
-
104
- </div>
105
-
106
-
107
- <!-- if includes -->
108
-
109
- <div id="section">
110
-
111
-
112
-
113
-
114
-
115
- <div id="attribute-list">
116
- <h3 class="section-bar">Attributes</h3>
117
-
118
- <div class="name-list">
119
- <table>
120
- <tr class="top-aligned-row context-row">
121
- <td class="context-item-name">object</td>
122
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
123
- <td class="context-item-desc">
124
- Object value. May be uri or literal
125
-
126
- </td>
127
- </tr>
128
- <tr class="top-aligned-row context-row">
129
- <td class="context-item-name">predicate</td>
130
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
131
- <td class="context-item-desc">
132
- URI of predicate
133
-
134
- </td>
135
- </tr>
136
- <tr class="top-aligned-row context-row">
137
- <td class="context-item-name">subject</td>
138
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
139
- <td class="context-item-desc">
140
- URI of subject
141
-
142
- </td>
143
- </tr>
144
- </table>
145
- </div>
146
- </div>
147
-
148
-
149
-
150
- <!-- if method_list -->
151
- <div id="methods">
152
- <h3 class="section-bar">Public Class methods</h3>
153
-
154
- <div id="method-M000055" class="method-detail">
155
- <a name="M000055"></a>
156
-
157
- <div class="method-heading">
158
- <a href="#M000055" class="method-signature">
159
- <span class="method-name">create_literal</span><span class="method-args">(subject, predicate, object, lang=nil, datatype=nil)</span>
160
- </a>
161
- </div>
162
-
163
- <div class="method-description">
164
- <p>
165
- Create a <a href="Statement.html">Statement</a> referring to a literal. Can
166
- have one of lang or datatype but not both
167
- </p>
168
- <pre>
169
- subject:: URI of subject of triple
170
- predicate:: URI of predicate of triple
171
- object:: literal value
172
- lang:: language for literal
173
- datatype:: datatype for literal
174
- </pre>
175
- <p><a class="source-toggle" href="#"
176
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
177
- <div class="method-source-code" id="M000055-source">
178
- <pre>
179
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 29</span>
180
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Statement</span>.<span class="ruby-identifier">create_literal</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>, <span class="ruby-identifier">lang</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">datatype</span>=<span class="ruby-keyword kw">nil</span>)
181
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">LiteralStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>, <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">datatype</span>)
182
- <span class="ruby-keyword kw">end</span>
183
- </pre>
184
- </div>
185
- </div>
186
- </div>
187
-
188
- <div id="method-M000056" class="method-detail">
189
- <a name="M000056"></a>
190
-
191
- <div class="method-heading">
192
- <a href="#M000056" class="method-signature">
193
- <span class="method-name">create_resource</span><span class="method-args">(subject, predicate, object)</span>
194
- </a>
195
- </div>
196
-
197
- <div class="method-description">
198
- <p>
199
- Create a <a href="Statement.html">Statement</a> referring to a resource
200
- </p>
201
- <pre>
202
- subject:: URI of subject of triple
203
- predicate:: URI of predicate of triple
204
- object:: resource uri
205
- </pre>
206
- <p><a class="source-toggle" href="#"
207
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
208
- <div class="method-source-code" id="M000056-source">
209
- <pre>
210
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 38</span>
211
- <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Statement</span>.<span class="ruby-identifier">create_resource</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>)
212
- <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ResourceStatement</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>)
213
- <span class="ruby-keyword kw">end</span>
214
- </pre>
215
- </div>
216
- </div>
217
- </div>
218
-
219
- <h3 class="section-bar">Protected Class methods</h3>
220
-
221
- <div id="method-M000058" class="method-detail">
222
- <a name="M000058"></a>
223
-
224
- <div class="method-heading">
225
- <a href="#M000058" class="method-signature">
226
- <span class="method-name">new</span><span class="method-args">(subject, predicate, object)</span>
227
- </a>
228
- </div>
229
-
230
- <div class="method-description">
231
- <table>
232
- <tr><td valign="top">subject:</td><td>URI of subject of triple
233
-
234
- </td></tr>
235
- <tr><td valign="top">predicate:</td><td>URI of predicate of triple
236
-
237
- </td></tr>
238
- <tr><td valign="top">object:</td><td>object value of triple (may be URI or literal)
239
-
240
- </td></tr>
241
- </table>
242
- <p><a class="source-toggle" href="#"
243
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
244
- <div class="method-source-code" id="M000058-source">
245
- <pre>
246
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 61</span>
247
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">object</span>)
248
- <span class="ruby-ivar">@subject</span> = <span class="ruby-identifier">subject</span>
249
- <span class="ruby-ivar">@predicate</span> = <span class="ruby-identifier">predicate</span>
250
- <span class="ruby-ivar">@object</span> = <span class="ruby-identifier">object</span>
251
- <span class="ruby-keyword kw">end</span>
252
- </pre>
253
- </div>
254
- </div>
255
- </div>
256
-
257
- <h3 class="section-bar">Public Instance methods</h3>
258
-
259
- <div id="method-M000057" class="method-detail">
260
- <a name="M000057"></a>
261
-
262
- <div class="method-heading">
263
- <a href="#M000057" class="method-signature">
264
- <span class="method-name">to_rdf</span><span class="method-args">()</span>
265
- </a>
266
- </div>
267
-
268
- <div class="method-description">
269
- <p>
270
- Create an <a href="../RDF.html">RDF</a>/XML fragment describing this <a
271
- href="Statement.html">Statement</a>
272
- </p>
273
- <p><a class="source-toggle" href="#"
274
- onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
275
- <div class="method-source-code" id="M000057-source">
276
- <pre>
277
- <span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 43</span>
278
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>()
279
- <span class="ruby-identifier">rdf</span> = <span class="ruby-value str">&quot;&lt;rdf:Statement&gt;&quot;</span>
280
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">write_subject</span>()
281
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot; &lt;rdf:predicate rdf:resource=\&quot;#{@predicate}\&quot;/&gt;&quot;</span>
282
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">write_object</span>()
283
- <span class="ruby-identifier">rdf</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;&lt;/rdf:Statement&gt;&quot;</span>
284
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">rdf</span>
285
- <span class="ruby-keyword kw">end</span>
286
- </pre>
287
- </div>
288
- </div>
289
- </div>
290
-
291
-
292
- </div>
293
-
294
-
295
- </div>
296
-
297
-
298
- <div id="validator-badges">
299
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
300
- </div>
301
-
302
- </body>
303
- </html>
@@ -1,128 +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>Module: Pho::Update</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">Pho::Update</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/pho/changeset_builder_rb.html">
59
- lib/pho/changeset_builder.rb
60
- </a>
61
- <br />
62
- <a href="../../files/lib/pho/changeset_rb.html">
63
- lib/pho/changeset.rb
64
- </a>
65
- <br />
66
- </td>
67
- </tr>
68
-
69
- </table>
70
- </div>
71
- <!-- banner header -->
72
-
73
- <div id="bodyContent">
74
-
75
-
76
-
77
- <div id="contextContent">
78
-
79
- <div id="description">
80
- <p>
81
- Module organizing classes related to <a
82
- href="Update/Changeset.html">Changeset</a> handling.
83
- </p>
84
-
85
- </div>
86
-
87
-
88
- </div>
89
-
90
-
91
- </div>
92
-
93
-
94
- <!-- if includes -->
95
-
96
- <div id="section">
97
-
98
- <div id="class-list">
99
- <h3 class="section-bar">Classes and Modules</h3>
100
-
101
- Class <a href="Update/Changeset.html" class="link">Pho::Update::Changeset</a><br />
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 />
104
- Class <a href="Update/Changesets.html" class="link">Pho::Update::Changesets</a><br />
105
- Class <a href="Update/LiteralStatement.html" class="link">Pho::Update::LiteralStatement</a><br />
106
- Class <a href="Update/ResourceStatement.html" class="link">Pho::Update::ResourceStatement</a><br />
107
- Class <a href="Update/Statement.html" class="link">Pho::Update::Statement</a><br />
108
-
109
- </div>
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- <!-- if method_list -->
118
-
119
-
120
- </div>
121
-
122
-
123
- <div id="validator-badges">
124
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
125
- </div>
126
-
127
- </body>
128
- </html>