RDF::Trine::Parser::Notation3 - Notation 3 Parser


 use RDF::Trine::Parser;
 my $parser     = RDF::Trine::Parser->new( 'Notation3' );
 $parser->parse_into_model( $base_uri, $data, $model );


This package exposes the standard RDF::Trine::Parser methods, plus:


Sets a callback handler for @forAll directives found in the top-level graph. (@forAll found in nested formulae will not be passed to this callback.)

The handler should be a coderef that takes a single argument: an RDF::Trine::Node::Resource.

If you do not set a handler, a warning will be issued when this directive are encountered in the top level graph, but parsing will continue.


As forAll but handles @forSome directives.

parse_formula($base, $input)

Returns an RDF::Trine::Node::Formula object representing the Notation 3 formula given as $input. $input should not include the "{"..."}" wrappers.


Toby Inkster <>

Based on RDF::Trine::Parser::Turtle by Gregory Todd Williams.


Copyright (c) 2006-2010 Gregory Todd Williams.

Copyright (c) 2010 Toby Inkster.

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.