Attean...:JSONLD(3pm)
π 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::MixedStatementParserAttean::API::AbbreviatingParserAttean::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
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
- ubuntu resolute: libatteanx-parser-jsonld-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libatteanx-parser-jsonld-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms