The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

RDF::Simple::Serialiser::N3 - Output RDF triples in Notation3 format

SYNOPSIS

Same as RDF::Simple::Serialiser, except when you call serialise(), you get back a string in Notation3 format.

PRIVATE METHODS

render_rdfxml

This method does all the Notation3 formatting. Yes, it is named wrong; but all other functionality is inherited from RDF::Simple::Serialiser and that's how the author named the output function. You won't be calling this method anyway, you'll be calling the serialise() method, so what do you care! In fact, I wouldn't even be telling you about it if I weren't playing the CPANTS game...

PUBLIC METHODS

get_triple_count

Returns the number of triples created since the last call to reset_triple_count().

reset_triple_count

Resets the internal counter of triples to zero.

NOTES

This module tries to automatically detect when the value of a property is a string (as opposed to numeric) and add double-quotes around it. This is probably not perfect, so please contact the author if you find a bug, or if you need a smarter way of handling value types.

Sorry, there is no Notation3 parser for RDF::Simple. Not yet, anyway.

BUGS

Please use the website http://rt.cpan.org to report bugs and request new features.

AUTHOR

Martin Thurn <mthurn@cpan.org>

LICENSE

This software is released under the same license as Perl itself.