RDF::Trine::Serializer::RDFJSON3pm
Rdf/json serializer
Usage
use RDF::Trine::Serializer::RDFJSON;my $serializer = RDF::Trine::Serializer::RDFJSON->new();
Version
This document describes RDF::Trine::Serializer::RDF/JSON version 1.019
Overview
The RDF::Trine::Serializer::Turtle class provides an API for serializing RDF graphs to the RDF/JSON syntax.
Methods
Beyond the methods documented below, this class inherits methods from the RDF::Trine::Serializer class.
- "new"
-
Returns a new serializer object.
- "serialize_model_to_file ( $file, $model [,\%json_options] )"
-
Serializes the
$modelto RDF/JSON, printing the results to the supplied$filehandle.%json_optionsis an options hash suitable for JSON::to_json.
- "serialize_model_to_string ( $model [,\%json_options] )"
-
Serializes the
$modelto RDF/JSON, returning the result as a string.%json_optionsis an options hash suitable for JSON::to_json.
Releases
7 releases since Debian 7 (Wheezy); the text changed 5 times.