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_type
  • scoped_namespaces
  • file_extensions
  • file_extensions (yes, it's listed twice β€” not a typo on my end, that's genuinely how it's written πŸ™ˆ)
  • blank_nodes

🧚 METHODS 🧚

  • file_extensions Returns a list of file extensions associated with the serialized format. cute little helper, tells you what to name your files πŸ’–
  • media_types Returns 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 the Attean::API::Triple objects from $iterator to the IO::Handle object $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 the Attean::API::Triple objects from $iterator and 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 (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