Attean...Triples(3pm)
π AtteanX::Parser::NTriples π
okay bestie, welcome to the Attean...Triples(3pm) page from the User Contributed Perl Documentation. we're doing the N-Triples parser today, and yes, every method is getting its moment. π¦
π NAME π
AtteanX::Parser::NTriples β N-Triples Parser. periodt.
π VERSION π
This document describes AtteanX::Parser::NTriples version 0.035. π
β¨ SYNOPSIS β¨
bestie, here's the code exactly as it wants to be seen:
use Attean;
my $parser = Attean->get_parser('NTriples')->new();
# Parse data from a file-handle and handle triples in the 'handler' callback
$parser->parse_cb_from_io( $fh );
# Parse the given byte-string, and return an iterator of triples
my $iter = $parser->parse_iter_from_bytes('<http://example.org/subject> <tag:example.org:predicate> "object" .');
while (my $triple = $iter->next) {
print $triple->as_string;
}
π DESCRIPTION π
This module implements a parser for the N-Triples format. that's the whole main character energy of this module, no cap. π«Ά
π§ ROLES π§
This class consumes Attean::API::Parser, Attean::API::PullParser and <Attean::API::TripleParser>. yup, all three. iconique. β¨
π₯ METHODS π₯
parse_iter_from_io( $fh )β returns anAttean::API::Iteratorresulting from parsing the data read from theIO::Handleobject$fh. πparse_iter_from_bytes( $data )β returns anAttean::API::Iteratorresulting from parsing the data read from the UTF-8 encoded byte string$data. πΈ"canonical_media_type"β returns the canonical media type for N-Triples:application/n-triples. slay. π"media_types"β returns a list of media types that may be parsed with the N-Triples parser:application/n-triples. π₯"file_extensions"β returns a list of file extensions that may be parsed with the parser. π
π BUGS π
pls report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. π
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" π«Ά
π COPYRIGHT π
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
xoxo bestie, this page was served up by perl v5.40.0, dated 2025-01-26, for Attean...Triples(3pm) πβ¨
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms