1AtteanX::Parser::TurtleU(s3e)r Contributed Perl DocumentaAttitoenanX::Parser::Turtle(3)
2
3
4

NAME

6       AtteanX::Parser::Turtle - Turtle RDF Parser
7

VERSION

9       This document describes AtteanX::Parser::Turtle version 0.033
10

SYNOPSIS

12        use Attean;
13        my $parser     = AtteanX::Parser::Turtle->new( handler => sub {...}, base => $base_iri );
14
15        # Parse data from a file-handle and handle triples in the 'handler' callback
16        $parser->parse_cb_from_io( $fh );
17
18        # Parse the given byte-string, and return an iterator of triples
19        my $iter = $parser->parse_iter_from_bytes('<s> <p> 1, 2, 3 .');
20        while (my $triple = $iter->next) {
21          print $triple->as_string;
22        }
23

DESCRIPTION

25       This module implements a parser for the Turtle RDF format.
26

ROLES

28       This class consumes Attean::API::Parser, Attean::API::PushParser,
29       <Attean::API::AbbreviatingParser>, and <Attean::API::TripleParser>.
30

ATTRIBUTES

32       "canonical_media_type"
33       "media_types"
34       "file_extensions"
35       "canonicalize"
36           A boolean indicating whether term values should be canonicalized
37           during parsing.
38

METHODS

40       "has_namespaces"
41           Returns true if the parser has a namespace map, false otherwise.
42
43       "parse_cb_from_io( $fh )"
44           Calls the "$parser->handler" function once for each
45           Attean::API::Binding object that result from parsing the data read
46           from the IO::Handle object $fh.
47
48       "parse_cb_from_bytes( $data )"
49           Calls the "$parser->handler" function once for each
50           Attean::API::Binding object that result from parsing the data read
51           from the UTF-8 encoded byte string $data.
52
53       "parse_term_from_bytes ( $bytes )"
54       "parse_node ( $bytes )"
55           Returns the Attean::API::Term object corresponding to the node
56           whose N-Triples serialization is found at the beginning of $bytes.
57

BUGS

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

AUTHOR

63       Gregory Todd Williams  "<gwilliams@cpan.org>"
64
66       Copyright (c) 2014--2022 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.36.0                      2022-10-03        AtteanX::Parser::Turtle(3)
Impressum