1AtteanX::Parser::NQuadsU(s3e)r Contributed Perl DocumentaAttitoenanX::Parser::NQuads(3)
2
3
4

NAME

6       AtteanX::Parser::NQuads - N-Quads Parser
7

VERSION

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

SYNOPSIS

12        use Attean;
13        my $parser = Attean->get_parser('NQuads')->new();
14
15        # Parse data from a file-handle and handle quads in the 'handler' callback
16        $parser->parse_cb_from_io( $fh );
17
18        # Parse the given byte-string, and return an iterator of quads
19        my $iter = $parser->parse_iter_from_bytes('<http://example.org/subject> <tag:example.org:predicate> "object" <http://example.org/graph> .');
20        while (my $quad = $iter->next) {
21          print $quad->as_string;
22        }
23

DESCRIPTION

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

ROLES

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

METHODS

32       "canonical_media_type"
33           Returns the canonical media type for N-Quads: application/n-quads.
34
35       "media_types"
36           Returns a list of media types that may be parsed with the N-Triples
37           parser: application/n-quads.
38
39       "file_extensions"
40           Returns a list of file extensions that may be parsed with the
41           parser.
42

BUGS

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

AUTHOR

48       Gregory Todd Williams  "<gwilliams@cpan.org>"
49
51       Copyright (c) 2014--2022 Gregory Todd Williams. This program is free
52       software; you can redistribute it and/or modify it under the same terms
53       as Perl itself.
54
55
56
57perl v5.38.0                      2023-07-20        AtteanX::Parser::NQuads(3)
Impressum