.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RDF::Trine::Node 3pm" .TH RDF::Trine::Node 3pm 2024-01-13 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME RDF::Trine::Node \- Base class for RDF Nodes .SH VERSION .IX Header "VERSION" This document describes RDF::Trine::Node version 1.019 .SH FUNCTIONS .IX Header "FUNCTIONS" .ie n .IP """ntriples_escape ( $value )""" 4 .el .IP "\f(CWntriples_escape ( $value )\fR" 4 .IX Item "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. .SH METHODS .IX Header "METHODS" .ie n .IP """is_node""" 4 .el .IP \f(CWis_node\fR 4 .IX Item "is_node" Returns true if this object is a RDF node, false otherwise. .ie n .IP """is_nil""" 4 .el .IP \f(CWis_nil\fR 4 .IX Item "is_nil" Returns true if this object is the nil-valued node. .ie n .IP """is_blank""" 4 .el .IP \f(CWis_blank\fR 4 .IX Item "is_blank" Returns true if this RDF node is a blank node, false otherwise. .ie n .IP """is_resource""" 4 .el .IP \f(CWis_resource\fR 4 .IX Item "is_resource" Returns true if this RDF node is a resource, false otherwise. .ie n .IP """is_literal""" 4 .el .IP \f(CWis_literal\fR 4 .IX Item "is_literal" Returns true if this RDF node is a literal, false otherwise. .ie n .IP """is_variable""" 4 .el .IP \f(CWis_variable\fR 4 .IX Item "is_variable" Returns true if this RDF node is a variable, false otherwise. .ie n .IP """as_string""" 4 .el .IP \f(CWas_string\fR 4 .IX Item "as_string" Returns the node in a string form. .ie n .IP """as_ntriples""" 4 .el .IP \f(CWas_ntriples\fR 4 .IX Item "as_ntriples" Returns the node in a string form suitable for NTriples serialization. .ie n .IP """sse""" 4 .el .IP \f(CWsse\fR 4 .IX Item "sse" Returns the SSE serialization of the node. .ie n .IP """equal ( $node )""" 4 .el .IP "\f(CWequal ( $node )\fR" 4 .IX Item "equal ( $node )" Returns true if the two nodes are equal, false otherwise. .ie n .IP """compare ( $node_a, $node_b )""" 4 .el .IP "\f(CWcompare ( $node_a, $node_b )\fR" 4 .IX Item "compare ( $node_a, $node_b )" Returns \-1, 0, or 1 if \f(CW$node_a\fR sorts less than, equal to, or greater than \&\f(CW$node_b\fR in the defined SPARQL ordering, respectively. This function may be used as the function argument to \f(CW\*(C`. .ie n .IP """as_hashref""" 4 .el .IP \f(CWas_hashref\fR 4 .IX Item "as_hashref" Returns a hashref representing the node in an RDF/JSON\-like manner. .Sp See \f(CW\*(C`as_hashref\*(C'\fR at RDF::Trine::Model for full documentation of the hashref format. .ie n .IP """from_sse ( $string, $context )""" 4 .el .IP "\f(CWfrom_sse ( $string, $context )\fR" 4 .IX Item "from_sse ( $string, $context )" Parses the supplied SSE-encoded string and returns a RDF::Trine::Node object. .SH BUGS .IX Header "BUGS" Please report any bugs or feature requests to through the GitHub web interface at . .SH AUTHOR .IX Header "AUTHOR" Gregory Todd Williams \f(CW\*(C`\*(C'\fR .SH COPYRIGHT .IX Header "COPYRIGHT" 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.