| 1 |
<?xml version="1.0" encoding="iso-8859-1"?> |
| 2 |
<?xml version="1.0"?> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<title>Redland RDF Application Framework - Perl RDF::Redland::URI Class</title> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
|
| 9 |
<h1 style="text-align:center">Redland RDF Application Framework - Perl RDF::Redland::URI Class</h1> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<div name="index"> |
| 14 |
<p><a name="__index__"></a></p> |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
</div> |
| 30 |
|
| 31 |
|
| 32 |
<h2><a name="name">NAME</a></h2> |
| 33 |
<p>RDF::Redland::URI - Redland RDF URI Class</p> |
| 34 |
|
| 35 |
<h2><a name="synopsis">SYNOPSIS</a></h2> |
| 36 |
<pre> |
| 37 |
use RDF::Redland; |
| 38 |
</pre> |
| 39 |
<pre> |
| 40 |
my $uri=new RDF::Redland::URI("<a href="http://example.com/"">http://example.com/"</a>;); |
| 41 |
</pre> |
| 42 |
<pre> |
| 43 |
my $uri2=RDF::Redland::URI->new_from_uri($uri); |
| 44 |
</pre> |
| 45 |
<pre> |
| 46 |
print $uri2->as_string,"\n"; |
| 47 |
</pre> |
| 48 |
|
| 49 |
<h2><a name="description">DESCRIPTION</a></h2> |
| 50 |
<p>Represents a URI as a mostly-opaque object for identifying things in the RDF world. The URIs are also used for identifying features for the RDF::Redland::Parser and RDF::Redland::Serializer classes.</p> |
| 51 |
|
| 52 |
<h2><a name="constructors">CONSTRUCTORS</a></h2> |
| 53 |
<dl> |
| 54 |
<dt><strong><a name="new" class="item">new STRING</a></strong></dt> |
| 55 |
<dd> |
| 56 |
<p>Create a new RDF::Redland::URI object from a URI string.</p> |
| 57 |
</dd> |
| 58 |
<dt><strong><a name="clone" class="item">clone URI</a></strong></dt> |
| 59 |
<dd> |
| 60 |
<p>Copy a RDF::Redland::URI</p> |
| 61 |
</dd> |
| 62 |
</dl> |
| 63 |
|
| 64 |
<h2><a name="methods">METHODS</a></h2> |
| 65 |
<dl> |
| 66 |
<dt><strong><a name="as_string" class="item">as_string</a></strong></dt> |
| 67 |
<dd> |
| 68 |
<p>Return the statement formatted as a string (UTF-8 encoded).</p> |
| 69 |
</dd> |
| 70 |
<dt><strong><a name="equals" class="item">equals URI</a></strong></dt> |
| 71 |
<dd> |
| 72 |
<p>Return non zero if this uri is equal to URI</p> |
| 73 |
</dd> |
| 74 |
</dl> |
| 75 |
|
| 76 |
<h2><a name="old_methods">OLD METHODS</a></h2> |
| 77 |
<dl> |
| 78 |
<dt><strong><a name="new_from_uri" class="item">new_from_uri URI</a></strong></dt> |
| 79 |
<dd> |
| 80 |
<p>Create a new RDF::Redland::URI object from RDF::Redland::URI <em>URI</em> (copy constructor). Instead use:</p> |
| 81 |
<pre> |
| 82 |
$u=$uri->clone |
| 83 |
</pre></dd> |
| 84 |
</dl> |
| 85 |
|
| 86 |
<h2><a name="see_also">SEE ALSO</a></h2> |
| 87 |
<p><a href="Parser.html">the RDF::Redland::Parser manpage</a></p> |
| 88 |
|
| 89 |
<h2><a name="author">AUTHOR</a></h2> |
| 90 |
<p>Dave Beckett - <a href="http://www.dajobe.org/">http://www.dajobe.org/</a></p> |
| 91 |
<hr /> |
| 92 |
|
| 93 |
<p>(C) Copyright 2000-2011 <a href="http://www.dajobe.org/">Dave Beckett</a>, (C) Copyright 2000-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p> |
| 94 |
|
| 95 |
</body> |
| 96 |
</html> |