RDF::Flow::LinkedData - Retrieve RDF from a HTTP-URI
version 0.178
This RDF::Flow::Source fetches RDF data via HTTP. The request URI is used as URL to get data from. For instance the following source retrieves RDF data from DBPedia, if a DBPedia or English Wikipedia URI is provided:
my $dbpedia = RDF::Flow::LinkedData->new( name => "DBPedia", match => sub { $_[0] =~ s{^http://en\.wikipedia\.org/wiki/}{http://dbpedia.org/resource/}; return ($_[0] =~ qr{^http://dbpedia\.org/resource/.+}); } );
The following configuration options from RDF::Flow::Source are useful in particular:
Name of the source. Defaults to "anonymous LinkedData source".
Optional regular expression or code reference to match and/or map request URIs.
Jakob Voß <voss@gbv.de>
This software is copyright (c) 2011 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install RDF::Flow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Flow
CPAN shell
perl -MCPAN -e shell install RDF::Flow
For more information on module installation, please visit the detailed CPAN module installation guide.