RDF::Q...Parser(3pm)
π RDF::Q...Parser(3pm) β bestie edition π
okay so. you found the page for RDF::Query::Parser, the Perl doc for it, and honestly? it's giving parser base class energy. like, this is the blueprint. everything else in the parser family is lowkey cosplaying off this one. π§
β¨ NAME β¨
RDF::Query::Parser β parser base class. that's it, that's the whole vibe. π
πΈ VERSION πΈ
this doc describes RDF::Query::Parser version 2.919. locked in, no cap. β¨
π METHODS π
k so these are the constructor-ish methods your subclass gets to play with. each one hands you back a structure. go off, bestie. π«Ά
new_literal ( $literal, $language, $datatype )β returns a new literal structure. the trio of$literal,$languageand$datatypewalk in, a literal walks out. iconic. πnew_variable ( $name )β returns a new variable structure. takes$name, gives you a variable. periodt.new_blank ( $name )β returns a new blank node structure, built from$name. blank nodes stay mysterious, we respect that. π¦new_uri ( $uri )β returns a new variable structure. yes bestie, the doc literally says variable here, not URI. not me reading it three times π i'm just reporting what's on the page, word for word, iykyk. takes$uri.new_triple ( $s, $p, $o )β returns a new triple structure. subject, predicate, object β the holy trinity, the trio, the main characters. βnew_unary_expression ( $operator, $operand )β returns a new unary expression structure. one$operator, one$operand, no notes. πnew_binary_expression ( $operator, @operands )β returns a new binary expression structure. takes an$operatorand a whole lil list of@operands. slay.new_function_expression ( $function, @operands )β returns a new function expression structure.$functionplus its@operandsbesties. π₯new_alias_expression ( $alias, $expression )β returns a new alias expression structure. an$aliasand an *$expression, holding hands. πnew_filter ( $filter_expr, $pattern )β returns a new filter structure.$filter_exprand$patternβ the filter duo does not miss. πfail ( $error )β sets the current error to$error. this is the dramatic one. π if the parser is in commit mode (which happens when you callset_commit), it throws anRDF::Query::Error::ParseErrorobject. otherwise it just returnsundefand keeps it cute. so like. if you're in commit mode, bestie, it does not simply return β it throws. be aware. β¨error ()β returns the last error the parser experienced. the receipts. the archived screenshots of the group chat. π«Ά
ngl, thatfailone is the moment of the page. commit mode = it throws aRDF::Query::Error::ParseError; not-commit mode =undefand a shrug. know which mode you're in before you call it, fr fr. π
π AUTHOR π
Gregory Williams <gwilliams@cpan.org> β the author. the icon. the moment. give them their flowers. πΈ
and that's the whole page, babes. this was perl v5.40.1, dated 2025-08-18, and that's your sign-off β go parse something gorgeous. π¦β¨π
π¦ 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