Attean...::LMDB(3pm)
๐ 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 beundefto match any value. wildcard mode activated ๐get_graphsโ returns an iterator over theAttean::API::Termobjects 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 ๐
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
- debian bookworm: libatteanx-store-lmdb-perl 0.001-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libatteanx-store-lmdb-perl 0.001-2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libatteanx-store-lmdb-perl 0.001-2 ยท 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