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, slay
  • file_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 (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