The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

  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

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

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

Copyright 2008 by Lara Spendier and Robert Barta

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Work supported by the Austrian Research Centers Seibersdorf (Smart Systems).