Attean...:Turtle(3pm)

✨ NAME ✨

AtteanX::Serializer::Turtle β€” it's the Turtle Serializer, bestie πŸ’… (this is a Perl module page, from the Attean... family of docs β€” yes the title got truncated, that's just how it renders, don't worry about it 🫢)

🌸 VERSION 🌸

This doc is describing AtteanX::Serializer::Turtle version 0.035 β€” that's the number, don't come for me πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the whole vibe in code, literally copy-paste energy:

use Attean;
my $serializer = Attean->get_serializer('Turtle')->new();
$serializer->serialize_iter_to_io( $io, $fh );

that's it, that's the entrance exam πŸ’–

πŸŽ€ DESCRIPTION πŸŽ€

...

no fr that is genuinely the entire description section 😭 the original page literally gives you three dots and nothing else. icon behaviour honestly. moving on ✨


πŸ’œ ATTRIBUTES πŸ’œ

these are the attributes, listed exactly like this, no notes:

  • canonical_media_type
  • media_types
  • handled_type
  • file_extensions

🌈 METHODS 🌈

⭐ file_extensions

returns a list of file extensions associated with the serialized format πŸŽ€ so like, the little suffixes that tell you "yep this file is that format."

(yes it shows up under ATTRIBUTES and as a method β€” that's not a typo on my part, that's literally how the page lists it, keep both, we don't erase lore πŸ”₯)

⭐ serialize_iter_to_io( $fh, $iterator )

serializes the Turtle token objects coming out of $iterator and writes them straight into the IO::Handle object $fh πŸ’… that's the whole thing. stream it, slay it, done.

⭐ serialize_iter_to_bytes( $iterator )

serializes the Turtle token objects from $iterator and hands you back the serialization as a UTF-8 encoded byte string πŸ¦‹ note that: bytes, not characters, encoded UTF-8, iykyk.


πŸ’€ BUGS πŸ’€

found a bug? got a feature request? don't suffer in silence, bestie β€” report it through the GitHub web interface at <https://github.com/kasei/perlrdf/issues> πŸ™ˆ they literally ask you to do it there, so do it there.

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> β€” say thank you 🫢

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. ✨ (yes the double dash in 2014--2022 is intentional, that's the range, we keep it exactly.)


lowkey a reminder: this page is the perl v5.40.0 build, dated 2025-01-26 β€” so if you're quoting it in the group chat, that's the version stamp to cite πŸŽ€πŸ’– mwah, go serialize something cute ✨
πŸ“¦ where this page comes from