~ubuntu-branches/debian/sid/redland-bindings/sid

« back to all changes in this revision

Viewing changes to docs/rdoc/Redland/World.html

  • Committer: Package Import Robot
  • Author(s): Dave Beckett
  • Date: 2013-01-22 16:03:44 UTC
  • mfrom: (0.1.10)
  • Revision ID: package-import@ubuntu.com-20130122160344-vxrnfl0xynfzbze7
Tags: 1.0.16.1-1
* New upstream release
* Add dpkg-buildflags to configure for hardening

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<head>
 
6
<title>Redland RDF Language Bindings - Ruby RDoc - Class: Redland::World</title>
 
7
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
 
8
<script src="../js/jquery.js" type="text/javascript" charset="utf-8">
 
9
</script>
 
10
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8">
 
11
</script>
 
12
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8">
 
13
</script>
 
14
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8">
 
15
</script>
 
16
</head>
 
17
<body id="top" class="class">
 
18
<div id="metadata">
 
19
<div id="home-metadata">
 
20
<div id="home-section" class="section">
 
21
<h3 class="section-header"><a href="../index.html">Home</a> <a href="../index.html#classes">Classes</a> <a href="../index.html#methods">Methods</a></h3>
 
22
</div>
 
23
</div>
 
24
<div id="file-metadata">
 
25
<div id="file-list-section" class="section">
 
26
<h3 class="section-header">In Files</h3>
 
27
<div class="section-body">
 
28
<ul>
 
29
<li><a href="../rdf/redland_rb.html?TB_iframe=true&amp;height=550&amp;width=785" class="thickbox" title="rdf/redland.rb">rdf/redland.rb</a></li>
 
30
</ul>
 
31
</div>
 
32
</div>
 
33
</div>
 
34
<div id="class-metadata"><!-- Parent Class -->
 
35
<div id="parent-class-section" class="section">
 
36
<h3 class="section-header">Parent</h3>
 
37
<p class="link">Object</p>
 
38
</div>
 
39
<!-- Method Quickref -->
 
40
<div id="method-list-section" class="section">
 
41
<h3 class="section-header">Methods</h3>
 
42
<ul class="link-list">
 
43
<li><a href="#method-c-create_finalizer">::create_finalizer</a></li>
 
44
<li><a href="#method-c-new">::new</a></li>
 
45
</ul>
 
46
</div>
 
47
</div>
 
48
<div id="project-metadata">
 
49
<div id="fileindex-section" class="section project-section">
 
50
<h3 class="section-header">Files</h3>
 
51
<ul>
 
52
<li class="file"><a href="../Makefile.html">Makefile</a></li>
 
53
<li class="file"><a href="../rdf/Makefile.html">Makefile</a></li>
 
54
<li class="file"><a href="../rdf/redland/Makefile.html">Makefile</a></li>
 
55
<li class="file"><a href="../rdf/redland/schemas/Makefile.html">Makefile</a></li>
 
56
</ul>
 
57
</div>
 
58
<div id="classindex-section" class="section project-section">
 
59
<h3 class="section-header">Class/Module Index <span class="search-toggle"><img src="../images/find.png" height="16" width="16" alt="[+]" title="show/hide quicksearch" /></span></h3>
 
60
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
 
61
<fieldset><legend>Quicksearch</legend> <input type="text" name="quicksearch" value="" class="quicksearch-field" /></fieldset>
 
62
</form>
 
63
<ul class="link-list">
 
64
<li><a href="../Redland.html">Redland</a></li>
 
65
<li><a href="../Redland/BNode.html">Redland::BNode</a></li>
 
66
<li><a href="../Redland/ContextParser.html">Redland::ContextParser</a></li>
 
67
<li><a href="../Redland/FileStore.html">Redland::FileStore</a></li>
 
68
<li><a href="../Redland/HashOpen.html">Redland::HashOpen</a></li>
 
69
<li><a href="../Redland/HashStore.html">Redland::HashStore</a></li>
 
70
<li><a href="../Redland/Literal.html">Redland::Literal</a></li>
 
71
<li><a href="../Redland/MemoryStore.html">Redland::MemoryStore</a></li>
 
72
<li><a href="../Redland/MergedModel.html">Redland::MergedModel</a></li>
 
73
<li><a href="../Redland/Model.html">Redland::Model</a></li>
 
74
<li><a href="../Redland/Namespace.html">Redland::Namespace</a></li>
 
75
<li><a href="../Redland/Node.html">Redland::Node</a></li>
 
76
<li><a href="../Redland/NodeIterator.html">Redland::NodeIterator</a></li>
 
77
<li><a href="../Redland/NodeTypeError.html">Redland::NodeTypeError</a></li>
 
78
<li><a href="../Redland/OWL.html">Redland::OWL</a></li>
 
79
<li><a href="../Redland/Parser.html">Redland::Parser</a></li>
 
80
<li><a href="../Redland/Query.html">Redland::Query</a></li>
 
81
<li><a href="../Redland/QueryResults.html">Redland::QueryResults</a></li>
 
82
<li><a href="../Redland/RDFS.html">Redland::RDFS</a></li>
 
83
<li><a href="../Redland/RedlandError.html">Redland::RedlandError</a></li>
 
84
<li><a href="../Redland/Resource.html">Redland::Resource</a></li>
 
85
<li><a href="../Redland/Serializer.html">Redland::Serializer</a></li>
 
86
<li><a href="../Redland/Statement.html">Redland::Statement</a></li>
 
