Toby Inkster > RDF-Closure-0.001 > RDF::Closure::Model

Download:
RDF-Closure-0.001.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

RDF::Closure::Model - RDF::Trine::Model-compatible inferface

DESCRIPTION ^

This module provides a subclass of RDF::Trine::Model allowing you to dollop some reasoning into existing RDF::Trine code very easily. While RDF::Closure::Engine allows you to infer lots of new statements from an existing model, this class also allows you to add and remove statements from the reasoned model with new inferences calculated on-the-fly.

Removing a statement is much slower than adding one, though adding a statement isn't what you'd call fast. Juditious use of begin_bulk_ops and end_bulk_ops is recomnmended.

If a lot of statements have been added and removed from a model since it was created, then it's theoretically possible for the inferred data to contain statements which are no longer entailed by the explicit data, or for the inferred data to be missing some inferences. A recalculate method is provided which allows you to re-run the inference from scratch.

Constructor

Methods

This package inherits from RDF::Trine::Model and provides all the methods it does. It additionally provides:

SEE ALSO ^

RDF::Closure, RDF::Closure::Engine, RDF::Trine::Model.

Take careful note of the begin_bulk_ops and end_bulk_ops methods present in RDF::Trine::Model. Judicious use of them can seriously speed up this module.

http://www.perlrdf.org/.

AUTHOR ^

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT ^

Copyright 2011-2012 Toby Inkster

This library is free software; you can redistribute it and/or modify it under any of the following licences:

DISCLAIMER OF WARRANTIES ^

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

syntax highlighting: