RDF::Q...istinct(3pm)

πŸ‘‘ RDF::Query::Algebra::Distinct β€” the vibe check filter for query results

okay so bestie, imagine you ran a query and got the exact same answer like four times and you're sitting there like "girl… we get it" 😭 That's literally what this class is for. It's the algebra class for distinct query results β€” the "no duplicates, we're not doing that today" energy. ✨

This one lives in the RDF::Query::Algebra family, and it's about to be your new obsession. Periodt. πŸ’…


✨ VERSION ✨

This doc is describing RDF::Query::Algebra::Distinct version 2.919. Slay.


🌸 METHODS 🌸

First things first, bestie: this class inherits methods from the RDF::Query::Algebra class too, so it's not just the ones listed below. It's giving nepo baby but in a good way. 🫢 Beyond the methods documented here, go check out the parent class.


πŸŽ€ new ( $pattern )

Returns a new Sort structure.

not me noticing it says "Sort" and not "Distinct" β€” bestie I'm just the messenger, I report what the manpage says, no cap. 🫣

πŸŽ€ construct_args

Returns a list of arguments that, passed to this class' constructor, will produce a clone of this algebra pattern. It's the little "make a twin of me" list. πŸ’–

πŸŽ€ pattern

Returns the pattern to be sorted.

πŸŽ€ sse

Returns the SSE string for this algebra expression.

πŸŽ€ as_sparql

Returns the SPARQL string for this algebra expression. Yes, it speaks SPARQL. Multilingual queen. πŸ‘‘

πŸŽ€ as_hash

Returns the query as a nested set of plain data structures (no objects). Just vibes and hashes, no fancy blessed stuff. 🌈

πŸŽ€ as_spin ( $model )

Adds statements to the given model to represent this algebra object in the SPARQL Inferencing Notation (http://www.spinrdf.org/).

πŸŽ€ type

Returns the type of this algebra expression. Simple. Iconic. πŸ¦‹

πŸŽ€ referenced_variables

Returns a list of the variable names used in this algebra expression.

πŸŽ€ potentially_bound

Returns a list of the variable names used in this algebra expression that will bind values during execution.

πŸŽ€ definite_variables

Returns a list of the variable names that will be bound after evaluating this algebra expression. Like, no question, they're showing up. πŸ’―

πŸŽ€ is_solution_modifier

Returns true if this node is a solution modifier. ✨


πŸ’œ AUTHOR πŸ’œ

Gregory Todd Williams <gwilliams@cpan.org> β€” the moment, the myth, the legend. πŸŽ€


okay that's the whole page bestie, go forth and fetch distinct results like the main character you are πŸ’…βœ¨

Sign-off, per the footer: this was documented under perl v5.40.1, dated 2025-08-18, and it's part of the User Contributed Perl Documentation. Mwah. 😘

πŸ“¦ where this page comes from