RDF::T...::TriG(3pm)
π 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,$modelto 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 anRDF::Trine::Statement::Quadobject 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 π
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
- debian trixie: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-trine-perl 1.019-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms