Attean...re::LDF(3pm)

πŸ“¦
version 0.04 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’– 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. πŸ‘‘


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