.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "AtteanX::Store::LDF 3pm"
.TH AtteanX::Store::LDF 3pm "2022-06-15" "perl v5.34.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
AtteanX::Store::LDF \- Linked Data Fragment RDF store
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 4
\& use v5.14;
\& use Attean;
\& use Attean::RDF qw(iri blank literal);
\& use AtteanX::Store::LDF;
\&
\& my $uri = \*(Aqhttp://fragments.dbpedia.org/2014/en\*(Aq;
\& my $store = Attean\->get_store(\*(AqLDF\*(Aq)\->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 .
\& " .";
\& }
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
AtteanX::Store::LDF provides a triple-store connected to a Linked Data Fragment server.
For more information on Triple Pattern Fragments consult
.SH "METHODS"
.IX Header "METHODS"
Beyond the methods documented below, this class inherits methods from the
Attean::API::TripleStore class.
.ie n .IP "new( start_url => $start_url )" 4
.el .IP "new( start_url => \f(CW$start_url\fR )" 4
.IX Item "new( start_url => $start_url )"
Returns a new LDF-backed storage object. The required \f(CW\*(C`start_url\*(C'\fR
argument is a \s-1URL\s0 pointing at any Linked Data Fragment. The attribure
will be coerced, so it can be a string, a \s-1URI\s0 object, etc.
.ie n .IP "count_triples_estimate( $subject, $predicate, $object )" 4
.el .IP "count_triples_estimate( \f(CW$subject\fR, \f(CW$predicate\fR, \f(CW$object\fR )" 4
.IX Item "count_triples_estimate( $subject, $predicate, $object )"
Return the count of triples matching the specified subject, predicate and
objects.
.ie n .IP "get_triples( $subject, $predicate, $object)" 4
.el .IP "get_triples( \f(CW$subject\fR, \f(CW$predicate\fR, \f(CW$object\fR)" 4
.IX Item "get_triples( $subject, $predicate, $object)"
Returns a stream object of all statements matching the specified subject,
predicate and objects. Any of the arguments may be undef to match any value.
.IP "cost_for_plan($plan)" 4
.IX Item "cost_for_plan($plan)"
Returns an cost estimation for a single \s-1LDF\s0 triple based on
estimates. The cost will be in the interval 10\-1000 if the supplied
argument is a AtteanX::Plan::LDF::Triple, undef otherwise.
.IP "plans_for_algebra($algebra)" 4
.IX Item "plans_for_algebra($algebra)"
Returns an empty plan since access_plans generates the needed plans.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
Attean , Attean::API::TripleStore
.SH "BUGS"
.IX Header "BUGS"
Please report any bugs or feature requests to through the GitHub web interface
at .
.SH "AUTHOR"
.IX Header "AUTHOR"
Patrick Hochstenbach \f(CW\*(C`\*(C'\fR
Kjetil Kjernsmo .
.SH "COPYRIGHT"
.IX Header "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.