The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ODO::Node

SYNOPSIS

 use ODO::Node;

 # Classes within this package:
 #
 #  ODO::Node
 #  ODO::Node::Literal
 #  ODO::Node::Resource
 #  ODO::Node::Blank
 #  ODO::Node::Variable
 #  ODO::Node::Any

DESCRIPTION

Description.

CONSTRUCTOR

Constructor.

ODO::Node

DESCRIPTION

The base class for all node types.

METHODS

value( [ $value ] )

Manipulates the actual value of the object (resource or literal).

Parameters: $value - Optional. If set, the value will be set to the given parameter.

Returns: The value stored by this object.

equal( $node )

Determines whether the node is the same as the node passed to this function

hash( )

ODO::Node::Literal

DESCRIPTION

Literal node type.

METHODS

new( $value, $language, $datatype )

Create a new literal node with the specified value and optional language and datatype.

language( [ $language ] )

Get or set the language element of the node.

datatype( [ $datatype ] )

Get or set the datatype element of the node.

ODO::Node::Resource

DESCRIPTION

The URI / resource node type.

METHODS

new( $uri_value )
uri()

Alias for OOD::Node::value

ODO::Node::Blank

DESCRIPTION

The blank node type.

METHODS

new( [ $value ] )

Create a new blank node with the specified value.

node_id( [ $value ] )

Alias for SUPER::value

ODO::Node::Variable

DESCRIPTION

The variable node type.

METHODS

new( $name_val | name=> $name_val )
name()

Alias for SUPER::value

ODO::Node::Any

DESCRIPTION

The node that matches any node.

METHODS

value()

ANY nodes don't have a value

equal( $node )

The ANY node type is equal to everything

$ODO::Node::ANY

ODO::Node::Constants

DESCRIPTION

Constants that can be used by the node subsystem.

CONSTANTS

URI Regular Expression

Official URI regular expression

$URI =~ ^(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?

AUTHOR

IBM Corporation

SEE ALSO

ODO, ODO::Statement

COPYRIGHT

Copyright (c) 2004-2006 IBM Corporation.

All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html