RDF::Notation3 0.90 review

Download
by rbytes.net on

RDF::Notation3 is a RDF Notation3 parser. SYNOPSIS $rdf = RDF::Notation3::Triples->new(); $rdf->parse_file($path); $triple

License: Perl Artistic License
File size: 17K
Developer: Petr Cimprich
0 stars award from rbytes.net

RDF::Notation3 is a RDF Notation3 parser.

SYNOPSIS

$rdf = RDF::Notation3::Triples->new();
$rdf->parse_file($path);
$triples = $rdf->get_triples;

$rdf = RDF::Notation3::XML->new();
$rdf->parse_file($path);
$string = $rdf->get_string;

$handler = SAXHandler->new();
$rdf = RDF::Notation3::SAX->new(Handler => $handler);
$rdf->parse_file($path);

$rdf = RDF::Notation3::RDFCore->new();
$storage = RDF::Core::Storage::Memory->new();
$rdf->set_storage($storage);
$model = $rdf->parse_file($path);
$n3 = $rdf->get_n3($model);

$rdf = RDF::Notation3::RDFStore->new();
$rdf->set_options({ Name => 'test', Split => 20 });
$model = $rdf->parse_file($path);

This module is an RDF/N3 parser; it can parse N3 files or strings and provide results in whatever format (as far as there are subclasses supporting your desired format available).
RDF::Notation3 is a base class providing the parsing logic only. This class is never used directly.

Instead, derived classes such as RDF::Notation3::Triples or Notation3::XML are used. The subclasses control how results of parsing are processed and can provide additional methods to access the results then. RDF::Notation3 doesn't tend to create sophisticated in-memory or persistent RDF structures of its own; it should more likely serve as a parser for other Perl RDF modules (such as RDF::Core) focused on how to store and access RDF models.

Requirements:
RDF::Notation3 is a RDF Notation3 parser.

RDF::Notation3 0.90 search tags