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
@@ -93,10 +93,10 @@ href="Changesets.html">Changesets</a> from triple hashes
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
96
|
+
<a href="#M000045">build</a>
|
97
|
+
<a href="#M000044">build_batch</a>
|
98
|
+
<a href="#M000046">create_statements</a>
|
99
|
+
<a href="#M000047">create_statements_for_uri</a>
|
100
100
|
</div>
|
101
101
|
</div>
|
102
102
|
|
@@ -118,11 +118,11 @@ href="Changesets.html">Changesets</a> from triple hashes
|
|
118
118
|
<div id="methods">
|
119
119
|
<h3 class="section-bar">Public Class methods</h3>
|
120
120
|
|
121
|
-
<div id="method-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000045" class="method-detail">
|
122
|
+
<a name="M000045"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="#
|
125
|
+
<a href="#M000045" class="method-signature">
|
126
126
|
<span class="method-name">build</span><span class="method-args">(subject_of_change, before, after, creator_name=nil, change_reason=nil)</span>
|
127
127
|
</a>
|
128
128
|
</div>
|
@@ -148,8 +148,8 @@ object.
|
|
148
148
|
change_reason:: description of why the changes are being made
|
149
149
|
</pre>
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000045-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/pho/changeset_builder.rb, line 65</span>
|
155
155
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ChangesetBuilder</span>.<span class="ruby-identifier">build</span>(<span class="ruby-identifier">subject_of_change</span>, <span class="ruby-identifier">before</span>, <span class="ruby-identifier">after</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>)
|
@@ -169,11 +169,11 @@ object.
|
|
169
169
|
</div>
|
170
170
|
</div>
|
171
171
|
|
172
|
-
<div id="method-
|
173
|
-
<a name="
|
172
|
+
<div id="method-M000044" class="method-detail">
|
173
|
+
<a name="M000044"></a>
|
174
174
|
|
175
175
|
<div class="method-heading">
|
176
|
-
<a href="#
|
176
|
+
<a href="#M000044" class="method-signature">
|
177
177
|
<span class="method-name">build_batch</span><span class="method-args">(before, after, creator_name=nil, change_reason=nil)</span>
|
178
178
|
</a>
|
179
179
|
</div>
|
@@ -196,8 +196,8 @@ Returns an array of <a href="Changeset.html">Changeset</a> objects
|
|
196
196
|
change_reason:: description of why the changes are being made
|
197
197
|
</pre>
|
198
198
|
<p><a class="source-toggle" href="#"
|
199
|
-
onclick="toggleCode('
|
200
|
-
<div class="method-source-code" id="
|
199
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
200
|
+
<div class="method-source-code" id="M000044-source">
|
201
201
|
<pre>
|
202
202
|
<span class="ruby-comment cmt"># File lib/pho/changeset_builder.rb, line 22</span>
|
203
203
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ChangesetBuilder</span>.<span class="ruby-identifier">build_batch</span>(<span class="ruby-identifier">before</span>, <span class="ruby-identifier">after</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>)
|
@@ -235,11 +235,11 @@ Returns an array of <a href="Changeset.html">Changeset</a> objects
|
|
235
235
|
</div>
|
236
236
|
</div>
|
237
237
|
|
238
|
-
<div id="method-
|
239
|
-
<a name="
|
238
|
+
<div id="method-M000046" class="method-detail">
|
239
|
+
<a name="M000046"></a>
|
240
240
|
|
241
241
|
<div class="method-heading">
|
242
|
-
<a href="#
|
242
|
+
<a href="#M000046" class="method-signature">
|
243
243
|
<span class="method-name">create_statements</span><span class="method-args">(triples)</span>
|
244
244
|
</a>
|
245
245
|
</div>
|
@@ -253,8 +253,8 @@ href="Statement.html">Pho::Update::Statement</a> objects
|
|
253
253
|
triples:: a resource hash, conforming to RDF-in-JSON structure
|
254
254
|
</pre>
|
255
255
|
<p><a class="source-toggle" href="#"
|
256
|
-
onclick="toggleCode('
|
257
|
-
<div class="method-source-code" id="
|
256
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
257
|
+
<div class="method-source-code" id="M000046-source">
|
258
258
|
<pre>
|
259
259
|
<span class="ruby-comment cmt"># File lib/pho/changeset_builder.rb, line 81</span>
|
260
260
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ChangesetBuilder</span>.<span class="ruby-identifier">create_statements</span>(<span class="ruby-identifier">triples</span>)
|
@@ -269,11 +269,11 @@ href="Statement.html">Pho::Update::Statement</a> objects
|
|
269
269
|
</div>
|
270
270
|
</div>
|
271
271
|
|
272
|
-
<div id="method-
|
273
|
-
<a name="
|
272
|
+
<div id="method-M000047" class="method-detail">
|
273
|
+
<a name="M000047"></a>
|
274
274
|
|
275
275
|
<div class="method-heading">
|
276
|
-
<a href="#
|
276
|
+
<a href="#M000047" class="method-signature">
|
277
277
|
<span class="method-name">create_statements_for_uri</span><span class="method-args">(uri, properties)</span>
|
278
278
|
</a>
|
279
279
|
</div>
|
@@ -288,8 +288,8 @@ provided properties hash
|
|
288
288
|
properties:: hash of predicate-object values
|
289
289
|
</pre>
|
290
290
|
<p><a class="source-toggle" href="#"
|
291
|
-
onclick="toggleCode('
|
292
|
-
<div class="method-source-code" id="
|
291
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
292
|
+
<div class="method-source-code" id="M000047-source">
|
293
293
|
<pre>
|
294
294
|
<span class="ruby-comment cmt"># File lib/pho/changeset_builder.rb, line 94</span>
|
295
295
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ChangesetBuilder</span>.<span class="ruby-identifier">create_statements_for_uri</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">properties</span>)
|
@@ -94,8 +94,8 @@ href="Changeset.html">Changeset</a> objects
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
97
|
+
<a href="#M000052">all_to_rdf</a>
|
98
|
+
<a href="#M000053">submit_all</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,25 +117,26 @@ href="Changeset.html">Changeset</a> objects
|
|
117
117
|
<div id="methods">
|
118
118
|
<h3 class="section-bar">Public Class methods</h3>
|
119
119
|
|
120
|
-
<div id="method-
|
121
|
-
<a name="
|
120
|
+
<div id="method-M000052" class="method-detail">
|
121
|
+
<a name="M000052"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000052" class="method-signature">
|
125
125
|
<span class="method-name">all_to_rdf</span><span class="method-args">(changesets)</span>
|
126
126
|
</a>
|
127
127
|
</div>
|
128
128
|
|
129
129
|
<div class="method-description">
|
130
130
|
<p>
|
131
|
-
Convert an array of changesets into an RDF
|
131
|
+
Convert an array of changesets into an <a href="../RDF.html">RDF</a>/XML
|
132
|
+
document
|
132
133
|
</p>
|
133
134
|
<pre>
|
134
135
|
changesets:: an array of changesets
|
135
136
|
</pre>
|
136
137
|
<p><a class="source-toggle" href="#"
|
137
|
-
onclick="toggleCode('
|
138
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000052-source">
|
139
140
|
<pre>
|
140
141
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 157</span>
|
141
142
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Changesets</span>.<span class="ruby-identifier">all_to_rdf</span>(<span class="ruby-identifier">changesets</span>)
|
@@ -150,11 +151,11 @@ Convert an array of changesets into an RDF/XML document
|
|
150
151
|
</div>
|
151
152
|
</div>
|
152
153
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
154
|
+
<div id="method-M000053" class="method-detail">
|
155
|
+
<a name="M000053"></a>
|
155
156
|
|
156
157
|
<div class="method-heading">
|
157
|
-
<a href="#
|
158
|
+
<a href="#M000053" class="method-signature">
|
158
159
|
<span class="method-name">submit_all</span><span class="method-args">(changesets, store, versioned=false)</span>
|
159
160
|
</a>
|
160
161
|
</div>
|
@@ -162,7 +163,7 @@ Convert an array of changesets into an RDF/XML document
|
|
162
163
|
<div class="method-description">
|
163
164
|
<p>
|
164
165
|
Submit an array of changests to the Platform. After first converting them
|
165
|
-
to an RDF
|
166
|
+
to an <a href="../RDF.html">RDF</a>/XML document.
|
166
167
|
</p>
|
167
168
|
<pre>
|
168
169
|
Note that this submits all of the changessets in a single request to the Platform
|
@@ -176,8 +177,8 @@ to an RDF/XML document.
|
|
176
177
|
change_reason and creator_name properties.
|
177
178
|
</pre>
|
178
179
|
<p><a class="source-toggle" href="#"
|
179
|
-
onclick="toggleCode('
|
180
|
-
<div class="method-source-code" id="
|
180
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
181
|
+
<div class="method-source-code" id="M000053-source">
|
181
182
|
<pre>
|
182
183
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 177</span>
|
183
184
|
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Changesets</span>.<span class="ruby-identifier">submit_all</span>(<span class="ruby-identifier">changesets</span>, <span class="ruby-identifier">store</span>, <span class="ruby-identifier">versioned</span>=<span class="ruby-keyword kw">false</span>)
|
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000042">==</a>
|
92
|
+
<a href="#M000041">new</a>
|
93
|
+
<a href="#M000043">write_object</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -136,11 +136,11 @@ Language for literals
|
|
136
136
|
<div id="methods">
|
137
137
|
<h3 class="section-bar">Public Class methods</h3>
|
138
138
|
|
139
|
-
<div id="method-
|
140
|
-
<a name="
|
139
|
+
<div id="method-M000041" class="method-detail">
|
140
|
+
<a name="M000041"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="#
|
143
|
+
<a href="#M000041" class="method-signature">
|
144
144
|
<span class="method-name">new</span><span class="method-args">(subject, predicate, object, language=nil, datatype=nil)</span>
|
145
145
|
</a>
|
146
146
|
</div>
|
@@ -158,8 +158,8 @@ have one of lang or datatype but not both
|
|
158
158
|
datatype:: datatype for literal
|
159
159
|
</pre>
|
160
160
|
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('
|
162
|
-
<div class="method-source-code" id="
|
161
|
+
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
162
|
+
<div class="method-source-code" id="M000041-source">
|
163
163
|
<pre>
|
164
164
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 86</span>
|
165
165
|
<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>, <span class="ruby-identifier">language</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">datatype</span>=<span class="ruby-keyword kw">nil</span>)
|
@@ -177,19 +177,19 @@ have one of lang or datatype but not both
|
|
177
177
|
|
178
178
|
<h3 class="section-bar">Public Instance methods</h3>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-M000042" class="method-detail">
|
181
|
+
<a name="M000042"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="#
|
184
|
+
<a href="#M000042" class="method-signature">
|
185
185
|
<span class="method-name">==</span><span class="method-args">(other)</span>
|
186
186
|
</a>
|
187
187
|
</div>
|
188
188
|
|
189
189
|
<div class="method-description">
|
190
190
|
<p><a class="source-toggle" href="#"
|
191
|
-
onclick="toggleCode('
|
192
|
-
<div class="method-source-code" id="
|
191
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
192
|
+
<div class="method-source-code" id="M000042-source">
|
193
193
|
<pre>
|
194
194
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 95</span>
|
195
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
@@ -209,19 +209,19 @@ have one of lang or datatype but not both
|
|
209
209
|
|
210
210
|
<h3 class="section-bar">Protected Instance methods</h3>
|
211
211
|
|
212
|
-
<div id="method-
|
213
|
-
<a name="
|
212
|
+
<div id="method-M000043" class="method-detail">
|
213
|
+
<a name="M000043"></a>
|
214
214
|
|
215
215
|
<div class="method-heading">
|
216
|
-
<a href="#
|
216
|
+
<a href="#M000043" class="method-signature">
|
217
217
|
<span class="method-name">write_object</span><span class="method-args">()</span>
|
218
218
|
</a>
|
219
219
|
</div>
|
220
220
|
|
221
221
|
<div class="method-description">
|
222
222
|
<p><a class="source-toggle" href="#"
|
223
|
-
onclick="toggleCode('
|
224
|
-
<div class="method-source-code" id="
|
223
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
224
|
+
<div class="method-source-code" id="M000043-source">
|
225
225
|
<pre>
|
226
226
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 107</span>
|
227
227
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_object</span>()
|
@@ -88,10 +88,10 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
91
|
+
<a href="#M000049">==</a>
|
92
|
+
<a href="#M000048">new</a>
|
93
|
+
<a href="#M000051">write_object</a>
|
94
|
+
<a href="#M000050">write_subject</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -113,11 +113,11 @@
|
|
113
113
|
<div id="methods">
|
114
114
|
<h3 class="section-bar">Public Class methods</h3>
|
115
115
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
116
|
+
<div id="method-M000048" class="method-detail">
|
117
|
+
<a name="M000048"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000048" class="method-signature">
|
121
121
|
<span class="method-name">new</span><span class="method-args">(subject, predicate, object)</span>
|
122
122
|
</a>
|
123
123
|
</div>
|
@@ -132,8 +132,8 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
132
132
|
object:: resource uri
|
133
133
|
</pre>
|
134
134
|
<p><a class="source-toggle" href="#"
|
135
|
-
onclick="toggleCode('
|
136
|
-
<div class="method-source-code" id="
|
135
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
136
|
+
<div class="method-source-code" id="M000048-source">
|
137
137
|
<pre>
|
138
138
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 127</span>
|
139
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>)
|
@@ -146,19 +146,19 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
146
146
|
|
147
147
|
<h3 class="section-bar">Public Instance methods</h3>
|
148
148
|
|
149
|
-
<div id="method-
|
150
|
-
<a name="
|
149
|
+
<div id="method-M000049" class="method-detail">
|
150
|
+
<a name="M000049"></a>
|
151
151
|
|
152
152
|
<div class="method-heading">
|
153
|
-
<a href="#
|
153
|
+
<a href="#M000049" class="method-signature">
|
154
154
|
<span class="method-name">==</span><span class="method-args">(other)</span>
|
155
155
|
</a>
|
156
156
|
</div>
|
157
157
|
|
158
158
|
<div class="method-description">
|
159
159
|
<p><a class="source-toggle" href="#"
|
160
|
-
onclick="toggleCode('
|
161
|
-
<div class="method-source-code" id="
|
160
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
161
|
+
<div class="method-source-code" id="M000049-source">
|
162
162
|
<pre>
|
163
163
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 131</span>
|
164
164
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
@@ -176,19 +176,19 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
176
176
|
|
177
177
|
<h3 class="section-bar">Protected Instance methods</h3>
|
178
178
|
|
179
|
-
<div id="method-
|
180
|
-
<a name="
|
179
|
+
<div id="method-M000051" class="method-detail">
|
180
|
+
<a name="M000051"></a>
|
181
181
|
|
182
182
|
<div class="method-heading">
|
183
|
-
<a href="#
|
183
|
+
<a href="#M000051" class="method-signature">
|
184
184
|
<span class="method-name">write_object</span><span class="method-args">()</span>
|
185
185
|
</a>
|
186
186
|
</div>
|
187
187
|
|
188
188
|
<div class="method-description">
|
189
189
|
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('
|
191
|
-
<div class="method-source-code" id="
|
190
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000051-source">
|
192
192
|
<pre>
|
193
193
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 145</span>
|
194
194
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_object</span>()
|
@@ -199,19 +199,19 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
199
199
|
</div>
|
200
200
|
</div>
|
201
201
|
|
202
|
-
<div id="method-
|
203
|
-
<a name="
|
202
|
+
<div id="method-M000050" class="method-detail">
|
203
|
+
<a name="M000050"></a>
|
204
204
|
|
205
205
|
<div class="method-heading">
|
206
|
-
<a href="#
|
206
|
+
<a href="#M000050" class="method-signature">
|
207
207
|
<span class="method-name">write_subject</span><span class="method-args">()</span>
|
208
208
|
</a>
|
209
209
|
</div>
|
210
210
|
|
211
211
|
<div class="method-description">
|
212
212
|
<p><a class="source-toggle" href="#"
|
213
|
-
onclick="toggleCode('
|
214
|
-
<div class="method-source-code" id="
|
213
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
214
|
+
<div class="method-source-code" id="M000050-source">
|
215
215
|
<pre>
|
216
216
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 141</span>
|
217
217
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_subject</span>()
|
@@ -80,8 +80,9 @@
|
|
80
80
|
|
81
81
|
<div id="description">
|
82
82
|
<p>
|
83
|
-
Base class capturing data relating to a reified
|
84
|
-
|
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>
|
85
86
|
</p>
|
86
87
|
|
87
88
|
</div>
|
@@ -93,10 +94,10 @@ Base class capturing data relating to a reified RDF triple described in a
|
|
93
94
|
<h3 class="section-bar">Methods</h3>
|
94
95
|
|
95
96
|
<div class="name-list">
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
97
|
+
<a href="#M000054">create_literal</a>
|
98
|
+
<a href="#M000055">create_resource</a>
|
99
|
+
<a href="#M000057">new</a>
|
100
|
+
<a href="#M000056">to_rdf</a>
|
100
101
|
</div>
|
101
102
|
</div>
|
102
103
|
|
@@ -150,11 +151,11 @@ URI of subject
|
|
150
151
|
<div id="methods">
|
151
152
|
<h3 class="section-bar">Public Class methods</h3>
|
152
153
|
|
153
|
-
<div id="method-
|
154
|
-
<a name="
|
154
|
+
<div id="method-M000054" class="method-detail">
|
155
|
+
<a name="M000054"></a>
|
155
156
|
|
156
157
|
<div class="method-heading">
|
157
|
-
<a href="#
|
158
|
+
<a href="#M000054" class="method-signature">
|
158
159
|
<span class="method-name">create_literal</span><span class="method-args">(subject, predicate, object, lang=nil, datatype=nil)</span>
|
159
160
|
</a>
|
160
161
|
</div>
|
@@ -172,8 +173,8 @@ have one of lang or datatype but not both
|
|
172
173
|
datatype:: datatype for literal
|
173
174
|
</pre>
|
174
175
|
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('
|
176
|
-
<div class="method-source-code" id="
|
176
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
177
|
+
<div class="method-source-code" id="M000054-source">
|
177
178
|
<pre>
|
178
179
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 29</span>
|
179
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>)
|
@@ -184,11 +185,11 @@ have one of lang or datatype but not both
|
|
184
185
|
</div>
|
185
186
|
</div>
|
186
187
|
|
187
|
-
<div id="method-
|
188
|
-
<a name="
|
188
|
+
<div id="method-M000055" class="method-detail">
|
189
|
+
<a name="M000055"></a>
|
189
190
|
|
190
191
|
<div class="method-heading">
|
191
|
-
<a href="#
|
192
|
+
<a href="#M000055" class="method-signature">
|
192
193
|
<span class="method-name">create_resource</span><span class="method-args">(subject, predicate, object)</span>
|
193
194
|
</a>
|
194
195
|
</div>
|
@@ -203,8 +204,8 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
203
204
|
object:: resource uri
|
204
205
|
</pre>
|
205
206
|
<p><a class="source-toggle" href="#"
|
206
|
-
onclick="toggleCode('
|
207
|
-
<div class="method-source-code" id="
|
207
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
208
|
+
<div class="method-source-code" id="M000055-source">
|
208
209
|
<pre>
|
209
210
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 38</span>
|
210
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>)
|
@@ -217,11 +218,11 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
217
218
|
|
218
219
|
<h3 class="section-bar">Protected Class methods</h3>
|
219
220
|
|
220
|
-
<div id="method-
|
221
|
-
<a name="
|
221
|
+
<div id="method-M000057" class="method-detail">
|
222
|
+
<a name="M000057"></a>
|
222
223
|
|
223
224
|
<div class="method-heading">
|
224
|
-
<a href="#
|
225
|
+
<a href="#M000057" class="method-signature">
|
225
226
|
<span class="method-name">new</span><span class="method-args">(subject, predicate, object)</span>
|
226
227
|
</a>
|
227
228
|
</div>
|
@@ -239,8 +240,8 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
239
240
|
</td></tr>
|
240
241
|
</table>
|
241
242
|
<p><a class="source-toggle" href="#"
|
242
|
-
onclick="toggleCode('
|
243
|
-
<div class="method-source-code" id="
|
243
|
+
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000057-source">
|
244
245
|
<pre>
|
245
246
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 61</span>
|
246
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>)
|
@@ -255,23 +256,23 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
255
256
|
|
256
257
|
<h3 class="section-bar">Public Instance methods</h3>
|
257
258
|
|
258
|
-
<div id="method-
|
259
|
-
<a name="
|
259
|
+
<div id="method-M000056" class="method-detail">
|
260
|
+
<a name="M000056"></a>
|
260
261
|
|
261
262
|
<div class="method-heading">
|
262
|
-
<a href="#
|
263
|
+
<a href="#M000056" class="method-signature">
|
263
264
|
<span class="method-name">to_rdf</span><span class="method-args">()</span>
|
264
265
|
</a>
|
265
266
|
</div>
|
266
267
|
|
267
268
|
<div class="method-description">
|
268
269
|
<p>
|
269
|
-
Create an RDF
|
270
|
+
Create an <a href="../RDF.html">RDF</a>/XML fragment describing this <a
|
270
271
|
href="Statement.html">Statement</a>
|
271
272
|
</p>
|
272
273
|
<p><a class="source-toggle" href="#"
|
273
|
-
onclick="toggleCode('
|
274
|
-
<div class="method-source-code" id="
|
274
|
+
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000056-source">
|
275
276
|
<pre>
|
276
277
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 43</span>
|
277
278
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>()
|