Jakob Voß > RDF-Flow-0.178 > RDF::Flow::LinkedData

Download:
RDF-Flow-0.178.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.178   Source  

NAME ^

RDF::Flow::LinkedData - Retrieve RDF from a HTTP-URI

VERSION ^

version 0.178

DESCRIPTION ^

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/.+});
        }
    );

CONFIGURATION ^

The following configuration options from RDF::Flow::Source are useful in particular:

name

Name of the source. Defaults to "anonymous LinkedData source".

match

Optional regular expression or code reference to match and/or map request URIs.

AUTHOR ^

Jakob Voß <voss@gbv.de>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: