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


RDF-Core documentation  | view source Contained in the RDF-Core distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  require RDF::Core::Model::Serializer;

  my $xml = '';
  my $serializer = new RDF::Core::Model::Serializer(Model=>$model,
                                                    Output=>\$xml,
                                                    BaseURI => 'URI://BASE/',
                                                   );
  $serializer->serialize;
  print "$xml\n";







DESCRIPTION

Top

A Model::Serializer object sets handlers for serializer, connecting the serializer with a specific model.

Interface

* new(%options)

Available options are:

* Model

A reference to RDF::Core::Model object - the RDF model I want to serialize.

* Output, BaseURI

See RDF::Core::Serializer options

* getSubjects, getNamespaces, getStatements, countStatements, existsStatement

While the module provides defaults for each handler, you can override any of them. See RDF::Core::Serializer for details.

* getOptions
* setOptions(\%options)
* serialize

LICENSE

Top

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

AUTHOR

Top

Ginger Alliance, rdf@gingerall.cz

SEE ALSO

Top

RDF::Core::Serializer, RDF::Core::Model


RDF-Core documentation  | view source Contained in the RDF-Core distribution.