RDF::T...FPatch(3pm)
π RDF::Trine::Exporter::RDFPatch β the vibe β¨
okay bestie, welcome to the User Contributed Perl Documentation for RDF::Trine::Exporter::RDFPatch (that's the RDF::T...FPatch(3pm) situation you clicked on, the terminal just truncates her name like that, rude honestly). She exports RDF-Patch and she does it flawlessly. no cap.
πΈ NAME πΈ
RDF::Trine::Exporter::RDFPatch β RDF-Patch Export π¦
like⦠the name is the whole personality. it exports. to RDF-Patch. periodt.
π VERSION π
This document describes RDF::Trine::Exporter::RDFPatch version 1.019 π
β¨ SYNOPSIS β¨
the little "hello world" moment. look at her go:
use RDF::Trine::Exporter::RDFPatch;
my $serializer = RDF::Trine::Exporter::RDFPatch->new();
that's it. that's the entrance. main character energy from line one, ngl. π
π DESCRIPTION π
So. The RDF::Trine::Exporter::RDFPatch class hands you an API for serializing RDF graphs to the RDF-Patch syntax. that's the whole job. she takes your graph and turns it into that patch-flavored text, and she's lowkey obsessed with doing it right. π«Ά
π§ METHODS π§
one bullet-free zone, we're doing full method moment here. every single one, no skipping, that's the rule bestie.
new ( sink => $sink )
Returns a new RDF-Patch exporter object. you hand her a sink and she's ready to spill. π
comment ( $c )
Serializes a comment with the given string. say something cute in the output, it's fine.
emit_operation ( $op, @operands )
Serializes an operation identified by the character $op, followed by @operands (separated by a single space) and a trailing DOT and newline. the way that it justβ¦ does the format correctly. π
add ( $st )
Serializes an add/insert operation for the given statement object. new statement, who dis.
delete ( $st )
Serializes a delete operation for the given statement object. gone. not me being emotional about it. π
statement_as_string ( $st )
Returns a string with the supplied RDF::Trine::Statement object serialized as an RDF-Patch string. one statement, one string, immaculate.
terms_as_string_list ( @terms )
Returns a list with each supplied term serialized as RDF-Patch strings. plural girlie. multiple terms, multiple strings, we love a list. β¨
node_as_concise_string
Returns a string representation using RDF-Patch syntax shortcuts (e.g. PrefixNames). concise!! she's keeping it short and iconic, no filler. π₯
π¦ NOTES π¦
As described in as_ntriples in RDF::Trine::Node::Resource, serialization will decode any punycode (that's <http://www.ietf.org/rfc/rfc3492.txt>) that is included in the IRI, and serialize it using unicode codepoint escapes. so likeβ¦ the punycode gets translated on the way out. iykyk. π«
π BUGS π
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.
not me asking you to file your bugs nicely. but like, fr fr, that's the link, go use it. π«Ά
π SEE ALSO π
go read the spec bestie, it's giving homework but it's the good kind.
π 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.
and that's the page!! generated by perl v5.38.2 on 2024-01-13 π β¨ thanks for reading bestie, go serialize something gorgeous, mwah ππ¦
π¦ 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