com.bigdata.rdf.rules
Class BaseClosure

java.lang.Object
  extended by com.bigdata.rdf.rules.BaseClosure
Direct Known Subclasses:
FastClosure, FullClosure

public abstract class BaseClosure
extends Object

Base class for classes that provide closure programs.

Version:
$Id: BaseClosure.java 6031 2012-02-16 08:43:46Z mrpersonick $
Author:
Bryan Thompson

Field Summary
protected  AbstractTripleStore db
          The database whose configuration will determine which entailments are to be maintained and which of those entailments are computed by forward closure vs backchained.
protected  boolean forwardChainOwlEquivalentClass
           
protected  boolean forwardChainOwlEquivalentProperty
           
protected  boolean forwardChainOwlHasValue
           
protected  boolean forwardChainOwlInverseOf
           
protected  boolean forwardChainOwlSameAsClosure
           
protected  boolean forwardChainOwlSameAsProperties
           
protected  boolean forwardChainOwlSymmetricProperty
           
protected  boolean forwardChainOwlTransitiveProperty
           
protected  boolean forwardChainRdfTypeRdfsResource
           
protected  boolean rdfsOnly
           
protected  Vocabulary vocab
          Various term identifiers that we need to construct the rules.
 
Constructor Summary
protected BaseClosure(AbstractTripleStore db)
           
 
Method Summary
protected  List<Rule> getCustomRules(String database)
          Allow subclasses of the fast and full closure programs to provide a set of custom rules that will be run towards the end of the standard closure program.
abstract  MappedProgram getProgram(String database, String focusStore)
          Return the program that will be used to compute the closure of the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

db

protected final AbstractTripleStore db
The database whose configuration will determine which entailments are to be maintained and which of those entailments are computed by forward closure vs backchained.


rdfsOnly

protected final boolean rdfsOnly

forwardChainRdfTypeRdfsResource

protected final boolean forwardChainRdfTypeRdfsResource

forwardChainOwlSameAsClosure

protected final boolean forwardChainOwlSameAsClosure

forwardChainOwlSameAsProperties

protected final boolean forwardChainOwlSameAsProperties

forwardChainOwlEquivalentProperty

protected final boolean forwardChainOwlEquivalentProperty

forwardChainOwlEquivalentClass

protected final boolean forwardChainOwlEquivalentClass

forwardChainOwlTransitiveProperty

protected final boolean forwardChainOwlTransitiveProperty

forwardChainOwlInverseOf

protected final boolean forwardChainOwlInverseOf

forwardChainOwlHasValue

protected final boolean forwardChainOwlHasValue

forwardChainOwlSymmetricProperty

protected final boolean forwardChainOwlSymmetricProperty

vocab

protected final Vocabulary vocab
Various term identifiers that we need to construct the rules.

Constructor Detail

BaseClosure

protected BaseClosure(AbstractTripleStore db)
Parameters:
db - The database whose configuration will determine which entailments are to be maintained and which of those entailments are computed by forward closure vs backchained.
Throws:
IllegalArgumentException - if the db is null.
Method Detail

getProgram

public abstract MappedProgram getProgram(String database,
                                         String focusStore)
Return the program that will be used to compute the closure of the database.

Parameters:
database - The database whose closure will be updated.
focusStore - When non-null, the focusStore will be closed against the database with the entailments written into the database. When null, the entire database will be closed (database-at-once closure).
Returns:
The program to be executed.
TODO:
the returned program can be cached for a given database and focusStore (or for the database if no focusStore is used).

getCustomRules

protected List<Rule> getCustomRules(String database)
Allow subclasses of the fast and full closure programs to provide a set of custom rules that will be run towards the end of the standard closure program.



Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.