The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>RDF::Core::Model::Parser - interface between model and RDF::Core::Parser</title>
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">

<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<ul>

		<li><a href="#interface">Interface</a></li>
	</ul>

	<li><a href="#license">LICENSE</a></li>
	<li><a href="#author">AUTHOR</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>RDF::Core::Model::Parser - interface between model and RDF::Core::Parser</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
  require RDF::Core::Model::Parser;
  %options = (Model =&gt; $model,
              Source =&gt; $fileName,
              SourceType =&gt; 'file',
              #parserOptions
              BaseURI =&gt; &quot;<a href="http://www.foo.com/&quot">http://www.foo.com/&quot</a>;,
              BNodePrefix =&gt; &quot;genid&quot;
             )
  my $parser = new RDF::Core::Model::Parser(%options);
  $parser-&gt;parse;</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>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.</p>
<p>
</p>
<h2><a name="interface">Interface</a></h2>
<ul>
<li><strong><a name="item_new"><code>new(%options)</code></a></strong><br />
</li>
Available options are:
<ul>
<li><strong><a name="item_model">Model</a></strong><br />
</li>
Where should the statements be stored in.
<p></p>
<li><strong><a name="item_source">Source</a></strong><br />
</li>
A name of a XML file or a string containing XML.
<p></p>
<li><strong><a name="item_sourcetype">SourceType</a></strong><br />
</li>
Contains 'string' if source is a XML string or 'file' if source is a file name.
<p></p>
<li><strong><a name="item__5bparseroptions_5d">[ParserOptions]</a></strong><br />
</li>
All other options are passed to the parser (<a href="/RDF/Core/Parser.html">the RDF::Core::Parser manpage</a>).
<p></p></ul>
<li><strong><a name="item_getoptions">getOptions</a></strong><br />
</li>
<li><strong><a name="item_setoptions"><code>setOptions(\%options)</code></a></strong><br />
</li>
<li><strong><a name="item_parse">parse</a></strong><br />
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="license">LICENSE</a></h1>
<p>This package is subject to the MPL (or the GPL alternatively).</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Ginger Alliance, <a href="mailto:rdf@gingerall.cz">rdf@gingerall.cz</a></p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>RDF::Core::Parser, RDF::Core::Model</p>

</body>

</html>