RDF::T...rammar(3pm)

πŸ’– NAME πŸ’–

okay so this whole manual is <rainbow>RDF::T...rammar(3pm)</rainbow> β€” a User Contributed Perl Documentation page, bestie, and it's about RDF::Trine::Parser::OwlFn::Grammar, which provides a Parse::RecDescent grammar for OWL 2.0 Functional Syntax. yes really. that's the whole vibe. πŸ’…


✨ DESCRIPTION ✨

so this package is lowkey a two-trick pony and both tricks are iconic:

  • grammar β€” returns the grammar as a string. that's it. it just hands you the grammar. πŸŽ€
  • new β€” returns a Parse::RecDescent parser object using the grammar. so you get an actual parser out of it. slay.

and THEN, plot twist, if you run this Grammar.pm module directly at the command line:

perl -w Grammar.pm

it will generate a file called Compiled.pm containing a pre-compiled Parse::RecDescent parser. no cap, it just makes you a whole pre-compiled parser. πŸ¦‹


🌸 CONFORMANCE 🌸

okay so here's the tea β˜• β€” this grammar deviates from the official one in a few places. not in a bad way!! just in a "we did our own thing" way:

  • QName (a.k.a. CURIE) syntax is slightly broken β€” but bestie, in most cases you won't notice it. it's giving "it's fine, it's fine". 😭
  • CSS-style comments (/* ... */) are allowed. yes, CSS comments. in an OWL grammar. we love range. πŸ’…
  • Unquoted xsd:nonNegativeInteger tokens can be used as literals. iconic behavior honestly.
  • The unquoted tokens 'true' and 'false' can be used as literals. no quotes needed, she's confident. ✨
  • Multiple Ontology(...) instances are allowed in a single file. so you can have more than one ontology in one file, which is a whole mood. πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

go read these, fr fr, they're the receipts:


πŸŽ€ AUTHOR πŸŽ€

Toby Inkster <tobyink@cpan.org>. thank you for your service, king. πŸ’œ


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. so like, go off, just keep it free. 🧚


πŸ’€ 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 screaming this one in all caps but like. it's literally all caps in the source. no promises, no refunds, no thoughts, head empty. πŸ™ˆ


and that's the whole page bestie!! perl v5.32.1, dated 2021-09-24, manual name RDF::T...rammar(3pm) β€” periodt. πŸ’–πŸŒΈβœ¨

πŸ“¦ where this page comes from