Class Redland::Serializer
In: lib/rdf/redland/serializer.rb
Parent: Object

This module provides RDF graph to syntax serialization support via factory classes providing one or more particular target syntaxes.

Methods

Public Class methods

You shouldn‘t use this. Used internally for cleanup.

Constructor - create a new Serializer object name - the serializer factory name mime_type - the MIME type of the syntax uri - URI of syntax

Create a NTriples serializer uri - URI of syntax

Public Instance methods

Get a parser feature. The feature is named via RDF::Redland::URI I<URI>

Serialize the RDF graph in model to a string

Set a serializer feature. The feature is named via RDF::Redland::URI I<URI> and the value is a RDF::Redland::Node.

Set a serializer namepace to the desired prefix

Serializes a model and stores it in a file name - the serializer factory name mime_type - the MIME type of the syntax base_uri - URI of syntax

[Validate]