Attean...re::LDF(3pm)
π AtteanX::Store::LDF π
okay bestie, buckle up, because this is the manual page for AtteanX::Store::LDF, a Perl module (that's a 3pm page, from the User Contributed Perl Documentation corner of the universe), and it is genuinely so fun. It's a Linked Data Fragment RDF store. Yes. That's the whole vibe. Let's get into it. π¦
β¨ NAME β¨
AtteanX::Store::LDF β a Linked Data Fragment RDF store. That's it, that's the name, she's simple, she's elegant, she serves. π
π SYNOPSIS π
here's the whole thing, exactly as written, because copy-paste is a love language:
use v5.14;
use Attean;
use Attean::RDF qw(iri blank literal);
use AtteanX::Store::LDF;
my $uri = 'http://fragments.dbpedia.org/2014/en';
my $store = Attean->get_store('LDF')->new(start_url => $uri);
my $iter = $store->get_triples(undef,undef,literal("Albert Einstein"));
while (my $triple = $iter->next) {
say $triple->subject->ntriples_string .
" " .
$triple->predicate->ntriples_string .
" " .
$triple->object->ntriples_string .
" .";
}
likeβ¦ she said "give me a store, give me a fragment URL, and I will hand you Albert Einstein." iconic behavior fr fr. π§
πΈ DESCRIPTION πΈ
So. AtteanX::Store::LDF gives you a triple-store that is wired up to a Linked Data Fragment server. That's the whole concept, no notes.
Wanna learn more about Triple Pattern Fragments? The page points you at <http://linkeddatafragments.org/> and honestly bestie, go read it, it's giving educational. πβ¨
π METHODS π
Quick heads up before we dive in: beyond the methods listed below, this class inherits methods from the Attean::API::TripleStore class. So don't come for her about missing methods, she got them from her parent, it's a whole family thing. π
new( start_url => $start_url )
Returns a brand-new LDF-backed storage object. π
The required start_url argument is a URL pointing at any Linked Data Fragment. And the way that attribute gets coerced? Obsessed. So it can be a string, a URI object, etc. β she'll handle it, she's flexible like that. (The original doc spells it attribure, and honestly? we respect the typo, it's part of her lore. π)
count_triples_estimate( $subject, $predicate, $object )
Returns the count of triples</c> matching the subject, predicate and object you handed over. Numbers, but make it a triple pattern. π’
get_triples( $subject, $predicate, $object)
Returns a stream object of all statements matching the specified subject, predicate and object. And here's the key detail, no cap: any of the arguments may be undef to match any value. undef = "don't care, give me everything," the most relatable argument of all time. π
cost_for_plan($plan)
Returns a cost estimation for a single LDF triple, based on estimates.
The cost will be in the interval 10-1000 if the supplied argument is an AtteanX::Plan::LDF::Triple, and undef otherwise. so like, either she's got a number for you or she's got nothing. a binary queen. π
plans_for_algebra($algebra)
Returns an empty plan, because access_plans generates the needed plans. she's not doing the work, someone else is doing the work, and that's called delegation bestie. π
π₯ SEE ALSO π₯
Attean , Attean::API::TripleStore
go read your cousins, they're lovely. π«Ά
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/phochste/AtteanX-Store-LDF>.
found a bug? don't suffer in silence, tell the GitHub. she wants to know. π
π AUTHOR π
Patrick Hochstenbach "<patrick.hochstenbach@ugent.be>" and Kjetil Kjernsmo <kjetilk@cpan.org>.
legends, both of them, we stan. π
π COPYRIGHT π
This software is copyright (c) 2015 by Patrick Hochstenbach.
This software is copyright (c) 2016 by Patrick Hochstenbach and Kjetil Kjernsmo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go wild, but respectfully. β¨
okay that's the whole page, you're officially educated, go fragment some linked data bestie π¦π
perl v5.34.0 Β· 2022-06-15 Β· Attean...re::LDF(3pm) β mwah, that's the version, the date and the page name, signing off, ily, bye!! π
ππΈ
π¦ where this page comes from
- debian bookworm: libatteanx-store-ldf-perl 0.04-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libatteanx-store-ldf-perl 0.04-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libatteanx-store-ldf-perl 0.04-3 Β· 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