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: whileRDF::Trine::Node::Formulaunderstands quantification (@forAll,@forSome),RDF::Trine::Modeldoes not. This means that@forAlland@forSomedefined 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!@forAlland@forSomewithin 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$modelto 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$modelto 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::NTriplesRDF::Trine::Serializer::Turtle
the whole serializer bestie squad fr fr πΈ
π AUTHOR
Toby Inkster "<tobyink@cpan.org>" β king behavior, we stan π
π COPYRIGHT AND LICENCE
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
- debian bookworm: librdf-trin3-perl 0.206-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-trin3-perl 0.206-3 Β· 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