Attean...RQLJSON(3pm)
π AtteanX::Serializer::SPARQLJSON π
okay so bestie, this is the manual page for AtteanX::Serializer::SPARQLJSON β it's literally giving SPARQL Results JSON Serializer realness. we're talking version 0.035 and it's part of the Attean fam, no cap. if you're trying to turn RDF query results into JSON that SPARQL understands, this is your girl. periodt. β¨
πΈ VERSION πΈ
This doc describes AtteanX::Serializer::SPARQLJSON version 0.035. that's the vibe check, bestie. π«Ά
π SYNOPSIS π
so here's the whole mood in code form:
use Attean;
my $s = Attean->get_serializer('SPARQLJSON')->new();
$s->serialize_iter_to_io( $fh, $iter );
that's it. that's the whole main character energy right there. π
π DESCRIPTION π
it's giving... ...
(no seriously, that's literally all the original says here. the real details are in the sections below, iykyk π)
β¨ ATTRIBUTES β¨
canonical_media_typeβ the official media type for this format, slayfile_extensionsβ the file extensions that go with this serialized format, cute
π¦ METHODS π¦
π media_types
Returns a list of media types that identify the format produced by this serializer. basically it tells you what MIME types this thing speaks, and it's iconic for that.
π file_extensions
Returns a list of file extensions associated with the serialized format. like, what file extension should you slap on those output files? this method spills the tea. β
π serialize_iter_to_io( $fh, $iterator )
Serializes the Attean::API::Binding objects from $iterator to the IO::Handle object $fh. so you hand it a filehandle and an iterator full of bindings, and it writes the serialized result straight to that handle. no cap, it's that simple. π₯
π serialize_iter_to_bytes( $iterator )
Serializes the Attean::API::Binding objects from $iterator and returns the serialization as a UTF-8 encoded byte string. so instead of writing to a filehandle, you get the bytes back directly. very demure, very mindful. π
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at:
<https://github.com/kasei/attean/issues>
don't be shy bestie, they wanna hear from you. fr fr. π
π SEE ALSO π
<http://www.w3.org/TR/sparql11-results-json/>
that's the W3C spec for SPARQL 1.1 Results JSON format β go read it if you wanna get into the nitty gritty. it's lowkey a slay. π
π AUTHOR π
Gregory Todd Williams <gwilliams@cpan.org>
the king who made this happen. we stan. π
πΈ 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.
so yeah, that's the whole page. this gem was cooked up by the Perl community (perl v5.40.0, dated 2025-01-26) and honestly? it ate. go serialize some SPARQL results, bestie. you got this. π β¨ππ¦πΈπ«Ά
π¦ 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