DOKK / manpages / debian 12 / librdf-trine-perl / RDF::Trine::Parser::RDFPatch.3pm.en
RDF::Trine::Parser::RDFPatch(3pm) User Contributed Perl Documentation RDF::Trine::Parser::RDFPatch(3pm)

RDF::Trine::Parser::RDFPatch - RDF-Patch Parser

This document describes RDF::Trine::Parser::RDFPatch version 1.019

 use RDF::Trine::Parser::RDFPatch;
 my $serializer = RDF::Trine::Parser::RDFPatch->new();

The RDF::Trine::Parser::RDFPatch class provides an API for serializing RDF graphs to the RDF-Patch syntax.

"new ( )"
Returns a new RDF-Patch Parser object.
"namespace_map"
Returns the RDF::Trine::NamespaceMap object used in parsing.
"parse ( $base_uri, $rdf, \&handler )"
"parse_file ( $base, $fh, \&handler )"
"handle_op ( $op, $handler, $lineno )"
Handles the RDF::Trine::Parser::RDFPatch::Op operation object. For 'A'dd operations, the $handler callback is called with the RDF statement. Otherwise an exception is thrown.
"parse_line ( $line, $base )"
Returns an operation object.
"new ( $op, @args )"
Returns a new RDF-Patch Parser operation object.

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>.

<http://afs.github.io/rdf-patch/>

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.

2022-12-12 perl v5.36.0