/
View dependency graph
Depends on
- libcache-lru-perl (libcache-lru-perl)
- libclone-perl (libclone-perl)
- libdata-compare-perl (libdata-compare-perl)
- libhttp-message-perl (libhttp-message-perl)
- libjson-perl (libjson-perl)
- liblog-any-perl (liblog-any-perl)
- liblwp-useragent-chicaching-perl (liblwp-useragent-chicaching-perl)
- libmodule-build-tiny-perl (libmodule-build-tiny-perl)
- librdf-ns-perl (librdf-ns-perl)
- librdf-query-perl (librdf-query-perl)
- librdf-trine-perl (librdf-trine-perl)
- libtest-deep-perl (libtest-deep-perl)
- libtest-exception-perl (libtest-exception-perl)
- libtest-lwp-useragent-perl (libtest-lwp-useragent-perl)
- libtest-pod-perl (libtest-pod-perl)
- libthrowable-perl (libthrowable-perl)
- liburi-perl (liburi-perl)
- liburi-template-perl (liburi-template-perl)
- libwww-perl (libwww-perl)
- perl (perl)
- debhelper-compat, libmoo-perl
README (full)
NAME
RDF::LDF - Linked Data Fragments client
SYNOPSIS
use RDF::Trine::Store::LDF;
use RDF::Trine::Store;
# To use a HTTP cache:
use LWP::UserAgent::CHICaching;
my $cache = CHI->new( driver => 'Memory', global => 1 );
my $ua = LWP::UserAgent::CHICaching->new(cache => $cache);
RDF::Trine->default_useragent($ua);
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 the low level modules themselves
use RDF::LDF;
my $client = RDF::LDF->new(url => 'http://fragments.dbpedia.org/2014/en');
my $iterator = $client->get_statements($subject, $predicate, $object);
while (my $statement = $iterator->()) {
# $model is a RDF::Trine::Statement
}
DESCRIPTION
RDF::LDF implements a basic Linked Data Fragment
<http://linkeddatafragments.org/> client.
This a low level module to implement the Linked Data Fragment protocol.
You probably want to use RDF::Trine::Store::LDF.
CONFIGURATION
url
URL to retrieve RDF from.
Experimental: more than one URL can be provided for federated search
over many LDF endpoints.
my $store = RDF::Trine::Store->new_with_config({
storetype => 'LDF',
url => [ $url1, $url2, $url3 ]
});
# or
my $client = RDF::LDF->new(url => [ $url1, $url2, $url3 ]);
METHODS
get_statements( $subject, $predicate, $object )
Return an iterator for every RDF::Trine::Statement served by the LDF
server.
get_pattern( $bgp );
Returns a stream object of all bindings matching the specified graph
pattern.
CONTRIBUTORS
Patrick Hochstenbach, patrick.hochstenbach at ugent.be
Gregory Todd Williams, [email protected]
Jacob Voss, [email protected]
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Patrick Hochstenbach.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
| dir | bin/ |
| dir | debian/ |
| dir | demo/ |
| dir | lib/ |
| dir | t/ |
| file | Build.PL |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | MANIFEST.SKIP |
| file | META.json |
| file | META.yml |
| file | README |
| file | cpanfile |