Attean...:JSONLD(3pm)

πŸ“¦
version 0.001 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– AtteanX::Parser::JSONLD β€” the JSONLD parser bestie πŸ’–

okay so you found the AtteanX::Parser::JSONLD page in the user-contributed Perl docs, and honestly? slay. let's get into it. ✨


πŸ“Œ NAME

AtteanX::Parser::JSONLD β€” it's a JSONLD Parser. that's the whole vibe check. πŸ¦‹


🌸 VERSION

This document describes AtteanX::Parser::JSONLD version 0.001. yes, 0.001. she's brand new, she's baby, she's iconic. πŸ’…


✨ SYNOPSIS

here's the moment you've been waiting for, copy-paste approved:

use Attean;
my $parser = Attean->get_parser('JSONLD')->new();
$parser->parse_cb_from_io( $fh );

literally just grab yourself an Attean parser with 'JSONLD', new() it up, and yeet your filehandle at parse_cb_from_io. done. periodt. πŸŽ€


πŸ’œ DESCRIPTION

This module implements a JSON-LD 1.11 RDF parser for Attean. that's it, that's the whole glow-up β€” it's the thing that eats JSON-LD and hands you RDF. no cap. πŸ”₯


🌈 ROLES

not me consuming roles, main character energy only. this class consumes the following roles:

  • Attean::API::MixedStatementParser
  • Attean::API::AbbreviatingParser
  • Attean::API::PullParser

three roles, three little crowns, we love to see it. πŸ‘‘


πŸ› οΈ METHODS

canonical_media_type

Returns the canonical media type for JSON-LD: application/ld+json. that's her government name. πŸ“›

media_types

Returns a list of media types that may be parsed with the JSON-LD parser: application/ld+json.

file_extensions

Returns a list of file extensions that may be parsed with the parser. (the original doesn't spill the extensions, bestie, so neither will i β€” no inventing facts in this group chat πŸ™ˆ)

parse_iter_from_io( $fh )

Returns an iterator of Attean::API::Binding objects that result from parsing the data read from the IO::Handle object $fh. so: hand her an $fh, get back a whole iterator of bindings. it's giving buffet. πŸ“

parse_cb_from_bytes( $data )

Calls the $parser->handler function once for each Attean::API::Binding object that result from parsing the data read from the UTF-8 encoded byte string $data. one call per binding, $data must be UTF-8 encoded bytes, iykyk. πŸ’œ


πŸ› BUGS

Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/atteanx-parser-jsonld/issues>.

(yeah, "report ... to through the" β€” that's how the original words it, i'm not fixing grammar that isn't mine to fix 😭)

fr fr, if something's busted, the issues page is right there. go tell on it. 🫢

πŸ‘©β€πŸ’» AUTHOR

Gregory Todd Williams <gwilliams@cpan.org>


Copyright (c) 2020--2020 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


🌟 SEE ALSO

hmm, the original doesn't list a SEE ALSO section, so there's nothing extra to point you at here β€” but the Attean module itself is where all this starts, as shown up in the SYNOPSIS. 🧚


and that's the whole page, bestie!! πŸ’– this was generated by perl v5.40.0 on 2024-08-25, and it lives in the Attean...:JSONLD(3pm) part of the user-contributed Perl documentation. mwah. πŸ’‹ ✨

πŸ“¦ where this page comes from