RDF::Query::Node(3pm)
β¨ NAME β¨
RDF::Query::Node β the base class for RDF Nodes, bestie π it's the mom of the whole node family.
πΈ VERSION πΈ
This doc describes RDF::Query::Node version 2.919. periodt. π
π METHODS π
okay so here's the group chat of methods this class is bringing:
is_variableβ gives you true if this RDF node is a variable, and false otherwise. that's it, that's the vibe check βcompare ( $a, $b )β hands back-1,0, or1depending on whether$ais less than, equal to, or greater than$b, and it does this according to the SPARQL sorting rules. no cap, those rules are the whole point π₯from_trine ( $node )β returns a freshRDF::Query::Nodeobject holding the same value as$node, which is anRDF::Trine::Nodeobject. basically it promotes$nodeinto a node object that has the extra functionality theRDF::Querypackage provides (think: SPARQL-defined ordering π). glow-up fr fr β¨from_attean ( $node )β likewise, but this time the source is Attean π¦explainβ returns a string serialization of the node, formatted so it looks right when you show it on the command line. this one is mainly used by theexplainmethod on the subclasses ofRDF::Query::Plan. iykyk π«Ά
π FUNCTIONS π
and now the standalone functions, the main character energy section:
compare ( $node_a, $node_b )β returns-1,0, or1if$node_asorts less than, equal to, or greater than$node_bin the defined SPARQL ordering, respectively. you can also hand this thing over as the function argument to<sortπiri ( $iri )β returns anRDF::Query::Node::Resourceobject carrying the IRI value you gave it πblank ( $id )β returns anRDF::Query::Node::Blankobject with the identifier you passed in πliteral ( $value, $lang, $dt )β returns anRDF::Query::Node::Literalobject with your$value, plus an optional language and/or datatype ($lang/$dt) βvariable ( $name )β returns anRDF::Query::Node::Variableobject with the variable name you handed it π¦
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> π
and that's the whole page, bestie β written for perl v5.40.1, dated 2025-08-18, slay, go sort some nodes π πΈβ¨
π¦ where this page comes from
- ubuntu resolute: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-query-perl 2.919-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms