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

πŸ’– RDF::Trine::Serializer::Notation3 β€” the Notation 3 Serializer ✨

okay bestie, so you know the deal β€” this is a perl manual page, RDF::T...tation3(3pm) if we're being formal, and it's part of the User Contributed Perl Documentation. It's giving "serialize your RDF graphs into Notation 3" and honestly? iconic. let's get into it πŸŽ€


🌈 SYNOPSIS

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

like. that's it. two lines. she's low maintenance, she's efficient, she's that girl πŸ’…


✨ DESCRIPTION

so the RDF::Trine::Serializer::Notation3 class hands you an API for serializing RDF graphs into the Notation 3 syntax. that's the whole vibe. no cap.

now. real talk. the output of this class is not optimised for human-readability β€” it's a data dump, bestie. it is NOT here to be pretty for you. the only minor concession it makes to human readers is that it will nicely indent formulae. that's it. that's the one (1) crumb it throws you πŸ“

and there are plans to port cwm's Notation 3 output to Perl, but that's likely to be distributed separately due to licensing concerns. so like, don't hold your breath waiting for it in here πŸ™ˆ

caveat scriptor: while RDF::Trine::Node::Formula understands quantification (@forAll, @forSome), RDF::Trine::Model does not. This means that @forAll and @forSome defined in the top-level graph are not-round-tripped between the Notation 3 parser and serialiser β€” the parser will give you warnings about this. lowkey annoying, highkey worth knowing 😭 But! @forAll and @forSome within formulae will work fine. slay.

πŸ› οΈ Constructor

  • new β€” Returns a new Notation 3 serializer object. fresh out the box, ready to go πŸ’–

🧚 Methods

  • serialize_model_to_file ( $fh, $model ) β€” Serializes the $model to Notation 3, printing the results to the supplied filehandle <$fh">. yes the quoting in the original is a lil cursed, we don't talk about it πŸ’€
  • serialize_model_to_string ( $model ) β€” Serializes the $model to Notation 3, returning the result as a string. string gang rise up ✨
  • serialize_iterator_to_file ( $file, $iter ) β€” Serializes the iterator to Notation 3, printing the results to the supplied filehandle <$fh">.
  • serialize_iterator_to_string ( $iter ) β€” Serializes the iterator to Notation 3, returning the result as a string.

πŸ› BUGS

found a bug? please report any bugs to:

http://rt.cpan.org/Dist/Display.html?Queue=RDF-TriN3

do it for the culture 🫢


πŸ‘€ SEE ALSO

  • RDF::Trine::Serializer::NTriples
  • RDF::Trine::Serializer::Turtle

the whole serializer bestie squad fr fr 🌸


πŸ‘‘ AUTHOR

Toby Inkster "<tobyink@cpan.org>" β€” king behavior, we stan πŸ’œ


Copyright (c) 2010-2012 Toby Inkster.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt. ✨


⚠️ DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

translation: no promises, bestie, you're on your own 😭 (but like, in a legally-binding way)


okay that's the whole page!! this was generated from perl version v5.34.0, dated 2022-06-17, and that's the RDF::T...tation3(3pm) footer moment β€” mwah, bye bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from