-
Notifications
You must be signed in to change notification settings - Fork 4
/
RDFSink.html
executable file
·393 lines (314 loc) · 27.4 KB
/
RDFSink.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module RDFSink</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>RDFSink</strong></big></big> (version $Id: RDFSink.html,v 1.22 2007-06-27 17:58:39 syosi Exp $)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/yosi/CVSROOT/WWW/2000/10/swap/RDFSink.py">/Users/yosi/CVSROOT/WWW/2000/10/swap/RDFSink.py</a></font></td></tr></table>
<p><tt><a href="#RDFSink">RDFSink</a> -- RDF parser/serializer/store interface<br>
<br>
This is a simple API for a push-stream of RDF data. It doesn't use<br>
a particular classof obejcts, but just uses python pairs.<br>
It is kinda crude but it does allow for example data to be squirted efficiently <br>
between modules which use different python classes for RDF.<br>
<br>
HISTORY<br>
<br>
This module was factored out of notation3.py<br>
<br>
REFERENCES<br>
Python Style Guide<br>
Author: Guido van Rossum<br>
<a href="http://www.python.org/doc/essays/styleguide.html">http://www.python.org/doc/essays/styleguide.html</a></tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="uripath.html">uripath</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="RDFSink.html#RDFSink">RDFSink</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="RDFSink.html#RDFStructuredOutput">RDFStructuredOutput</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="RDFSink.html#TracingRDFSink">TracingRDFSink</a>
</font></dt><dt><font face="helvetica, arial"><a href="exceptions.html#ValueError">exceptions.ValueError</a>(<a href="exceptions.html#StandardError">exceptions.StandardError</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="RDFSink.html#URISyntaxError">URISyntaxError</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="RDFSink">class <strong>RDFSink</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>interface to connect modules in RDF processing.<br>
OBSOLETE<br>
<br>
This is a superclass for other RDF processors which accept RDF events<br>
or indeed Swell events. It is superceded, effectively, by the class Formula,<br>
as a sink of data and a soiurce of new symbols.<br>
<br>
Keeps track of prefixes.<br>
<br>
This interface has the advantage that it does n ot have any dependencies<br>
on object types, it is really one-way (easily serialized as no return values).<br>
It has the disadvantages that<br>
- It uses the pseudoproperties log:forSome and log:forAll to<br>
make variables, which is a bit of a kludge.<br>
- It may involve on the receiver side the same thing being interned<br>
many times, which wastes time searching hash tables.<br>
The superclass handles common functions such as craeting new arbitray<br>
identifiers<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="RDFSink-__init__"><strong>__init__</strong></a>(self, genPrefix<font color="#909090">=None</font>)</dt><dd><tt>If you give it a URI prefix to use for generated IDs it<br>
will use one; otherwise, it will use the name of an imaginary temporary file<br>
in the current directory.</tt></dd></dl>
<dl><dt><a name="RDFSink-bind"><strong>bind</strong></a>(self, prefix, uri)</dt><dd><tt>Pass on a binding hint for later use in output<br>
<br>
This really is just a hint. The parser calls bind to pass on<br>
the prefix which it came across, as this is a useful hint for<br>
a human readable prefix for output of the same<br>
namespace. Otherwise, output processors will have to invent or<br>
avoid useing namespaces, which will look ugly</tt></dd></dl>
<dl><dt><a name="RDFSink-checkNewId"><strong>checkNewId</strong></a>(self, uri)</dt><dd><tt>The store can override this to raise an exception if the<br>
id is not in fact new. This is useful because it is usfeul<br>
to generate IDs with useful diagnostic ways but this lays them<br>
open to possibly clashing in pathalogical cases.</tt></dd></dl>
<dl><dt><a name="RDFSink-countNamespace"><strong>countNamespace</strong></a>(self, namesp)</dt><dd><tt>On output, count how many times each namespace is used</tt></dd></dl>
<dl><dt><a name="RDFSink-endDoc"><strong>endDoc</strong></a>(self, rootFormulaPair)</dt><dd><tt>End a document<br>
<br>
Call this once only at the end of parsing so that the receiver can wrap<br>
things up, oprimize, intern, index and so on. The pair given is the (type, value)<br>
identifier of the root formula of the thing parsed.</tt></dd></dl>
<dl><dt><a name="RDFSink-genId"><strong>genId</strong></a>(self)</dt></dl>
<dl><dt><a name="RDFSink-intern"><strong>intern</strong></a>(self, something)</dt></dl>
<dl><dt><a name="RDFSink-makeComment"><strong>makeComment</strong></a>(self, str)</dt><dd><tt>This passes on a comment line which of course has no semantics.<br>
<br>
This is only useful in direct piping of parsers to output, to preserve<br>
comments in the original file.</tt></dd></dl>
<dl><dt><a name="RDFSink-makeStatement"><strong>makeStatement</strong></a>(self, tuple, why<font color="#909090">=None</font>)</dt><dd><tt>add a statement to a stream/store.<br>
<br>
raises <a href="#URISyntaxError">URISyntaxError</a> on bad URIs<br>
tuple is a quad (context, predicate, subject, object) of things generated by calls to newLiteral etc<br>
why is reason for the statement.</tt></dd></dl>
<dl><dt><a name="RDFSink-namespaceCounts"><strong>namespaceCounts</strong></a>(self)</dt></dl>
<dl><dt><a name="RDFSink-newBlankNode"><strong>newBlankNode</strong></a>(self, context, uri<font color="#909090">=None</font>, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFSink-newExistential"><strong>newExistential</strong></a>(self, context, uri<font color="#909090">=None</font>, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFSink-newFormula"><strong>newFormula</strong></a>(self, uri<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFSink-newList"><strong>newList</strong></a>(self, l, context)</dt></dl>
<dl><dt><a name="RDFSink-newLiteral"><strong>newLiteral</strong></a>(self, str, dt<font color="#909090">=None</font>, lang<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFSink-newSymbol"><strong>newSymbol</strong></a>(self, uri)</dt></dl>
<dl><dt><a name="RDFSink-newUniversal"><strong>newUniversal</strong></a>(self, context, uri<font color="#909090">=None</font>, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFSink-newXMLLiteral"><strong>newXMLLiteral</strong></a>(self, doc)</dt></dl>
<dl><dt><a name="RDFSink-reopen"><strong>reopen</strong></a>(self)</dt><dd><tt>Un-End a document<br>
<br>
If you have added stuff to a document, thought you were done, and<br>
then want to add more, call this to get back into the sate that makeSatement<br>
is again acceptable. Remember to end the document again when done.</tt></dd></dl>
<dl><dt><a name="RDFSink-setDefaultNamespace"><strong>setDefaultNamespace</strong></a>(self, uri)</dt><dd><tt>Pass on a binding hint for later use in output<br>
<br>
This really is just a hint. The parser calls this to pass on<br>
the default namespace which it came across, as this is a<br>
useful hint for a human readable prefix for output of the same<br>
namespace. Otherwise, output processors will have to invent or<br>
avoid useing namespaces, which will look ugly.</tt></dd></dl>
<dl><dt><a name="RDFSink-setGenPrefix"><strong>setGenPrefix</strong></a>(self, genPrefix)</dt></dl>
<dl><dt><a name="RDFSink-startDoc"><strong>startDoc</strong></a>(self)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="RDFStructuredOutput">class <strong>RDFStructuredOutput</strong></a>(<a href="RDFSink.html#RDFSink">RDFSink</a>)</font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="RDFStructuredOutput-endAnonymous"><strong>endAnonymous</strong></a>(self, subject, verb)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-endAnonymousNode"><strong>endAnonymousNode</strong></a>(self, endAnonymousNode)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-endFormulaObject"><strong>endFormulaObject</strong></a>(self, pred, subj)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-endFormulaSubject"><strong>endFormulaSubject</strong></a>(self, subj)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-startAnonymous"><strong>startAnonymous</strong></a>(self, triple, isList<font color="#909090">=0</font>)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-startAnonymousNode"><strong>startAnonymousNode</strong></a>(self, subj)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-startFormulaObject"><strong>startFormulaObject</strong></a>(self, triple)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-startFormulaSubject"><strong>startFormulaSubject</strong></a>(self, context)</dt></dl>
<hr>
Methods inherited from <a href="RDFSink.html#RDFSink">RDFSink</a>:<br>
<dl><dt><a name="RDFStructuredOutput-__init__"><strong>__init__</strong></a>(self, genPrefix<font color="#909090">=None</font>)</dt><dd><tt>If you give it a URI prefix to use for generated IDs it<br>
will use one; otherwise, it will use the name of an imaginary temporary file<br>
in the current directory.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-bind"><strong>bind</strong></a>(self, prefix, uri)</dt><dd><tt>Pass on a binding hint for later use in output<br>
<br>
This really is just a hint. The parser calls bind to pass on<br>
the prefix which it came across, as this is a useful hint for<br>
a human readable prefix for output of the same<br>
namespace. Otherwise, output processors will have to invent or<br>
avoid useing namespaces, which will look ugly</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-checkNewId"><strong>checkNewId</strong></a>(self, uri)</dt><dd><tt>The store can override this to raise an exception if the<br>
id is not in fact new. This is useful because it is usfeul<br>
to generate IDs with useful diagnostic ways but this lays them<br>
open to possibly clashing in pathalogical cases.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-countNamespace"><strong>countNamespace</strong></a>(self, namesp)</dt><dd><tt>On output, count how many times each namespace is used</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-endDoc"><strong>endDoc</strong></a>(self, rootFormulaPair)</dt><dd><tt>End a document<br>
<br>
Call this once only at the end of parsing so that the receiver can wrap<br>
things up, oprimize, intern, index and so on. The pair given is the (type, value)<br>
identifier of the root formula of the thing parsed.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-genId"><strong>genId</strong></a>(self)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-intern"><strong>intern</strong></a>(self, something)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-makeComment"><strong>makeComment</strong></a>(self, str)</dt><dd><tt>This passes on a comment line which of course has no semantics.<br>
<br>
This is only useful in direct piping of parsers to output, to preserve<br>
comments in the original file.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-makeStatement"><strong>makeStatement</strong></a>(self, tuple, why<font color="#909090">=None</font>)</dt><dd><tt>add a statement to a stream/store.<br>
<br>
raises <a href="#URISyntaxError">URISyntaxError</a> on bad URIs<br>
tuple is a quad (context, predicate, subject, object) of things generated by calls to newLiteral etc<br>
why is reason for the statement.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-namespaceCounts"><strong>namespaceCounts</strong></a>(self)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newBlankNode"><strong>newBlankNode</strong></a>(self, context, uri<font color="#909090">=None</font>, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newExistential"><strong>newExistential</strong></a>(self, context, uri<font color="#909090">=None</font>, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newFormula"><strong>newFormula</strong></a>(self, uri<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newList"><strong>newList</strong></a>(self, l, context)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newLiteral"><strong>newLiteral</strong></a>(self, str, dt<font color="#909090">=None</font>, lang<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newSymbol"><strong>newSymbol</strong></a>(self, uri)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newUniversal"><strong>newUniversal</strong></a>(self, context, uri<font color="#909090">=None</font>, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-newXMLLiteral"><strong>newXMLLiteral</strong></a>(self, doc)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-reopen"><strong>reopen</strong></a>(self)</dt><dd><tt>Un-End a document<br>
<br>
If you have added stuff to a document, thought you were done, and<br>
then want to add more, call this to get back into the sate that makeSatement<br>
is again acceptable. Remember to end the document again when done.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-setDefaultNamespace"><strong>setDefaultNamespace</strong></a>(self, uri)</dt><dd><tt>Pass on a binding hint for later use in output<br>
<br>
This really is just a hint. The parser calls this to pass on<br>
the default namespace which it came across, as this is a<br>
useful hint for a human readable prefix for output of the same<br>
namespace. Otherwise, output processors will have to invent or<br>
avoid useing namespaces, which will look ugly.</tt></dd></dl>
<dl><dt><a name="RDFStructuredOutput-setGenPrefix"><strong>setGenPrefix</strong></a>(self, genPrefix)</dt></dl>
<dl><dt><a name="RDFStructuredOutput-startDoc"><strong>startDoc</strong></a>(self)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="TracingRDFSink">class <strong>TracingRDFSink</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>An implementation of the <a href="#RDFSink">RDFSink</a> interface which helps me<br>
understand it, especially how it gets used by parsers vs. by an<br>
RDF store. [ -sandro ]<br>
<br>
Set .backing to be some other <a href="#RDFSink">RDFSink</a> if you want to get proper<br>
results while tracing.<br>
<br>
Try:<br>
<br>
bash-2.04$ python cwm.py test/rules12.n3 --language=trace<br>
bash-2.04$ python cwm.py --pipe test/rules12.n3 --language=trace<br>
bash-2.04$ python cwm.py test/rules12.n3 --bySubject --language=trace<br>
<br>
... and see the different outputs<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="TracingRDFSink-__init__"><strong>__init__</strong></a>(self, outURI, base<font color="#909090">=None</font>, flags<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="TracingRDFSink-bind"><strong>bind</strong></a>(self, prefix, uri)</dt></dl>
<dl><dt><a name="TracingRDFSink-endDoc"><strong>endDoc</strong></a>(self, rootFormulaPair<font color="#909090">='<<strangely omitted>>'</font>)</dt></dl>
<dl><dt><a name="TracingRDFSink-endFormulaObject"><strong>endFormulaObject</strong></a>(self, pred, subj)</dt></dl>
<dl><dt><a name="TracingRDFSink-endFormulaSubject"><strong>endFormulaSubject</strong></a>(self, subj)</dt></dl>
<dl><dt><a name="TracingRDFSink-makeComment"><strong>makeComment</strong></a>(self, comment)</dt></dl>
<dl><dt><a name="TracingRDFSink-makeStatement"><strong>makeStatement</strong></a>(self, tuple, why<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="TracingRDFSink-newFormula"><strong>newFormula</strong></a>(self, uri<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="TracingRDFSink-newLiteral"><strong>newLiteral</strong></a>(self, str, dt<font color="#909090">=None</font>, lang<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="TracingRDFSink-newSymbol"><strong>newSymbol</strong></a>(self, uri)</dt></dl>
<dl><dt><a name="TracingRDFSink-setDefaultNamespace"><strong>setDefaultNamespace</strong></a>(self, ns)</dt></dl>
<dl><dt><a name="TracingRDFSink-startDoc"><strong>startDoc</strong></a>(self)</dt></dl>
<dl><dt><a name="TracingRDFSink-startFormulaObject"><strong>startFormulaObject</strong></a>(self, triple)</dt></dl>
<dl><dt><a name="TracingRDFSink-startFormulaSubject"><strong>startFormulaSubject</strong></a>(self, context)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="URISyntaxError">class <strong>URISyntaxError</strong></a>(<a href="exceptions.html#ValueError">exceptions.ValueError</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A parameter is passed to a routine that requires a URI reference<br> </tt></td></tr>
<tr><td> </td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="RDFSink.html#URISyntaxError">URISyntaxError</a></dd>
<dd><a href="exceptions.html#ValueError">exceptions.ValueError</a></dd>
<dd><a href="exceptions.html#StandardError">exceptions.StandardError</a></dd>
<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd>
</dl>
<hr>
Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="URISyntaxError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>
<dl><dt><a name="URISyntaxError-__init__"><strong>__init__</strong></a>(...)</dt></dl>
<dl><dt><a name="URISyntaxError-__str__"><strong>__str__</strong></a>(...)</dt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-getpid"><strong>getpid</strong></a>(...)</dt><dd><tt><a href="#-getpid">getpid</a>() -> pid<br>
<br>
Return the current process id</tt></dd></dl>
<dl><dt><a name="-runNamespace"><strong>runNamespace</strong></a>()</dt><dd><tt>Return a URI suitable as a namespace for run-local objects</tt></dd></dl>
<dl><dt><a name="-time"><strong>time</strong></a>(...)</dt><dd><tt><a href="#-time">time</a>() -> floating point number<br>
<br>
Return the current time in seconds since the Epoch.<br>
Fractions of a second may be present if the system clock provides them.</tt></dd></dl>
<dl><dt><a name="-uniqueURI"><strong>uniqueURI</strong></a>()</dt><dd><tt>A unique URI</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>ALL4</strong> = (0, 1, 2, 3)<br>
<strong>ANONYMOUS</strong> = 3<br>
<strong>CONTEXT</strong> = 0<br>
<strong>DAML_sameAs_URI</strong> = 'http://www.w3.org/2002/07/owl#sameAs'<br>
<strong>FORMULA</strong> = 1<br>
<strong>LITERAL</strong> = 2<br>
<strong>LITERAL_DT</strong> = 21<br>
<strong>LITERAL_LANG</strong> = 22<br>
<strong>List_NS</strong> = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'<br>
<strong>Logic_NS</strong> = 'http://www.w3.org/2000/10/swap/log#'<br>
<strong>N3_Empty</strong> = (0, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Empty')<br>
<strong>N3_List</strong> = (0, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#List')<br>
<strong>N3_first</strong> = (0, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#first')<br>
<strong>N3_li</strong> = (0, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#li')<br>
<strong>N3_nil</strong> = (0, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil')<br>
<strong>N3_rest</strong> = (0, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#rest')<br>
<strong>NODE_MERGE_URI</strong> = 'http://www.w3.org/2000/10/swap/log#is'<br>
<strong>OBJ</strong> = 3<br>
<strong>OWL_NS</strong> = 'http://www.w3.org/2002/07/owl#'<br>
<strong>PARTS</strong> = (1, 2, 3)<br>
<strong>PRED</strong> = 1<br>
<strong>RDF_NS_URI</strong> = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'<br>
<strong>RDF_spec</strong> = 'http://www.w3.org/TR/REC-rdf-syntax/'<br>
<strong>RDF_type_URI</strong> = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'<br>
<strong>SUBJ</strong> = 2<br>
<strong>SYMBOL</strong> = 0<br>
<strong>XMLLITERAL</strong> = 25<br>
<strong>__version__</strong> = '$Id: RDFSink.html,v 1.22 2007-06-27 17:58:39 syosi Exp $'<br>
<strong>environ</strong> = {'XDG_DATA_HOME': '/Users/yosi/.local/share', 'T...P', 'SGML_CATALOG_FILES': '/sw/etc/sgml/catalog'}<br>
<strong>forAllSym</strong> = 'http://www.w3.org/2000/10/swap/log#forAll'<br>
<strong>forSomeSym</strong> = 'http://www.w3.org/2000/10/swap/log#forSome'<br>
<strong>nextu</strong> = 0<br>
<strong>parsesTo_URI</strong> = 'http://www.w3.org/2000/10/swap/log#parsesTo'<br>
<strong>runNamespaceValue</strong> = None</td></tr></table>
</body></html>