activerdf_sparql 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,236 +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: SparqlResultParser</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">SparqlResultParser</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/activerdf_sparql/sparql_result_parser_rb.html">
59
- lib/activerdf_sparql/sparql_result_parser.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
- Parser for SPARQL XML result set.
84
- </p>
85
-
86
- </div>
87
-
88
-
89
- </div>
90
-
91
- <div id="method-list">
92
- <h3 class="section-bar">Methods</h3>
93
-
94
- <div class="name-list">
95
- <a href="#M000009">create_node</a>&nbsp;&nbsp;
96
- <a href="#M000010">method_missing</a>&nbsp;&nbsp;
97
- <a href="#M000005">new</a>&nbsp;&nbsp;
98
- <a href="#M000007">tag_end</a>&nbsp;&nbsp;
99
- <a href="#M000006">tag_start</a>&nbsp;&nbsp;
100
- <a href="#M000008">text</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">result</td>
122
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
123
- <td class="context-item-desc"></td>
124
- </tr>
125
- </table>
126
- </div>
127
- </div>
128
-
129
-
130
-
131
- <!-- if method_list -->
132
- <div id="methods">
133
- <h3 class="section-bar">Public Class methods</h3>
134
-
135
- <div id="method-M000005" class="method-detail">
136
- <a name="M000005"></a>
137
-
138
- <div class="method-heading">
139
- <a href="SparqlResultParser.src/M000005.html" target="Code" class="method-signature"
140
- onclick="popupCode('SparqlResultParser.src/M000005.html');return false;">
141
- <span class="method-name">new</span><span class="method-args">()</span>
142
- </a>
143
- </div>
144
-
145
- <div class="method-description">
146
- </div>
147
- </div>
148
-
149
- <h3 class="section-bar">Public Instance methods</h3>
150
-
151
- <div id="method-M000009" class="method-detail">
152
- <a name="M000009"></a>
153
-
154
- <div class="method-heading">
155
- <a href="SparqlResultParser.src/M000009.html" target="Code" class="method-signature"
156
- onclick="popupCode('SparqlResultParser.src/M000009.html');return false;">
157
- <span class="method-name">create_node</span><span class="method-args">(type, value)</span>
158
- </a>
159
- </div>
160
-
161
- <div class="method-description">
162
- <p>
163
- create ruby objects for each RDF node
164
- </p>
165
- </div>
166
- </div>
167
-
168
- <div id="method-M000010" class="method-detail">
169
- <a name="M000010"></a>
170
-
171
- <div class="method-heading">
172
- <a href="SparqlResultParser.src/M000010.html" target="Code" class="method-signature"
173
- onclick="popupCode('SparqlResultParser.src/M000010.html');return false;">
174
- <span class="method-name">method_missing</span><span class="method-args">(*args)</span>
175
- </a>
176
- </div>
177
-
178
- <div class="method-description">
179
- </div>
180
- </div>
181
-
182
- <div id="method-M000007" class="method-detail">
183
- <a name="M000007"></a>
184
-
185
- <div class="method-heading">
186
- <a href="SparqlResultParser.src/M000007.html" target="Code" class="method-signature"
187
- onclick="popupCode('SparqlResultParser.src/M000007.html');return false;">
188
- <span class="method-name">tag_end</span><span class="method-args">(name)</span>
189
- </a>
190
- </div>
191
-
192
- <div class="method-description">
193
- </div>
194
- </div>
195
-
196
- <div id="method-M000006" class="method-detail">
197
- <a name="M000006"></a>
198
-
199
- <div class="method-heading">
200
- <a href="SparqlResultParser.src/M000006.html" target="Code" class="method-signature"
201
- onclick="popupCode('SparqlResultParser.src/M000006.html');return false;">
202
- <span class="method-name">tag_start</span><span class="method-args">(name, attrs)</span>
203
- </a>
204
- </div>
205
-
206
- <div class="method-description">
207
- </div>
208
- </div>
209
-
210
- <div id="method-M000008" class="method-detail">
211
- <a name="M000008"></a>
212
-
213
- <div class="method-heading">
214
- <a href="SparqlResultParser.src/M000008.html" target="Code" class="method-signature"
215
- onclick="popupCode('SparqlResultParser.src/M000008.html');return false;">
216
- <span class="method-name">text</span><span class="method-args">(text)</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- </div>
222
- </div>
223
-
224
-
225
- </div>
226
-
227
-
228
- </div>
229
-
230
-
231
- <div id="validator-badges">
232
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
233
- </div>
234
-
235
- </body>
236
- </html>
@@ -1,20 +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>
7
- <head>
8
- <title>new (SparqlResultParser)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql_result_parser.rb, line 5</span>
14
- 5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
- 6: <span class="ruby-ivar">@result</span> = []
16
- 7: <span class="ruby-ivar">@vars</span> = []
17
- 8: <span class="ruby-ivar">@current_type</span> = <span class="ruby-keyword kw">nil</span>
18
- 9: <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,27 +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>
7
- <head>
8
- <title>tag_start (SparqlResultParser)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql_result_parser.rb, line 11</span>
14
- 11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag_start</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">attrs</span>)
15
- 12: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">name</span>
16
- 13: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'variable'</span>
17
- 14: <span class="ruby-ivar">@vars</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">attrs</span>[<span class="ruby-value str">'name'</span>]
18
- 15: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'result'</span>
19
- 16: <span class="ruby-ivar">@current_result</span> = []
20
- 17: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'binding'</span>
21
- 18: <span class="ruby-ivar">@index</span> = <span class="ruby-ivar">@vars</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">attrs</span>[<span class="ruby-value str">'name'</span>])
22
- 19: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'bnode'</span>, <span class="ruby-value str">'literal'</span>, <span class="ruby-value str">'typed-literal'</span>, <span class="ruby-value str">'uri'</span>
23
- 20: <span class="ruby-ivar">@current_type</span> = <span class="ruby-identifier">name</span>
24
- 21: <span class="ruby-keyword kw">end</span>
25
- 22: <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,23 +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>
7
- <head>
8
- <title>tag_end (SparqlResultParser)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql_result_parser.rb, line 24</span>
14
- 24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag_end</span>(<span class="ruby-identifier">name</span>)
15
- 25: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;result&quot;</span>
16
- 26: <span class="ruby-ivar">@result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@current_result</span>
17
- 27: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'bnode'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'literal'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'typed-literal'</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'uri'</span>
18
- 28: <span class="ruby-ivar">@current_type</span> = <span class="ruby-keyword kw">nil</span>
19
- 29: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;sparql&quot;</span>
20
- 30: <span class="ruby-keyword kw">end</span>
21
- 31: <span class="ruby-keyword kw">end</span></pre>
22
- </body>
23
- </html>
@@ -1,20 +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>
7
- <head>
8
- <title>text (SparqlResultParser)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql_result_parser.rb, line 33</span>
14
- 33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">text</span>)
15
- 34: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@current_type</span>.<span class="ruby-identifier">nil?</span>
16
- 35: <span class="ruby-ivar">@current_result</span>[<span class="ruby-ivar">@index</span>] = <span class="ruby-identifier">create_node</span>(<span class="ruby-ivar">@current_type</span>, <span class="ruby-identifier">text</span>)
17
- 36: <span class="ruby-keyword kw">end</span>
18
- 37: <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,25 +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>
7
- <head>
8
- <title>create_node (SparqlResultParser)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql_result_parser.rb, line 40</span>
14
- 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_node</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">value</span>)
15
- 41: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>
16
- 42: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'uri'</span>
17
- 43: <span class="ruby-constant">RDFS</span><span class="ruby-operator">::</span><span class="ruby-constant">Resource</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">value</span>)
18
- 44: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'bnode'</span>
19
- 45: <span class="ruby-keyword kw">nil</span>
20
- 46: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'literal'</span>,<span class="ruby-value str">'typed-literal'</span>
21
- 47: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_s</span>
22
- 48: <span class="ruby-keyword kw">end</span>
23
- 49: <span class="ruby-keyword kw">end</span></pre>
24
- </body>
25
- </html>
@@ -1,17 +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>
7
- <head>
8
- <title>method_missing (SparqlResultParser)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre> <span class="ruby-comment cmt"># File lib/activerdf_sparql/sparql_result_parser.rb, line 51</span>
14
- 51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span> (<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
15
- 52: <span class="ruby-keyword kw">end</span></pre>
16
- </body>
17
- </html>
data/doc/rdoc/created.rid DELETED
@@ -1 +0,0 @@
1
- Thu, 09 Aug 2007 15:13:42 +0100