GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RDF::Core::Model::Parser(3) User Contributed Perl Documentation RDF::Core::Model::Parser(3)

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

  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;

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.

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 (RDF::Core::Parser).

  • getOptions
  • setOptions(\%options)
  • parse

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

Ginger Alliance, rdf@gingerall.cz

RDF::Core::Parser, RDF::Core::Model
2004-08-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.