RDF::T...NQuads(3pm)
π RDF::T...NQuads(3pm) β bestie, it's the N-Quads Serializer
okay so. this is a page from the User Contributed Perl Documentation, and the module in question is RDF::Trine::Serializer::NQuads, aka the thing that turns your RDF graphs into N-Quads text. slay. β¨
πΈ NAME πΈ
RDF::Trine::Serializer::NQuads β the N-Quads Serializer. that's it, that's the name, no notes. π
π VERSION π
This document describes RDF::Trine::Serializer::NQuads version 1.019. (yes, we're on 1.019, keep up bestie π«Ά)
β¨ SYNOPSIS β¨
the whole vibe, in two lines:
use RDF::Trine::Serializer::NQuads;
my $serializer = RDF::Trine::Serializer::NQuads->new();
like, you import it, you make one, you go live your life. main character energy fr fr. π
π¦ DESCRIPTION π¦
The RDF::Trine::Serializer::NQuads class provides an API for serializing RDF graphs to the N-Quads syntax. that's the whole point of it. it takes your graph and it writes N-Quads. no cap. π«
π METHODS π
so beyond the methods documented below, this class inherits methods from the RDF::Trine::Serializer class. so like, there's more where that came from, but here's the main lineup:
newβ Returns a new N-Quads serializer object. your fresh new serializer, born this second, gorgeous. πserialize_model_to_file ( $fh, $model )β Serializes the$modelto N-Quads, printing the results to the supplied filehandle<$fh>. it takes your model and it writes it straight out to the filehandle. πserialize_model_to_string ( $model )β Serializes the$modelto N-Quads, returning the result as a string. same deal but it hands you back a string instead of writing it somewhere. obsessed. β¨serialize_iterator_to_file ( $file, $iter )β Serializes the iterator to N-Quads, printing the results to the supplied filehandle<$fh>. (yes, the signature says$fileand the prose says<$fh>β that's just how it is, bestie, we don't question the ancestors. π)serialize_iterator_to_string ( $iter )β Serializes the iterator to N-Quads, returning the result as a string. iterator goes in, string comes out, iconic. πstatement_as_string ( $st )β Returns a string with the suppliedRDF::Trine::Statement::Quadobject serialized as N-Quads, ending in a DOT and newline. note that. DOT. newline. every time. periodt. β
π BUGS π
found a bug? want a feature? Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.
(also yes the original sentence is a lil grammatically cursed, "report ... to through" β we're keeping it, it's part of the lore now π)
π₯ SEE ALSO π₯
that's the N-Quads spec link. go read it if you want the deep lore. iykyk. π§
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org>
πΈ 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.
heads up bestie: that copyright line is the legal vibe β free software, same terms as Perl itself, don't be weird about it. π«Ά
okay that's the whole page, you ate it, you understood it, you're a N-Quads girlie now. πβ¨
this was RDF::T...NQuads(3pm) from perl v5.38.2, dated 2024-01-13 β mwah, bye bestie, go serialize something gorgeous ππ¦π
π¦ 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