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 an Attean::API::Iterator resulting from parsing the data read from the IO::Handle object $fh. πŸŽ€
  • parse_iter_from_bytes( $data ) β€” returns an Attean::API::Iterator resulting 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 (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