OWL::D...Syntax(3pm)

πŸ’– NAME πŸ’–

OWL::DirectSemantics::Writer::FunctionalSyntax β€” bestie, it's a Moose::Role that gives you functional syntax output ✨


🌸 DESCRIPTION 🌸

Okay so listen. This Moose::Role is literally the plug β€” it hands you an fs method that spits out OWL Functional Syntax. Iconic behavior fr fr. πŸ¦‹

But here's the vibe check: whatever object or class you compose it with has to bring two methods to the table β€” element_name and fs_arguments. No exceptions, no cap. 🫢

  • element_name β€” this is basically the name of the "function" your object is representing, like for example 'ClassAssertion'. It's giving label energy. πŸ‘‘
  • fs_arguments β€” this one returns a list of arguments that get dropped inside the parentheses in the output. And bestie, those arguments can be a whole mix of things:
    • plain literal strings ✨
    • RDF::Trine::Node objects πŸ’…
    • or other objects that also carry the OWL::DirectSemantics::Writer::FunctionalSyntax role πŸ”₯

So basically you compose, you provide those two methods, and the fs method does the rest. Periodt. πŸ’œ


πŸ‘€ SEE ALSO πŸ‘€

  • OWL::DirectSemantics
  • OWL::DirectSemantics::Element
  • RDF::Trine::Serializer::OwlFn

Go read those too, iykyk. πŸ“šβœ¨


πŸŽ€ AUTHOR πŸŽ€

Toby Inkster <tobyink@cpan.org>. πŸ’–


Copyright 2011-2012 Toby Inkster

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 🧚


πŸ’€ DISCLAIMER OF WARRANTIES πŸ’€

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Not me yelling the whole disclaimer but yes, it's all caps for a reason bestie, no promises, no warranty, that's the deal. 😭


And that's the whole page!! This one's from perl v5.32.1, dated 2021-09-11, and it's User Contributed Perl Documentation, so shoutout to the Perl community for real. 🌈 Mwah, go write some functional syntax, you got this. πŸ’…β­

πŸ“¦ where this page comes from