1RDF::Trine::Parser::TurUtsleer(3C)ontributed Perl DocumeRnDtFa:t:iTornine::Parser::Turtle(3)
2
3
4

NAME

6       RDF::Trine::Parser::Turtle - Turtle RDF Parser
7

VERSION

9       This document describes RDF::Trine::Parser::Turtle version 1.019
10

SYNOPSIS

12        use RDF::Trine::Parser;
13        my $parser     = RDF::Trine::Parser->new( 'turtle' );
14        $parser->parse_into_model( $base_uri, $data, $model );
15

DESCRIPTION

17       This module implements a parser for the Turtle RDF format.
18

METHODS

20       Beyond the methods documented below, this class inherits methods from
21       the RDF::Trine::Parser class.
22
23       "new ( [ namespaces => $map ] )"
24           Returns a new Turtle parser.
25
26       "parse ( $base_uri, $rdf, \&handler )"
27           Parses the bytes in $data, using the given $base_uri. Calls the
28           "triple" method for each RDF triple parsed. This method does
29           nothing by default, but can be set by using one of the default
30           "parse_*" methods.
31
32       "parse_file ( $base_uri, $fh, $handler )"
33           Parses all data read from the filehandle or file $fh, using the
34           given $base_uri. If $fh is a filename, this method can guess the
35           associated parse. For each RDF statement parses $handler is called.
36
37       "parse_node ( $string, $base, [ token => \$token ] )"
38           Returns the RDF::Trine::Node object corresponding to the node whose
39           N-Triples serialization is found at the beginning of $string.  If a
40           reference to $token is given, it is dereferenced and set to the
41           RDF::Trine::Parser::Turtle::Token tokenizer object, allowing access
42           to information such as the token's position in the input string.
43

BUGS

45       Please report any bugs or feature requests to through the GitHub web
46       interface at <https://github.com/kasei/perlrdf/issues>.
47

AUTHOR

49       Gregory Todd Williams  "<gwilliams@cpan.org>"
50
52       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
53       software; you can redistribute it and/or modify it under the same terms
54       as Perl itself.
55
56
57
58perl v5.30.1                      2020-01-30     RDF::Trine::Parser::Turtle(3)
Impressum