RDF::Redland::DIG - DIG extension for Redland RDF (Reasoner)


RDF-Redland-DIG documentation  | view source Contained in the RDF-Redland-DIG distribution.

Index


NAME

Top

RDF::Redland::DIG - DIG extension for Redland RDF (Reasoner)

SYNOPSIS

Top

  my $model = new RDF::Redland::Model ....

  use RDF::Redland::DIG;
  my $r = new RDF::Redland::DIG (url => http://localhost:8081/);

  use RDF::Redland::DIG::KB;
  my $kb = $r->kb;   # create an empty knowledge base there
  eval {
     $kb->tell ($model);
  }; die $@ if $@;

  my %children = $kb->children ('urn:pizza', 'urn:topping');
  # see RDF::Redland::DIG::KB

DESCRIPTION

Top

Instances of this class represent a handle to a remote instance of a DIG reasoner.

DIG is a protocol which applications can use to use reasoning services provided by such a reasoner.

   http://dl-web.man.ac.uk/dig/

INTERFACE

Top

Constructor

The constructor connects an in-memory object with a remote instance of a DIG reasoner. The only mandatory parameter is the URL to address the reasoner.

Optionally the following fields are processed:

ua (default: LWP::UserAgent)

Here you can pass in your custom made HTTP client. Must subclass LWP::UserAgent.

Methods

kb

This method clones one knowledge base from the reasoner. You can have any number of these.

COPYRIGHT AND LICENCE

Top


RDF-Redland-DIG documentation  | view source Contained in the RDF-Redland-DIG distribution.