RDF::Core::Model::Parser - interface between model and RDF::Core::Parser

- NAME
- SYNOPSIS
- DESCRIPTION

- Interface

- LICENSE
- AUTHOR
- SEE ALSO

# NAME

RDF::Core::Model::Parser - interface between model and RDF::Core::Parser

# SYNOPSIS

      require RDF::Core::Model::Parser;
      %options = (Model => $model,
                  Source => $fileName,
                  SourceType => 'file',
                  #parserOptions
                  BaseURI => "http://www.foo.com/";,
                  BNodePrefix => "genid"
                 )
      my $parser = new RDF::Core::Model::Parser(%options);
      $parser->parse;

# DESCRIPTION

While RDF::Core::Parser transforms RDF/XML syntax into general assertions, RDF::Core::Model::Parser defines default handler for assertion and provides methods that should conform any parsing request. That is setting options and doing the parse job. If there is need for use of another existing rdf parser or more parsers, a new parser interface should be created.

## Interface

- `new(%options)`
Available options are:

- Model
Where should the statements be stored in.

- Source
A name of a XML file or a string containing XML.

- SourceType
Contains 'string' if source is a XML string or 'file' if source is a file name.

- [ParserOptions]
All other options are passed to the parser (the RDF::Core::Parser manpage).

- getOptions
- `setOptions(\%options)`
- parse

# LICENSE

This package is subject to the MPL (or the GPL alternatively).

# AUTHOR

Ginger Alliance, rdf@gingerall.cz

# SEE ALSO

RDF::Core::Parser, RDF::Core::Model