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 %namespaces you 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 an RDF::Query::Error::QueryPatternError exception 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