org.openrdf.sesame.sailimpl.rdbms
Interface InferenceServices

All Superinterfaces:
TableNames
All Known Implementing Classes:
CustomInferenceServices, RdbmsInferenceServices

public interface InferenceServices
extends TableNames


Field Summary
 
Fields inherited from interface org.openrdf.sesame.sailimpl.rdbms.TableNames
ADDED_TRIPLES_TABLE, ALL_INFERRED_TABLE, ALL_NEW_TRIPLES_TABLE, CLASS_TABLE, DEPEND_TABLE, DIRECT_SUBCLASSOF_TABLE, DIRECT_SUBPROPERTYOF_TABLE, DOMAIN_TABLE, EXPIRED_LITERALS_TABLE, EXPIRED_RESOURCES_TABLE, EXPIRED_TRIPLES_TABLE, EXPIRED_VALUES_TABLE, GROUNDED_TRIPLES_TABLE, INFERRED_TABLE, INSTANCEOF_TABLE, LITERALS_TABLE, NAMESPACES_TABLE, NEW_GROUNDED_TRIPLES_TABLE, NEW_TRIPLES_TABLE, PROPER_INSTANCEOF_TABLE, PROPERTY_TABLE, RANGE_TABLE, RAW_TRIPLES_TABLE, REP_INFO_TABLE, RESOURCES_TABLE, SUBCLASSOF_TABLE, SUBPROPERTYOF_TABLE, TRIPLES_TABLE
 
Method Summary
 void afterInitialize()
          invoked to ensure that thre RDBMS instance is already created within Sail
 void createDependenciesTable()
          need to handle creation of DEPEND table because some of the rules may need more than 2 columns to store the dependency (rules with three or more triple templates in CustomInferencer) An example of such rule: a rdf:type owl:TransitiveProperty x a b b a c infer: x a c so the (x a c) triple is dependant from all those
 void doInferencing()
          the entry point for statement inferencing
 void initialize(RdfSchemaRepository sail, Map configParams)
          invoked within sail.initialize(Map configParam).
 void initRdfSchema()
          invoked to initialize the basic RDFS schema for the repository
 void markAxioms()
          invoked to mark the currently added statements as axioms
 void processNewStatements()
          invoked when some staements are being added so to infer the dependancy information for them
 void removeExpiredStatements()
          invoked when some statements are being removed
 void setDependencyInferencer(boolean useDependencyInferencer)
           
 

Method Detail

initialize

public void initialize(RdfSchemaRepository sail,
                       Map configParams)
invoked within sail.initialize(Map configParam). Allows to initialize the custom inferencer(s) with params provided in system.conf

Parameters:
sail - - to which the inferencer is embedded
configParams - - a map holding the sail's confic parameters

initRdfSchema

public void initRdfSchema()
invoked to initialize the basic RDFS schema for the repository


doInferencing

public void doInferencing()
the entry point for statement inferencing


setDependencyInferencer

public void setDependencyInferencer(boolean useDependencyInferencer)

removeExpiredStatements

public void removeExpiredStatements()
                             throws SQLException
invoked when some statements are being removed

Throws:
SQLException

processNewStatements

public void processNewStatements()
                          throws SQLException
invoked when some staements are being added so to infer the dependancy information for them

Throws:
SQLException

markAxioms

public void markAxioms()
                throws SQLException
invoked to mark the currently added statements as axioms

Throws:
SQLException

createDependenciesTable

public void createDependenciesTable()
                             throws SQLException
need to handle creation of DEPEND table because some of the rules may need more than 2 columns to store the dependency (rules with three or more triple templates in CustomInferencer) An example of such rule: a rdf:type owl:TransitiveProperty x a b b a c infer: x a c so the (x a c) triple is dependant from all those

Throws:
SQLException

afterInitialize

public void afterInitialize()
invoked to ensure that thre RDBMS instance is already created within Sail



Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.