pho 0.6 → 0.6.1
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.
- data/CHANGES +6 -0
- data/Rakefile +1 -1
- data/doc/rdoc/classes/Pho/CommandLine.html +67 -67
- data/doc/rdoc/classes/Pho/DatatypeProperty.html +12 -12
- data/doc/rdoc/classes/Pho/Enrichment/StoreEnricher.html +29 -29
- 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 +90 -90
- data/doc/rdoc/classes/Pho/FieldWeighting.html +12 -12
- data/doc/rdoc/classes/Pho/FileManagement/AbstractFileManager.html +63 -63
- data/doc/rdoc/classes/Pho/FileManagement/FileManager.html +24 -24
- data/doc/rdoc/classes/Pho/FileManagement/RDFManager.html +18 -18
- data/doc/rdoc/classes/Pho/Job.html +64 -64
- data/doc/rdoc/classes/Pho/Jobs.html +60 -60
- data/doc/rdoc/classes/Pho/QueryProfile.html +60 -60
- data/doc/rdoc/classes/Pho/RDF/Parser.html +24 -24
- data/doc/rdoc/classes/Pho/ResourceHash/Converter.html +36 -36
- data/doc/rdoc/classes/Pho/ResourceHash/SetAlgebra.html +12 -12
- data/doc/rdoc/classes/Pho/Snapshot.html +35 -35
- data/doc/rdoc/classes/Pho/Sparql/SparqlHelper.html +78 -42
- data/doc/rdoc/classes/Pho/Status.html +26 -26
- data/doc/rdoc/classes/Pho/Store.html +209 -209
- data/doc/rdoc/classes/Pho/StoreSparqlClient.html +12 -12
- data/doc/rdoc/classes/Pho/Update/Changeset.html +63 -63
- data/doc/rdoc/classes/Pho/Update/ChangesetBuilder.html +24 -24
- data/doc/rdoc/classes/Pho/Update/ChangesetHelper.html +159 -0
- data/doc/rdoc/classes/Pho/Update/Changesets.html +12 -12
- 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 +24 -24
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +13 -1
- data/doc/rdoc/files/lib/pho/command_line_rb.html +1 -1
- data/doc/rdoc/files/lib/pho/sparql_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +183 -182
- data/examples/linkeddata/proxy.rb +74 -0
- data/lib/pho/command_line.rb +1 -1
- data/lib/pho/sparql.rb +9 -0
- data/tests/tc_sparql_helper.rb +10 -1
- metadata +5 -2
@@ -0,0 +1,159 @@
|
|
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::ChangesetHelper</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::ChangesetHelper</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
|
+
Utility methods for making changes to graphs via <a
|
84
|
+
href="Changesets.html">Changesets</a>
|
85
|
+
</p>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div id="method-list">
|
93
|
+
<h3 class="section-bar">Methods</h3>
|
94
|
+
|
95
|
+
<div class="name-list">
|
96
|
+
<a href="#M000041">update_literal</a>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<!-- if includes -->
|
104
|
+
|
105
|
+
<div id="section">
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
<!-- if method_list -->
|
115
|
+
<div id="methods">
|
116
|
+
<h3 class="section-bar">Public Class methods</h3>
|
117
|
+
|
118
|
+
<div id="method-M000041" class="method-detail">
|
119
|
+
<a name="M000041"></a>
|
120
|
+
|
121
|
+
<div class="method-heading">
|
122
|
+
<a href="#M000041" class="method-signature">
|
123
|
+
<span class="method-name">update_literal</span><span class="method-args">(store, subject, predicate, old_value, new_value, old_lang=nil, old_datatype=nil, new_lang=nil, new_datatype=nil, creator_name=nil, change_reason=nil, versioned=false)</span>
|
124
|
+
</a>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div class="method-description">
|
128
|
+
<p><a class="source-toggle" href="#"
|
129
|
+
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000041-source">
|
131
|
+
<pre>
|
132
|
+
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 327</span>
|
133
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">ChangesetHelper</span>.<span class="ruby-identifier">update_literal</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">subject</span>, <span class="ruby-identifier">predicate</span>, <span class="ruby-identifier">old_value</span>, <span class="ruby-identifier">new_value</span>, <span class="ruby-identifier">old_lang</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">old_datatype</span>=<span class="ruby-keyword kw">nil</span>,
|
134
|
+
<span class="ruby-identifier">new_lang</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">new_datatype</span>=<span class="ruby-keyword kw">nil</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>, <span class="ruby-identifier">versioned</span>=<span class="ruby-keyword kw">false</span>)
|
135
|
+
<span class="ruby-identifier">cs</span> = <span class="ruby-constant">Changeset</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">subject</span>, <span class="ruby-identifier">creator_name</span>, <span class="ruby-identifier">change_reason</span>)
|
136
|
+
<span class="ruby-identifier">old</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">old_value</span>, <span class="ruby-identifier">old_lang</span>, <span class="ruby-identifier">old_datatype</span>)
|
137
|
+
<span class="ruby-identifier">new</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">new_value</span>, <span class="ruby-identifier">new_lang</span>, <span class="ruby-identifier">new_datatype</span>)
|
138
|
+
<span class="ruby-identifier">cs</span>.<span class="ruby-identifier">add_removal</span>(<span class="ruby-identifier">old</span>)
|
139
|
+
<span class="ruby-identifier">cs</span>.<span class="ruby-identifier">add_addition</span>(<span class="ruby-identifier">new</span>)
|
140
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">cs</span>.<span class="ruby-identifier">submit</span>(<span class="ruby-identifier">store</span>, <span class="ruby-identifier">versioned</span>)
|
141
|
+
<span class="ruby-keyword kw">end</span>
|
142
|
+
</pre>
|
143
|
+
</div>
|
144
|
+
</div>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
<div id="validator-badges">
|
155
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
</body>
|
159
|
+
</html>
|
@@ -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="#M000053">all_to_rdf</a>
|
98
|
+
<a href="#M000054">submit_all</a>
|
99
99
|
</div>
|
100
100
|
</div>
|
101
101
|
|
@@ -117,11 +117,11 @@ 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-M000053" class="method-detail">
|
121
|
+
<a name="M000053"></a>
|
122
122
|
|
123
123
|
<div class="method-heading">
|
124
|
-
<a href="#
|
124
|
+
<a href="#M000053" 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>
|
@@ -135,8 +135,8 @@ document
|
|
135
135
|
changesets:: an array of changesets
|
136
136
|
</pre>
|
137
137
|
<p><a class="source-toggle" href="#"
|
138
|
-
onclick="toggleCode('
|
139
|
-
<div class="method-source-code" id="
|
138
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
139
|
+
<div class="method-source-code" id="M000053-source">
|
140
140
|
<pre>
|
141
141
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 157</span>
|
142
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>)
|
@@ -151,11 +151,11 @@ document
|
|
151
151
|
</div>
|
152
152
|
</div>
|
153
153
|
|
154
|
-
<div id="method-
|
155
|
-
<a name="
|
154
|
+
<div id="method-M000054" class="method-detail">
|
155
|
+
<a name="M000054"></a>
|
156
156
|
|
157
157
|
<div class="method-heading">
|
158
|
-
<a href="#
|
158
|
+
<a href="#M000054" class="method-signature">
|
159
159
|
<span class="method-name">submit_all</span><span class="method-args">(changesets, store, versioned=false)</span>
|
160
160
|
</a>
|
161
161
|
</div>
|
@@ -177,8 +177,8 @@ to an <a href="../RDF.html">RDF</a>/XML document.
|
|
177
177
|
change_reason and creator_name properties.
|
178
178
|
</pre>
|
179
179
|
<p><a class="source-toggle" href="#"
|
180
|
-
onclick="toggleCode('
|
181
|
-
<div class="method-source-code" id="
|
180
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
181
|
+
<div class="method-source-code" id="M000054-source">
|
182
182
|
<pre>
|
183
183
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 177</span>
|
184
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="#M000043">==</a>
|
92
|
+
<a href="#M000042">new</a>
|
93
|
+
<a href="#M000044">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-M000042" class="method-detail">
|
140
|
+
<a name="M000042"></a>
|
141
141
|
|
142
142
|
<div class="method-heading">
|
143
|
-
<a href="#
|
143
|
+
<a href="#M000042" 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('M000042-source');return false;">[Source]</a></p>
|
162
|
+
<div class="method-source-code" id="M000042-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-M000043" class="method-detail">
|
181
|
+
<a name="M000043"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="#
|
184
|
+
<a href="#M000043" 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('M000043-source');return false;">[Source]</a></p>
|
192
|
+
<div class="method-source-code" id="M000043-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-M000044" class="method-detail">
|
213
|
+
<a name="M000044"></a>
|
214
214
|
|
215
215
|
<div class="method-heading">
|
216
|
-
<a href="#
|
216
|
+
<a href="#M000044" 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('M000044-source');return false;">[Source]</a></p>
|
224
|
+
<div class="method-source-code" id="M000044-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="#M000050">==</a>
|
92
|
+
<a href="#M000049">new</a>
|
93
|
+
<a href="#M000052">write_object</a>
|
94
|
+
<a href="#M000051">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-M000049" class="method-detail">
|
117
|
+
<a name="M000049"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000049" 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('M000049-source');return false;">[Source]</a></p>
|
136
|
+
<div class="method-source-code" id="M000049-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-M000050" class="method-detail">
|
150
|
+
<a name="M000050"></a>
|
151
151
|
|
152
152
|
<div class="method-heading">
|
153
|
-
<a href="#
|
153
|
+
<a href="#M000050" 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('M000050-source');return false;">[Source]</a></p>
|
161
|
+
<div class="method-source-code" id="M000050-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-M000052" class="method-detail">
|
180
|
+
<a name="M000052"></a>
|
181
181
|
|
182
182
|
<div class="method-heading">
|
183
|
-
<a href="#
|
183
|
+
<a href="#M000052" 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('M000052-source');return false;">[Source]</a></p>
|
191
|
+
<div class="method-source-code" id="M000052-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-M000051" class="method-detail">
|
203
|
+
<a name="M000051"></a>
|
204
204
|
|
205
205
|
<div class="method-heading">
|
206
|
-
<a href="#
|
206
|
+
<a href="#M000051" 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('M000051-source');return false;">[Source]</a></p>
|
214
|
+
<div class="method-source-code" id="M000051-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>()
|
@@ -94,10 +94,10 @@ href="Changeset.html">Changeset</a>
|
|
94
94
|
<h3 class="section-bar">Methods</h3>
|
95
95
|
|
96
96
|
<div class="name-list">
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
97
|
+
<a href="#M000055">create_literal</a>
|
98
|
+
<a href="#M000056">create_resource</a>
|
99
|
+
<a href="#M000058">new</a>
|
100
|
+
<a href="#M000057">to_rdf</a>
|
101
101
|
</div>
|
102
102
|
</div>
|
103
103
|
|
@@ -151,11 +151,11 @@ URI of subject
|
|
151
151
|
<div id="methods">
|
152
152
|
<h3 class="section-bar">Public Class methods</h3>
|
153
153
|
|
154
|
-
<div id="method-
|
155
|
-
<a name="
|
154
|
+
<div id="method-M000055" class="method-detail">
|
155
|
+
<a name="M000055"></a>
|
156
156
|
|
157
157
|
<div class="method-heading">
|
158
|
-
<a href="#
|
158
|
+
<a href="#M000055" class="method-signature">
|
159
159
|
<span class="method-name">create_literal</span><span class="method-args">(subject, predicate, object, lang=nil, datatype=nil)</span>
|
160
160
|
</a>
|
161
161
|
</div>
|
@@ -173,8 +173,8 @@ have one of lang or datatype but not both
|
|
173
173
|
datatype:: datatype for literal
|
174
174
|
</pre>
|
175
175
|
<p><a class="source-toggle" href="#"
|
176
|
-
onclick="toggleCode('
|
177
|
-
<div class="method-source-code" id="
|
176
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
177
|
+
<div class="method-source-code" id="M000055-source">
|
178
178
|
<pre>
|
179
179
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 29</span>
|
180
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>)
|
@@ -185,11 +185,11 @@ have one of lang or datatype but not both
|
|
185
185
|
</div>
|
186
186
|
</div>
|
187
187
|
|
188
|
-
<div id="method-
|
189
|
-
<a name="
|
188
|
+
<div id="method-M000056" class="method-detail">
|
189
|
+
<a name="M000056"></a>
|
190
190
|
|
191
191
|
<div class="method-heading">
|
192
|
-
<a href="#
|
192
|
+
<a href="#M000056" class="method-signature">
|
193
193
|
<span class="method-name">create_resource</span><span class="method-args">(subject, predicate, object)</span>
|
194
194
|
</a>
|
195
195
|
</div>
|
@@ -204,8 +204,8 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
204
204
|
object:: resource uri
|
205
205
|
</pre>
|
206
206
|
<p><a class="source-toggle" href="#"
|
207
|
-
onclick="toggleCode('
|
208
|
-
<div class="method-source-code" id="
|
207
|
+
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
208
|
+
<div class="method-source-code" id="M000056-source">
|
209
209
|
<pre>
|
210
210
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 38</span>
|
211
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>)
|
@@ -218,11 +218,11 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
218
218
|
|
219
219
|
<h3 class="section-bar">Protected Class methods</h3>
|
220
220
|
|
221
|
-
<div id="method-
|
222
|
-
<a name="
|
221
|
+
<div id="method-M000058" class="method-detail">
|
222
|
+
<a name="M000058"></a>
|
223
223
|
|
224
224
|
<div class="method-heading">
|
225
|
-
<a href="#
|
225
|
+
<a href="#M000058" class="method-signature">
|
226
226
|
<span class="method-name">new</span><span class="method-args">(subject, predicate, object)</span>
|
227
227
|
</a>
|
228
228
|
</div>
|
@@ -240,8 +240,8 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
240
240
|
</td></tr>
|
241
241
|
</table>
|
242
242
|
<p><a class="source-toggle" href="#"
|
243
|
-
onclick="toggleCode('
|
244
|
-
<div class="method-source-code" id="
|
243
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
244
|
+
<div class="method-source-code" id="M000058-source">
|
245
245
|
<pre>
|
246
246
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 61</span>
|
247
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>)
|
@@ -256,11 +256,11 @@ Create a <a href="Statement.html">Statement</a> referring to a resource
|
|
256
256
|
|
257
257
|
<h3 class="section-bar">Public Instance methods</h3>
|
258
258
|
|
259
|
-
<div id="method-
|
260
|
-
<a name="
|
259
|
+
<div id="method-M000057" class="method-detail">
|
260
|
+
<a name="M000057"></a>
|
261
261
|
|
262
262
|
<div class="method-heading">
|
263
|
-
<a href="#
|
263
|
+
<a href="#M000057" class="method-signature">
|
264
264
|
<span class="method-name">to_rdf</span><span class="method-args">()</span>
|
265
265
|
</a>
|
266
266
|
</div>
|
@@ -271,8 +271,8 @@ Create an <a href="../RDF.html">RDF</a>/XML fragment describing this <a
|
|
271
271
|
href="Statement.html">Statement</a>
|
272
272
|
</p>
|
273
273
|
<p><a class="source-toggle" href="#"
|
274
|
-
onclick="toggleCode('
|
275
|
-
<div class="method-source-code" id="
|
274
|
+
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
275
|
+
<div class="method-source-code" id="M000057-source">
|
276
276
|
<pre>
|
277
277
|
<span class="ruby-comment cmt"># File lib/pho/changeset.rb, line 43</span>
|
278
278
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_rdf</span>()
|