Attean...:RDFXML(3pm)
π AtteanX::Serializer::RDFXML β RDF/XML Serializer β¨
okay bestie, so this page is from the Perl world β it's Attean...:RDFXML(3pm) in your manual, and it's literally all about the RDF/XML serializer. ngl it's a short one, so we can absolutely get through it together π«Ά
πΈ VERSION πΈ
This document describes AtteanX::Serializer::RDFXML version 0.035. slay, noted π
β¨ SYNOPSIS β¨
here's the whole vibe in four lines, no cap:
use Attean;
my $s = Attean->get_serializer('RDFXML')->new();
$s->serialize_iter_to_io( $fh, $iter );
that's it. that's the entire flex π
you grab the RDFXML serializer off Attean, make a new one, and push your iterator at a filehandle. iconic.
π¦ DESCRIPTION π¦
...
(no fr, that's what it says β the docs are just three dots. main character silence. iykyk π)
π ATTRIBUTES π
the attributes are, in order:
canonical_media_typescoped_namespacesfile_extensionsfile_extensions(yes, it's listed twice β not a typo on my end, that's genuinely how it's written π)blank_nodes
π§ METHODS π§
file_extensionsReturns a list of file extensions associated with the serialized format. cute little helper, tells you what to name your files πmedia_typesReturns a list of media types that identify the format produced by this serializer. so you know what MIME type to brag about β¨serialize_iter_to_io( $fh, $iterator )Serializes theAttean::API::Tripleobjects from$iteratorto theIO::Handleobject$fh.
β οΈ heads up bestie: $fh SHOULD be open with the UTF-8 encoding. like, please. open it right or your emoji-adjacent unicode data is gonna have a bad time π
serialize_iter_to_bytes( $iterator )Serializes theAttean::API::Tripleobjects from$iteratorand returns the serialization as a UTF-8 encoded byte string. so you get bytes back instead of writing to a handle β perfect for when you wanna hold the whole thing in memory π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.
that's the link, go off π (also likeβ¦ the original says "report any bugs or feature requests to through the GitHub web interface" β the extra "to" is theirs, not mine, we love a quirky sentence π)
π₯ SEE ALSO π₯
(the actual RDF/XML grammar spec, go read it if you're feeling academic π)
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org>
β COPYRIGHT β
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
periodt. free software, same terms as Perl itself, that's the whole deal π
okay that's the page!! π and a lil sign-off for the footer: this was perl v5.40.0, dated 2025-01-26, filed under Attean...:RDFXML(3pm) β drink water, hydrate, and go serialize something beautiful bestie πβ¨π¦
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms