.\" -*- 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::Query::Node 3pm" .TH RDF::Query::Node 3pm 2024-04-12 "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::Query::Node \- Base class for RDF Nodes .SH VERSION .IX Header "VERSION" This document describes RDF::Query::Node version 2.918. .SH METHODS .IX Header "METHODS" .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 """compare ( $a, $b )""" 4 .el .IP "\f(CWcompare ( $a, $b )\fR" 4 .IX Item "compare ( $a, $b )" Returns \-1, 0, or 1 if \f(CW$a\fR is less than, equal to, or greater than \f(CW$b\fR, respectively, according to the SPARQL sorting rules. .ie n .IP """from_trine ( $node )""" 4 .el .IP "\f(CWfrom_trine ( $node )\fR" 4 .IX Item "from_trine ( $node )" Returns a new RDF::Query::Node object with the same value as \f(CW$node\fR, a RDF::Trine::Node object. This essentially promotes \f(CW$node\fR to a node object with extra functionality provided by the RDF::Query package (like SPARQL-defined ordering). .ie n .IP """from_attean ( $node )""" 4 .el .IP "\f(CWfrom_attean ( $node )\fR" 4 .IX Item "from_attean ( $node )" Likewise, but from Attean. .ie n .IP """explain""" 4 .el .IP \f(CWexplain\fR 4 .IX Item "explain" Returns a string serialization of the node appropriate for display on the command line. This method is primarily used by the \f(CW\*(C`explain\*(C'\fR method of the subclasses of RDF::Query::Plan. .SH FUNCTIONS .IX Header "FUNCTIONS" .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 """iri ( $iri )""" 4 .el .IP "\f(CWiri ( $iri )\fR" 4 .IX Item "iri ( $iri )" Returns a RDF::Query::Node::Resource object with the given IRI value. .ie n .IP """blank ( $id )""" 4 .el .IP "\f(CWblank ( $id )\fR" 4 .IX Item "blank ( $id )" Returns a RDF::Query::Node::Blank object with the given identifier. .ie n .IP """literal ( $value, $lang, $dt )""" 4 .el .IP "\f(CWliteral ( $value, $lang, $dt )\fR" 4 .IX Item "literal ( $value, $lang, $dt )" Returns a RDF::Query::Node::Literal object with the given value and optional language/datatype. .ie n .IP """variable ( $name )""" 4 .el .IP "\f(CWvariable ( $name )\fR" 4 .IX Item "variable ( $name )" Returns a RDF::Query::Node::Variable object with the given variable name. .SH AUTHOR .IX Header "AUTHOR" .Vb 1 \& Gregory Todd Williams .Ve