Attean...:Turtle(3pm)

🌸 NAME 🌸

okay so bestie, welcome to the page for AtteanX::Parser::Turtle β€” a Turtle RDF Parser. In the manual it lives under Attean...:Turtle(3pm), and the header says User Contributed Perl Documentation. πŸ’– This is the whole name-and-title situation, and it's giving exactly what it needs to give.

✨ VERSION ✨

This document describes AtteanX::Parser::Turtle version 0.035. no cap, that's the version. 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

Here's the code, bestie β€” copy it exactly:

use Attean;
my $parser     = AtteanX::Parser::Turtle->new( handler => sub {...}, base => $base_iri );

# 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('<s> <p> 1, 2, 3 .');
while (my $triple = $iter->next) {
  print $triple->as_string;
}

πŸŽ€ DESCRIPTION πŸŽ€

This module implements a parser for the Turtle RDF format. That's it, that's the job, and it ate. πŸ’…

πŸ‘‘ ROLES πŸ‘‘

This class consumes Attean::API::Parser, Attean::API::PushParser, <Attean::API::AbbreviatingParser>, and <Attean::API::TripleParser>. periodt. ✨

🧚 ATTRIBUTES 🧚

These are the attributes listed for this parser, no additions, no deletions:

  • canonical_media_type
  • media_types
  • file_extensions
  • canonicalize β€” a boolean indicating whether term values should be canonicalized during parsing. 🫢
  • blank_nodes
  • has_blank_nodes_map

πŸ’œ METHODS πŸ’œ

  • has_namespaces β€” returns true if the parser has a namespace map, and false otherwise. 🌈
  • parse_cb_from_io( $fh ) β€” calls the $parser->handler function once for each Attean::API::Binding object that results from parsing the data read from the IO::Handle object $fh. πŸ’–
  • parse_cb_from_bytes( $data ) β€” calls the $parser->handler function once for each Attean::API::Binding object that results from parsing the data read from the UTF-8 encoded byte string $data. πŸ¦‹
  • parse_term_from_bytes ( $bytes ) and parse_node ( $bytes ) β€” return the Attean::API::Term object corresponding to the node whose N-Triples serialization is found at the beginning of $bytes. ⭐

πŸ’€ BUGS πŸ’€

Please report any bugs or feature requests through the GitHub web interface at https://github.com/kasei/perlrdf/issues. πŸ› they wanna hear from you, bestie.

🌸 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, your manual page πŸ’‹ β€” generated from perl v5.40.0 on 2025-01-26, filed under Attean...:Turtle(3pm). mwah! 🫢✨

πŸ“¦ where this page comes from