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_typemedia_typeshandled_typefile_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 πΈ
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 theperl v5.40.0build, dated2025-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
- 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