1RDF::Trine::Serializer:U:sReDrFJCSoOnNt(r3i)buted Perl DRoDcFu:m:eTnrtiantei:o:nSerializer::RDFJSON(3)
2
3
4
6 RDF::Trine::Serializer::RDFJSON - RDF/JSON Serializer
7
9 This document describes RDF::Trine::Serializer::RDF/JSON version 1.019
10
12 use RDF::Trine::Serializer::RDFJSON;
13 my $serializer = RDF::Trine::Serializer::RDFJSON->new();
14
16 The RDF::Trine::Serializer::Turtle class provides an API for
17 serializing RDF graphs to the RDF/JSON syntax.
18
20 Beyond the methods documented below, this class inherits methods from
21 the RDF::Trine::Serializer class.
22
23 "new"
24 Returns a new serializer object.
25
26 "serialize_model_to_file ( $file, $model [,\%json_options] )"
27 Serializes the $model to RDF/JSON, printing the results to the
28 supplied $file handle.
29
30 %json_options is an options hash suitable for JSON::to_json.
31
32 "serialize_model_to_string ( $model [,\%json_options] )"
33 Serializes the $model to RDF/JSON, returning the result as a
34 string.
35
36 %json_options is an options hash suitable for JSON::to_json.
37
39 Please report any bugs or feature requests to through the GitHub web
40 interface at <https://github.com/kasei/perlrdf/issues>.
41
43 <http://n2.talis.com/wiki/RDF_JSON_Specification>
44
46 Toby Inkster <tobyink@cpan.org>
47 Gregory Williams <gwilliams@cpan.org>
48
50 Copyright (c) 2010 Toby Inkster. This program is free software; you can
51 redistribute it and/or modify it under the same terms as Perl itself.
52
53
54
55perl v5.34.0 2022-01-21RDF::Trine::Serializer::RDFJSON(3)