1AtteanX::Parser::NTriplUesse(r3)Contributed Perl DocumenAttatteiaonnX::Parser::NTriples(3)
2
3
4

NAME

6       AtteanX::Parser::NTriples - N-Triples Parser
7

VERSION

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

SYNOPSIS

12        use Attean;
13        my $parser = Attean->get_parser('NTriples')->new();
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('<http://example.org/subject> <tag:example.org:predicate> "object" .');
20        while (my $triple = $iter->next) {
21          print $triple->as_string;
22        }
23

DESCRIPTION

25       This module implements a parser for the N-Triples format.
26

ROLES

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

METHODS

32       "canonical_media_type"
33           Returns the canonical media type for N-Triples:
34           application/n-triples.
35
36       "media_types"
37           Returns a list of media types that may be parsed with the N-Triples
38           parser: application/n-triples.
39
40       "file_extensions"
41           Returns a list of file extensions that may be parsed with the
42           parser.
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) 2014--2022 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.36.0                      2022-10-03      AtteanX::Parser::NTriples(3)
Impressum