Attean...::LMDB(3pm)

๐Ÿ“ฆ
version 0.001 ยท 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

๐Ÿ’– AtteanX::Store::LMDB โ€” the manual page, but make it slay ๐Ÿ’–

okay so bestie, you're reading the User Contributed Perl Documentation for AtteanX::Store::LMDB and honestly? it's giving storage. it's giving persistence. it's giving RDF quads living their best life on disk. let's get into it ๐Ÿฆ‹


โœจ NAME โœจ

AtteanX::Store::LMDB โ€” an LMDB-based RDF store. periodt. that's the whole vibe. ๐Ÿ’…


๐ŸŒธ VERSION ๐ŸŒธ

This document describes AtteanX::Store::LMDB version 0.001. tiny version number, huge potential, main character energy fr fr ๐Ÿ‘‘


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

the whole entire "how do I even use this" moment, and it's literally one line:

use AtteanX::Store::LMDB;

that's it. that's the post. iconic. โœจ


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So like, AtteanX::Store::LMDB gives you a persistent quad-store that's built on top of LMDB. persistent means your data actually stays there instead of ghosting you the second the process exits. quad-store means it holds RDF quads. it's all very "your data but it remembers you" ๐Ÿฅน๐Ÿ’–


๐Ÿ’… METHODS ๐Ÿ’…

okay so real talk โ€” beyond the methods listed below, this class also inherits methods from the Attean::API::QuadStore class. so if you don't see it here, check there, iykyk ๐Ÿซถ

  • new () โ€” hands you back a brand-new LMDB-backed store object. fresh out the box, no cap. โœจ
  • size โ€” tells you how many quads are chillin' in the store. a headcount, basically. ๐Ÿงฎ
  • get_quads ( $subject, $predicate, $object, $graph ) โ€” returns a stream object of every statement that matches the $subject, $predicate, $object, and $graph you asked for. and here's the cute part: any of those arguments can be undef to match any value. wildcard mode activated ๐ŸŒˆ
  • get_graphs โ€” returns an iterator over the Attean::API::Term objects that make up the set of graphs of the stored quads. it's giving "who are all my graphs" energy ๐Ÿ‘‘
  • add_quad ( $quad ) โ€” adds the $quad you pass in to the underlying model. put it in, bestie ๐Ÿซณโœจ
  • remove_quad ( $statement ) โ€” removes the $statement you pass in from the underlying model. bye bye, don't let the door hit you ๐Ÿ’€
  • create_graph( $graph ) โ€” heads up: this is a no-op function for the memory quad-store. it literally does nothing. it's the "seen 2:47 AM" of methods ๐Ÿ™ˆ
  • drop_graph( $graph ) โ€” removes all quads with the given $graph. gone. deleted. not coming back ๐Ÿ˜ญ
  • clear_graph( $graph ) โ€” removes all quads with the given $graph. same energy as above, fr fr ๐Ÿงน

โญ BUGS โญ

found a bug? got a feature request? please report it through the GitHub web interface at:

https://github.com/kasei/perlrdf2/issues

the maintainers will love you for it, no cap ๐Ÿซถ๐Ÿ›


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Gregory Todd Williams <gwilliams@cpan.org> โ€” the legend behind all this. bow down ๐ŸงŽโ€โ™€๏ธโœจ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

  • Diomede <https://github.com/kasei/diomede/> is a Swift LMDB-based quadstore that shares the same file format as this module. so likeโ€ฆ cross-language besties?? obsessed ๐Ÿ˜

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


and that's the whole page bestie!! ๐ŸŽ€ this was documented in perl v5.32.0 on 2020-12-22 โ€” shoutout to that date for being the moment this page was born ๐Ÿ’–โœจ go forth and store some quads, you've got this ๐Ÿซถ๐ŸŒˆ

๐Ÿ“ฆ where this page comes from