1RDF::Trine::Serializer:U:sTeurrtCloen(t3r)ibuted Perl DoRcDuFm:e:nTtraitnieo:n:Serializer::Turtle(3)
2
3
4
6 RDF::Trine::Serializer::Turtle - Turtle Serializer
7
9 This document describes RDF::Trine::Serializer::Turtle version 1.019
10
12 use RDF::Trine::Serializer::Turtle;
13 my $serializer = RDF::Trine::Serializer::Turtle->new( namespaces => { ex => 'http://example/' } );
14 print $serializer->serialize_model_to_string($model);
15
17 The RDF::Trine::Serializer::Turtle class provides an API for
18 serializing RDF graphs to the Turtle syntax. XSD numeric types are
19 serialized as bare literals, and where possible the more concise syntax
20 is used for rdf:Lists.
21
23 Beyond the methods documented below, this class inherits methods from
24 the RDF::Trine::Serializer class.
25
26 "new ( namespaces => \%namespaces, base_uri => $base_uri )"
27 Returns a new Turtle serializer object.
28
29 "serialize_model_to_file ( $fh, $model )"
30 Serializes the $model to Turtle, printing the results to the
31 supplied filehandle "<$fh">.
32
33 "serialize_model_to_string ( $model )"
34 Serializes the $model to Turtle, returning the result as a string.
35
36 "serialize_iterator_to_file ( $file, $iter )"
37 Serializes the iterator to Turtle, printing the results to the
38 supplied filehandle "<$fh">.
39
40 "serialize_iterator ( $sink, $iter )"
41 Serializes the iterator to Turtle, printing the results to the
42 supplied sink object.
43
44 "serialize_iterator_to_string ( $iter )"
45 Serializes the iterator to Turtle, returning the result as a
46 string.
47
48 "serialize_node ( $node )"
49 Returns a string containing the Turtle serialization of $node.
50
51 "node_as_concise_string"
52 Returns a string representation using common Turtle syntax
53 shortcuts (e.g. for numeric literals).
54
56 Please report any bugs or feature requests to through the GitHub web
57 interface at <https://github.com/kasei/perlrdf/issues>.
58
60 <http://www.w3.org/TeamSubmission/turtle/>
61
63 Gregory Todd Williams "<gwilliams@cpan.org>"
64
66 Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
67 software; you can redistribute it and/or modify it under the same terms
68 as Perl itself.
69
70
71
72perl v5.34.0 2021-07-22 RDF::Trine::Serializer::Turtle(3)