RDF::T...::TriG(3pm)

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

πŸ’– RDF::Trine::Serializer::TriG β€” the manual, but make it cute ✨

okay bestie, so you're looking at the docs for RDF::Trine::Serializer::TriG (that's the RDF::T...::TriG(3pm) page β€” User Contributed Perl Documentation, if you're being fancy about it). This is the whole thing, no skips, no crumbs. 🫢


✨ VERSION ✨

This document describes RDF::Trine::Serializer::TriG version 1.019. she's got a number, she's got a legacy. periodt. πŸ’…


🌸 SYNOPSIS 🌸

the way you literally just do this and it works:

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

like. two lines. iconic. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

So the RDF::Trine::Serializer::TriG class is handing you an API for serializing RDF graphs into the TriG syntax. that's the whole job. that's the vibe. she takes your graphs and she writes them out as TriG. no cap. ✨


πŸŽ€ METHODS πŸŽ€

and now the part you actually came for, bestie. also just so you know: on top of everything listed below, this class inherits methods from the RDF::Trine::Serializer class. so that's a whole other pile of stuff she got from her mom. πŸ’œ

  • new β€” returns a brand new TriG serializer object. fresh out the box, ready to go. πŸ“
  • serialize_model_to_file ( $fh, $model ) β€” takes your $model, serializes it to TriG, and prints the results out to the filehandle you handed over, < $fh >. it goes to the file. that's the point. πŸ”₯
  • serialize_model_to_string ( $model ) β€” same deal, $model to TriG, except this one just gives the result back to you as a string. no file, just vibes. 🧚
  • serialize_iterator_to_file ( $file, $iter ) β€” serializes the iterator to TriG and prints the results to the supplied filehandle, < $fh >. (yes bestie, that's literally what the docs say, I'm not editing her words, I'm just delivering them πŸ’€)
  • serialize_iterator_to_string ( $iter ) β€” serializes the iterator to TriG and returns the result as a string. string girlie. 🌈
  • statement_as_string ( $st ) β€” give her an RDF::Trine::Statement::Quad object and she returns a string with it serialized as TriG, ending in a DOT and newline. yes, the DOT. the newline. both. she's thorough like that. ⭐
  • node_as_concise_string β€” returns a string representation using the common Turtle syntax shortcuts, like, for example, for numeric literals. concise queen. she's not gonna write it the long way when there's a shortcut. 😌

πŸ’€ BUGS πŸ’€

found a bug? want a feature? please report any bugs or feature requests through the GitHub web interface at:

https://github.com/kasei/perlrdf/issues
bestie do NOT suffer in silence, go tell the maintainers, that's literally what the link is for πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

http://sw.deri.org/2008/07/n-quads/

go read it. iykyk. πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> β€” the author. the moment. the main character energy. 🫢


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. ✨


and that's the whole page, bestie, we ate and left absolutely no crumbs πŸ’–

sign-off time: this lovely little page came to you from perl v5.38.2, dated 2024-01-13, and yes the header and footer both say RDF::T...::TriG(3pm) because the terminal was being dramatic and truncating her name. she's still her. bye bestie!! πŸŒΈπŸ’œπŸŽ€

πŸ“¦ where this page comes from