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

« back to all changes in this revision

Viewing changes to docs/rdoc/classes/Redland/Literal.html

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2009-04-07 00:24:21 UTC
  • mfrom: (0.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090407002421-dce2r4otm5vqtheg
Tags: 1.0.8.1-2
* Use new sections ruby, php for librdf-ruby and php5-librdf respectively.
* Merge features from ubuntu packaging.  Thanks to Matthias Klose
  (not taking linker -Wl,--as-needed since that makes dyloading fail
  to pull in raptor symbols):
  debian/rules:
  - get python lib dir from distutils
  - make dh_pycentral use symlinks
  debian/python-librdf.examples:
  - add data/dc.rdf to examples dir and adjust example.py
    to point to it (Closes: #402612)
* Patch python/Makefile.in so it can allow the include dir to be
  overridden by the particular python version build in debian/rules
  using PYTHON_INCLUDES

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
</div>
72
72
<div id="method-list">
73
73
<h3 class="section-bar">Methods</h3>
74
 
<div class="name-list"><a href="#M000122">from_node</a>&nbsp;&nbsp; <a href="#M000123">from_xml</a>&nbsp;&nbsp; <a href="#M000121">new</a>&nbsp;&nbsp;</div>
 
74
<div class="name-list"><a href="#M000077">from_node</a>&nbsp;&nbsp; <a href="#M000078">from_xml</a>&nbsp;&nbsp; <a href="#M000076">new</a>&nbsp;&nbsp;</div>
75
75
</div>
76
76
</div>
77
77
<!-- if includes -->
100
100
<!-- if method_list -->
101
101
<div id="methods">
102
102
<h3 class="section-bar">Public Class methods</h3>
103
 
<div id="method-M000122" class="method-detail"><a name="M000122" id="M000122"></a>
104
 
<div class="method-heading"><a href="#M000122" class="method-signature"><span class="method-name">from_node</span><span class="method-args">(node)</span></a></div>
 
103
<div id="method-M000077" class="method-detail"><a name="M000077" id="M000077"></a>
 
104
<div class="method-heading"><a href="#M000077" class="method-signature"><span class="method-name">from_node</span><span class="method-args">(node)</span></a></div>
105
105
<div class="method-description">
106
106
<p>create a literal from another <a href="Node.html">Node</a></p>
107
 
<p><a class="source-toggle" href="#" onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
108
 
<div class="method-source-code" id="M000122-source">
 
107
<p><a class="source-toggle" href="#" onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
 
108
<div class="method-source-code" id="M000077-source">
109
109
<pre>
110
110
<span class="ruby-comment cmt"># File rdf/redland/node.rb, line 238</span>
111
111
    <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Literal</span>.<span class="ruby-identifier">from_node</span>(<span class="ruby-identifier">node</span>)
118
118
</pre></div>
119
119
</div>
120
120
</div>
121
 
<div id="method-M000123" class="method-detail"><a name="M000123" id="M000123"></a>
122
 
<div class="method-heading"><a href="#M000123" class="method-signature"><span class="method-name">from_xml</span><span class="method-args">(str,lang=nil)</span></a></div>
 
121
<div id="method-M000078" class="method-detail"><a name="M000078" id="M000078"></a>
 
122
<div class="method-heading"><a href="#M000078" class="method-signature"><span class="method-name">from_xml</span><span class="method-args">(str,lang=nil)</span></a></div>
123
123
<div class="method-description">
124
124
<p>create a literal from and xml string</p>
125
125
<pre>
126
126
 literal = Literal.from_xml('&lt;em&gt;This is emphasized&lt;/em&gt;')
127
127
</pre>
128
 
<p><a class="source-toggle" href="#" onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
129
 
<div class="method-source-code" id="M000123-source">
 
128
<p><a class="source-toggle" href="#" onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
 
129
<div class="method-source-code" id="M000078-source">
130
130
<pre>
131
131
<span class="ruby-comment cmt"># File rdf/redland/node.rb, line 248</span>
132
132
    <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Literal</span>.<span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">str</span>,<span class="ruby-identifier">lang</span>=<span class="ruby-keyword kw">nil</span>)
135
135
</pre></div>
136
136
</div>
137
137
</div>
138
 
<div id="method-M000121" class="method-detail"><a name="M000121" id="M000121"></a>
139
 
<div class="method-heading"><a href="#M000121" class="method-signature"><span class="method-name">new</span><span class="method-args">(str,lang=nil,uri=nil,is_xml=false)</span></a></div>
 
138
<div id="method-M000076" class="method-detail"><a name="M000076" id="M000076"></a>
 
139
<div class="method-heading"><a href="#M000076" class="method-signature"><span class="method-name">new</span><span class="method-args">(str,lang=nil,uri=nil,is_xml=false)</span></a></div>
140
140
<div class="method-description">
141
 
<p>create a <a href="Literal.html#M000121">new</a> <a href="Literal.html">Literal</a> node</p>
 
141
<p>create a <a href="Literal.html#M000076">new</a> <a href="Literal.html">Literal</a> node</p>
142
142
<pre>
143
143
 literal = Literal.new('Dominic')
144
144
 label = Literal.new('Name','en')
145
145
</pre>
146
 
<p><a class="source-toggle" href="#" onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
147
 
<div class="method-source-code" id="M000121-source">
 
146
<p><a class="source-toggle" href="#" onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
 
147
<div class="method-source-code" id="M000076-source">
148
148
<pre>
149
149
<span class="ruby-comment cmt"># File rdf/redland/node.rb, line 223</span>
150
150
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">str</span>,<span class="ruby-identifier">lang</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">uri</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">is_xml</span>=<span class="ruby-keyword kw">false</span>)
173
173
<a href="/docs/ruby.html" target="_parent">Ruby API Home</a>
174
174
</div>
175
175
 
176
 
<p>(C) Copyright 2004-2007 <a href="http://purl.org/net/dajobe/" target="_parent">Dave Beckett</a>, (C) Copyright 2004-2005 <a href="http://www.bristol.ac.uk/" target="_parent">University of Bristol</a></p>
 
176
<p>(C) Copyright 2004-2008 <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>
177
177
 
178
178
</div> <!-- end outerBlock -->
179
179