RDF::Redland::URINode - Redland RDF URI Node Class


Redland documentation Contained in the Redland distribution.

Index


Code Index:

NAME

Top

RDF::Redland::URINode - Redland RDF URI Node Class

SYNOPSIS

Top

  use RDF::Redland;
  my $node1=new RDF::Redland::URINode("http://example.org/");

DESCRIPTION

Top

This class represents URIs in the RDF graph. See RDF::Redland::Node for the methods on this object.

CONSTRUCTOR

Top

new URI

Create a new URI node. URI can be either a RDF::Redland::URI object, a perl URI class or a literal string.

SEE ALSO

Top

RDF::Redland::Node

AUTHOR

Top

Dave Beckett - http://purl.org/net/dajobe/


Redland documentation Contained in the Redland distribution.
# -*- Mode: Perl -*-
#
# URINode.pm - Redland Perl RDF URI Node module
#
# $Id: URINode.pm 10593 2006-03-05 08:30:38Z dajobe $
#
# Copyright (C) 2005 David Beckett - http://purl.org/net/dajobe/
# Copyright (C) 2005 University of Bristol - http://www.bristol.ac.uk/
# 
# This package is Free Software or Open Source available under the
# following licenses (these are alternatives):
#   1. GNU Lesser General Public License (LGPL)
#   2. GNU General Public License (GPL)
#   3. Mozilla Public License (MPL)
# 
# See LICENSE.html or LICENSE.txt at the top of this package for the
# full license terms.
# 
# 
#

package RDF::Redland::URINode;

use strict;

use vars qw(@ISA);

@ISA='RDF::Redland::Node';


######################################################################

# CONSTRUCTOR
sub new ($$) {
  my($proto,$arg)=@_;
  my $class = ref($proto) || $proto;
  my $self  = {};

  return RDF::Redland::Node->new_from_uri($arg);
}

1;