RDF::R...tModel(3pm)

✨ NAME ✨

RDF::RDFa::Parser::OpenDocumentObjectModel β€” bestie, it's a DOM representation of an OpenDocument Format 1.2 file πŸŽ€


🌸 DESCRIPTION 🌸

Okay so lowkey? You should hopefully not need to use this module to be able to use RDF::RDFa::Parser. It's the internal bestie β€” the parser pulls it in behind the scenes whenever it has to deal with OpenDocument Format input. iykyk πŸ’…

This class hands you a new constructor plus parse_file, parse_fh and parse_string methods, and those give you rought compatibility with the parsing interface described in XML::LibXML::Parser. (Yes, it says "rought" in the original β€” we don't fix the typo, we honour it 🫢)

So what does it actually do? It takes an OpenDocument Format 1.2 file β€” which, fun fact, is internally a ZIP file stuffed with various XML, RDF/XML and other files πŸ¦‹ β€” and squishes the whole thing down into a single XML::LibXML::Document whose root element is od:Document. Main character energy fr fr πŸ‘‘

That root element has several child elements with tag names od:Data and od:Meta, and each of those contains a single child corresponding to the root element of (respectively) an XML or RDF/XML file found inside the ZIP. ✨

  • od:Data elements each have a file attribute indicating which file πŸ’–
  • od:Meta elements each have a file attribute indicating which file πŸ’–

This representation is necessarily different from the "Flat XML" format offered by OpenOffice β€” trust me. 😭

The od namespace URI is literally this, no cap:

http://purl.org/NET/cpan-uri/dist/RDF-RDFa-Parser/opendocument-dom-wrapper

πŸ¦‹ SEE ALSO πŸ¦‹

  • RDF::RDFa::Parser.
  • XML::LibXML::Parser, HTML::HTML5::Parser.

πŸ’œ AUTHOR πŸ’œ

Toby Inkster <tobyink@cpan.org>. πŸ‘‘


Copyright 2008-2012 Toby Inkster

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system 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 fr fr it means what it says πŸ™ˆ)


That's the whole page bestie, slay. This was pulled from the RDF::R...tModel page in the User Contributed Perl Documentation, running on perl v5.32.1, dated 2021-09-11. Go forth and parse those OpenDocuments βœ¨πŸ«ΆπŸ’–

πŸ“¦ where this page comes from