NAME

RDF::Base::Rule

DESCRIPTION

Represents a inference rule.

Inherits from RDF::Base::Resource.

on_configure

build_lists

init

on_bless

on_unbless

use_class

this_valtype

Constructors

create

  $class->create( $a, $b, $c, $vacuum)

Create a new rule. Implement the rule in the DB.

Does nothing if the rule already exists.

List constructors

list_a

Returns an array ref

list_b

Returns an array ref

list_c

Returns an array ref

Accessors

a

Get pred obj A.

b

Get pred obj B.

c

Get pred obj C.

desig

  $n->desig()

The designation of the rule, to be used for node administration or debugging.

sysdesig

  $n->sysdesig()

The designation of the rule, to be used for node administration or debugging. This version of desig indludes the node id.

syskey

Returns a unique predictable id representing this object

loc

The translation of the rule

plain

Make it a plain value. Ie, just return self...

Public methods

equals

validate_infere

A full vacuum sweep of the DB will run validate and then create_check for each arc. In order to catch tied circular dependencies we will in validation check validate dependencies til we found a base in explicit arcs.

See RDF::Base::Arc/explain for the explain format.

create_infere_rev

Make inference on the B part on create

args res must be defined

create_infere_rel

Make inference on the A part on create

args res must be defined

remove_infered_rev

Remove implicit arcs infered from this arc, part B

args res must be defined

remove_infered_rel

Remove implicit arcs infered from this arc, part A

args res must be defined

vacuum_facet

SEE ALSO

RDF::Base, RDF::Base::Resource, RDF::Base::Arc, RDF::Base::Pred, RDF::Base::Search