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

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

πŸ’… 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 (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