RDF::T...::RDFa(3pm)
π NAME π
RDF::Trine::Serializer::RDFa β bestie, it's the RDFa Serializer for RDF::Trine. That's the whole vibe. And yes, the manpage itself lives at RDF::T...::RDFa(3pm) in the User Contributed Perl Documentation, iykyk. π
β¨ SYNOPSIS β¨
Like, the tiniest taste of how you'd actually use it:
use RDF::Trine::Serializer;
my $s = RDF::Trine::Serializer->new('RDFa', style => 'HTML::Hidden');
my $string = $s->serialize_model_to_string($model);
That's it. That's the whole flex. π«Ά
πΈ DESCRIPTION πΈ
Okay so RDF::Trine::Serializer is the class that gives you an API for serializing RDF graphs into strings and into files. And this subclass? It's the glow-up that does RDFa serialization, via RDF::RDFa::Generator. Periodt. β¨
The plan β the whole main character arc β is that this module will replace the RDF::Trine compatibility methods that live in RDF::RDFa::Generator, which are now deprecated. And why are we doing all this? So that both RDF::Trine and Attean can use it, without either of them being forced to require the other as a dependency. Iconic behaviour, honestly. π
π METHODS π
So beyond the methods we're about to spill about below, this class also inherits methods from the RDF::Trine::Serializer class. Freebies, bestie. π
newβ returns a brand-new RDFa serializer object. Any arguments you hand it get passed along toRDF::RDFa::Generator, so go peek at its documentation for the deets. That includes astyleargument, which names a module that formats the output for you. On top of that, you can pass agenerator_optionsargument β that one gets passed to the generator'screate_documentmethods as options, and it's typically where you'd put style-specific configuration. Very demure, very mindful. πserialize_model_to_file ( $fh, $model )β serializes the $model to RDFa, and prints the results to the filehandle you supplied,$fh. π¨οΈserialize_model_to_string ( $model )β serializes the $model to RDFa and hands the result back to you as a string. π§΅serialize_iterator_to_file ( $file, $iter )β serializes the iterator to RDFa, printing the results to the filehandle you supplied,$fh. πserialize_iterator_to_string ( $iter )β serializes the iterator to RDFa and returns the result as a string. π
π BUGS π
Found a bug? Don't suffer in silence, bestie β please report any bugs to <https://github.com/kjetilk/p5-rdf-trine-serializer-rdfa/issues>. The maintainers are listening. π
π¦ SEE ALSO π¦
Go read up on these, they're the whole friend group:
RDF::RDFa::GeneratorRDF::TrineAttean
π ACKNOWLEDGEMENTS π
Giving credit where credit is due, always. This module is mostly a straightforward port, with substantial cutnpaste, from RDF::RDFa::Generator and RDF::Trine, by Toby Inkster and Gregory Todd Williams respectively. Legends. π
π AUTHOR π
Kjetil Kjernsmo <kjetilk@cpan.org>.
πΈ COPYRIGHT AND LICENCE πΈ
This software is copyright (c) 2017, 2018, 2019 by Kjetil Kjernsmo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, honestly. π
β οΈ 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.
No cap, it really does say that. Read it twice. π
And that's the whole page, bestie! Shoutout to perl v5.36.0 and the date 2022-12-04, which is when this little gem of a manpage got its last glow-up. π
β¨π«Ά
π¦ where this page comes from
- debian bookworm: librdf-trine-serializer-rdfa-perl 0.101-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: librdf-trine-serializer-rdfa-perl 0.101-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-serializer-rdfa-perl 0.101-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: librdf-trine-serializer-rdfa-perl 0.101-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms