
RDF::Trine::Node - Base class for RDF Nodes

This document describes RDF::Trine::Node version 0.140

ntriples_escape ( $value )Returns the passed string value with special characters (control characters, Unicode, etc.) escaped, suitable for printing inside an N-Triples or Turtle encoded literal.

is_nodeReturns true if this object is a RDF node, false otherwise.
is_nilReturns true if this object is the nil-valued node.
is_blankReturns true if this RDF node is a blank node, false otherwise.
is_resourceReturns true if this RDF node is a resource, false otherwise.
is_literalReturns true if this RDF node is a literal, false otherwise.
is_variableReturns true if this RDF node is a variable, false otherwise.
as_stringReturns the node in a string form.
as_ntriplesReturns the node in a string form suitable for NTriples serialization.
sseReturns the SSE serialization of the node.
equal ( $node )Returns true if the two nodes are equal, false otherwise.
compare ( $node_a,
$node_b )Returns -1,
0,
or 1 if $node_a sorts less than,
equal to,
or greater than $node_b in the defined SPARQL ordering,
respectively.
This function may be used as the function argument to <sort>.
from_sse ( $string,
$context )Parses the supplied SSE-encoded string and returns a RDF::Trine::Node object.

Gregory Todd Williams <gwilliams@cpan.org>

Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.