RDF::T...er::TSV(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

RDF::Trine::Serializer::TSV β€” the TSV Serializer, bestie. That's it, that's the name, no notes. πŸŽ€

This page lives in the User Contributed Perl Documentation section of the manual, and the page title is RDF::T...er::TSV(3pm) (yes the terminal truncates it, we don't make the rules πŸ’…).


✨ VERSION ✨

This doc describes RDF::Trine::Store version 1.019. Not a typo, not a vibe, that's literally what it says. 🫢


🌸 SYNOPSIS 🌸

Okay so here's the whole thing in action, copy-paste ready:

use RDF::Trine::Serializer::TSV;
my $serializer = RDF::Trine::Serializer::TSV->new();

Two lines. That's the whole glow-up. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

The RDF::Trine::Serializer::TSV class is the friend that takes your RDF graphs and turns them into TSV syntax. It provides an API for serializing RDF graphs to TSV. That's its whole job and it does it, no cap. πŸ‘‘


πŸ’… METHODS πŸ’…

Beyond the methods documented below, this class inherits methods from the RDF::Trine::Serializer class. So it's not doing this alone β€” it's got ancestors, iykyk. 🧚

  • new β€” Returns a new TSV serializer object. Fresh out the box, ready to go. πŸŽ€
  • serialize_model_to_file ( $fh, $model ) β€” Serializes the $model to TSV, printing the results to the supplied filehandle <$fh>. It writes to your filehandle, it does not return it to you, so don't come for me when you get nothing back. 😭
  • serialize_model_to_string ( $model ) β€” Serializes the $model to TSV, returning the result as a string. This one does hand you the string, main character energy. πŸ’œ
  • serialize_iterator_to_file ( $file, $iter ) β€” Serializes the iterator to TSV, printing the results to the supplied filehandle <$fh>. (Yes, the signature says $file and the description says $fh, that's just how the original rolls β€” copy it exactly, bestie. πŸ™ˆ)
  • serialize_iterator_to_string ( $iter ) β€” Serializes the iterator to TSV, returning the result as a string. String in your hands, iconic. 🌈
  • result_as_string ( $result, \@names ) β€” Returns a string with the bound terms of the given RDF::Trine::VariableBindings corresponding to the given @names serialized in N-Triples format, separated by tab characters. Tabs. Separating things. That's the whole TSV moment. ⭐
  • statement_as_string ( $st ) β€” Returns a string with the nodes of the given RDF::Trine::Statement serialized in N-Triples format, separated by tab characters. Same tab situation, different input. πŸ”₯

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. Yes the original sentence reads a little cursed ("to through"), we are preserving the lore fr fr. Take your bugs there. πŸ›


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ“ AUTHOR πŸ“

Gregory Todd Williams <gwilliams@cpan.org>. The legend. The blueprint. 🫢


Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Legal but make it cute: same terms as Perl itself, periodt. πŸ’…

And that's the page, bestie β€” authored under perl v5.38.2, dated 2024-01-13, brought to you by the one and only RDF::T...er::TSV(3pm). Go serialize something gorgeous. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from