RDF::Trine::Store::LDF(3pm) | User Contributed Perl Documentation | RDF::Trine::Store::LDF(3pm) |
RDF::Trine::Store::LDF - RDF Store proxy for a Linked Data Fragment endpoint
use RDF::Trine::Store::LDF; use RDF::Trine::Store; my $store = RDF::Trine::Store->new_with_config({ storetype => 'LDF', url => $url }); my $it = $store->get_statements(); while (my $st = $it->next) { # $st is a RDF::Trine::Statement print "$st\n"; } # Or query the store with SPAQRL use RDF::Query; my $model = RDF::Trine::Model->new($store); my $rdf_query = RDF::Query->new(<<EOF); . . SPARQL . . EOF my $iter = $rdf_query->execute($model); while (my $s = $iter->next) { # $s is a RDF::Trine::VariableBinding print $s->value . "\n"; }
RDF::Trine::Store::LDF provides a RDF::Trine::Store API to interact with a remote Linked Data Fragment endpoint. For details see: <http://linkeddatafragments.org/>.
Beyond the methods documented below, this class inherits methods from the RDF::Trine::Store class.
Expertimental: more than one url as an ARRAY reference can be provided for an federated query over many LDF endpoints.
Patrick Hochstenbach, "patrick.hochstenbach at ugent.be"
Gregory Todd Williams, "greg@evilfunhouse.com"
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See <http://dev.perl.org/licenses/> for more information.
2021-11-09 | perl v5.32.1 |