87
<li><a href="../Redland/Stream.html">Redland::Stream</a></li>
 
88
<li><a href="../Redland/TripleStore.html">Redland::TripleStore</a></li>
 
89
<li><a href="../Redland/Uri.html">Redland::Uri</a></li>
 
90
<li><a href="../Redland/Util.html">Redland::Util</a></li>
 
91
<li><a href="../Redland/World.html">Redland::World</a></li>
 
92
<li><a href="../DC.html">DC</a></li>
 
93
<li><a href="../FOAF.html">FOAF</a></li>
 
94
</ul>
 
95
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
 
96
</div>
 
97
</div>
 
98
</div>
 
99
<div id="documentation">
 
100
<h1 class="class">Redland::World</h1>
 
101
<div id="description" class="description">
 
102
<p>The world object is the single global variable in <a href="../Redland.html">Redland</a> that all the classes, their factories and implementations reference.</p>
 
103
<p>In most programs there should be only one <a href="../Redland.html">Redland</a> world, using multiple models although multiple worlds are possible.</p>
 
104
</div>
 
105
<!-- description -->
 
106
<div id="5Buntitled-5D" class="documentation-section"><!-- Attributes -->
 
107
<div id="attribute-method-details" class="method-section section">
 
108
<h3 class="section-header">Attributes</h3>
 
109
<div id="world-attribute-method" class="method-detail"><a name="world" id="world"></a> <a name="world="></a>
 
110
<div class="method-heading attribute-method-heading"><span class="method-name">world</span><span class="attribute-access-type">[RW]</span></div>
 
111
<div class="method-description">
 
112
<p>include Singleton</p>
 
113
</div>
 
114
</div>
 
115
</div>
 
116
<!-- attribute-method-details -->
 
117
<!-- Methods -->
 
118
<div id="public-class-method-details" class="method-section section">
 
119
<h3 class="section-header">Public Class Methods</h3>
 
120
<div id="create_finalizer-method" class="method-detail"><a name="method-c-create_finalizer" id="method-c-create_finalizer"></a>
 
121
<div class="method-heading"><span class="method-name">create_finalizer</span><span class="method-args">(world)</span> <span class="method-click-advice">click to toggle source</span></div>
 
122
<div class="method-description">
 
123
<div class="method-source-code" id="create_finalizer-source">
 
124
<pre>
 
125
<span class="ruby-comment"># File rdf/redland.rb, line 54</span>
 
126
<span class="ruby-keyword">def</span> <span class="ruby-constant">World</span>.<span class="ruby-identifier">create_finalizer</span>(<span class="ruby-identifier">world</span>)
 
127
  <span class="ruby-identifier">proc</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span> <span class="ruby-node">"Finalizer on #{id}"</span>
 
128
    <span class="ruby-comment">#log_final.info "closing world"</span>
 
129
    <span class="ruby-comment"># This is commented out because Ruby fails to guarantee this</span>
 
130
    <span class="ruby-comment"># is called after all other redland destructors</span>
 
131
    <span class="ruby-comment">#Redland::librdf_free_world world</span>
 
132
  }
 
133
<span class="ruby-keyword">end</span>
 
134
</pre></div>
 
135
<!-- create_finalizer-source --></div>
 
136
</div>
 
137
<!-- create_finalizer-method -->
 
138
<div id="new-method" class="method-detail"><a name="method-c-new" id="method-c-new"></a>
 
139
<div class="method-heading"><span class="method-name">new</span><span class="method-args">()</span> <span class="method-click-advice">click to toggle source</span></div>
 
140
<div class="method-description">
 
141
<p>Create new RDF <a href="World.html">World</a> object (constructor)</p>
 
142
<div class="method-source-code" id="new-source">
 
143
<pre>
 
144
<span class="ruby-comment"># File rdf/redland.rb, line 48</span>
 
145
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>()
 
146
  <span class="ruby-ivar">@world</span> = <span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-identifier">librdf_new_world</span>()
 
147
  <span class="ruby-constant">Redland</span><span class="ruby-operator">::</span><span class="ruby-identifier">librdf_world_open</span>(<span class="ruby-ivar">@world</span>)
 
148
  <span class="ruby-constant">ObjectSpace</span>.<span class="ruby-identifier">define_finalizer</span>(<span class="ruby-keyword">self</span>,<span class="ruby-constant">World</span>.<span class="ruby-identifier">create_finalizer</span>(<span class="ruby-ivar">@world</span>))
 
149
<span class="ruby-keyword">end</span>
 
150
</pre></div>
 
151
<!-- new-source --></div>
 
152
</div>
 
153
<!-- new-method --></div>
 
154
<!-- public-class-method-details --></div>
 
155
<!-- 5Buntitled-5D --></div>
 
156
<!-- documentation -->
 
157
<hr />
 
158
 
 
159
<div class="outerHeader">
 
160
Go to <a href="/" target="_parent">Redland Home</a> - 
 
161
<a href="/bindings/" target="_parent">Language Bindings Home</a> - 
 
162
<a href="/docs/ruby.html" target="_parent">Ruby API Home</a>
 
163
</div>
 
164
 
 
165
<p>(C) Copyright 2004-2013 <a href="http://www.dajobe.org/" target="_parent">Dave Beckett</a>, (C) Copyright 2004-2005 <a href="http://www.bristol.ac.uk/" target="_parent">University of Bristol</a></p>
 
166
 
 
167
</div> <!-- end outerBlock -->
 
168
 
 
169
</body>
 
170
</html>