RDF::Q...edGraph(3pm)
β¨ RDF::Query::Algebra::NamedGraph β¨
okay bestie, gather round π this is the manual page for RDF::Query::Algebra::NamedGraph (which is filed under RDF::Q...edGraph(3pm) in the User Contributed Perl Documentation, because apparently file names have a character limit and it chose violence π). It's the algebra class for NamedGraph patterns β like, the vibes-holding container that says "this lil pattern lives inside this graph." no cap.
πΈ NAME πΈ
RDF::Query::Algebra::NamedGraph β the algebra class for NamedGraph patterns. it's giving "pattern, but make it scoped to a named graph." iconic. π
π« VERSION π«
This doc is describing RDF::Query::Algebra::NamedGraph version 2.919. yes, that's the real number, we don't round up in this house. β¨
π METHODS π
so real talk: on top of everything listed below, this class also inherits a whole bunch of methods from the RDF::Query::Algebra class. free stuff, we love to see it π«Ά
new ( $graph, $pattern )β hands you back a brand-new NamedGraph structure. give it a graph and a pattern and boom, you're in business. πconstruct_argsβ returns a list of arguments that, if you feed them straight back into this class' constructor, give you an exact clone of this algebra pattern. it's basically the "duplicate me" cheat code. π¦graphβ returns the graph node of the named graph expression. that's the "which graph" part of the whole situation.patternβ returns the graph pattern of the named graph expression. that's the "what's inside" part.quadsβ returns a list of the quads that belong to this NamedGraph. quads!! not triples!! the fourth element said hi πsseβ returns the SSE string for this algebra expression.explainβ returns a string serialization of the algebra, the kind you'd actually want to stare at on the command line. it's the glamour version, for display. πas_sparqlβ returns the SPARQL string for this algebra expression. turn it back into SPARQL, slay.as_hashβ returns the query as a nested set of plain data structures, zero objects involved. just raw data, no baggage. no cap.as_spin ( $model )β adds statements to the given model so this algebra object gets represented in the SPARQL Inferencing Notation (<http://www.spinrdf.org/>). yes, SPIN, like the thing that spins, but for RDF. πtypeβ returns the type of this algebra expression.referenced_variablesβ returns a list of the variable names that get used in this algebra expression.potentially_boundβ returns a list of the variable names used in this algebra expression that are gonna bind values while it's executing. "potentially" is doing a lot of heavy lifting in that sentence and we respect it. β¨definite_variablesβ returns a list of the variable names that are definitely bound after this algebra expression gets evaluated. no maybe, no perhaps, just bound. periodt.qualify_uris ( \%namespaces, $base_uri )β returns a fresh algebra pattern where every referenced Resource node that's representing a QName (ns:local) gets qualified using the%namespacesyou passed in. glow-up for your URIs. πcheck_duplicate_blanksβ returns true when blank nodes are respecting the SPARQL rule of no blank-label re-use across BGPs. and if they're not? it throws anRDF::Query::Error::QueryPatternErrorexception at you. π¨
bestie, fr fr, watch out for that last one β check_duplicate_blanks doesn't just quietly return false when the blank-label rule is broken, it throws. so wrap it or handle it, or the exception will find you. π
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org> β thank you for your service, king π«‘
and that's the whole page, bestie!! π this doc was generated for perl v5.40.1, dated 2025-08-18, and it's the RDF::Q...edGraph(3pm) page from the User Contributed Perl Documentation. go forth and name your graphs. mwah πππ§
π¦ 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