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

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

πŸ’… 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 $model to 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 $model to 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 $file and 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 supplied RDF::Trine::Statement::Quad object 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 (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