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:Dataelements each have afileattribute indicating which file πod:Metaelements each have afileattribute 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 AND LICENCE π
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
- debian bookworm: librdf-rdfa-parser-perl 1.097-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: librdf-rdfa-parser-perl 1.097-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: librdf-rdfa-parser-perl 1.097-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-rdfa-parser-perl 1.097-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-rdfa-parser-perl 1.097-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-rdfa-parser-perl 1.097-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