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
- 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