org.eaglei.repository.inferencer
Class TBoxInferencer

java.lang.Object
  extended by org.eaglei.repository.inferencer.TBoxInferencer

public class TBoxInferencer
extends java.lang.Object

Ontology (TBox) inference to support Custom minimalist inferencing SAIL layer.

Author:
Larry Stone Started May 30 2010
See Also:
(see comments in that class for all the implementation details) This is a singleton utility class. Its job is to create all the inferred statements for an ontology graph by feeding everything in the graph to an OWLAPI reasoner (Pellet 2.1, for now) and record the useful results directly in the graph as "inferred" statements. This is a very expensive operation but it is only done very rarely. Configuration Properties: eaglei.repository.tbox.graphs = (optional) comma-separated list of URIs of graphs making up the "TBox" for the inferencer.

Field Summary
static java.util.Set<org.openrdf.model.URI> TBoxGraphs
          Configuration: Named graphs with TBox content
static org.openrdf.model.URI[] TBoxGraphsArray
          Constant TBoxGraphsArray
 
Method Summary
 int doTBoxInference(org.openrdf.sail.inferencer.InferencerConnection rc, org.openrdf.model.URI graphName)
          Check if this ontology graph is "stale" and (re) do the inferencing if necessary.
static TBoxInferencer getInstance()
          Get the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TBoxGraphs

public static java.util.Set<org.openrdf.model.URI> TBoxGraphs
Configuration: Named graphs with TBox content


TBoxGraphsArray

public static org.openrdf.model.URI[] TBoxGraphsArray
Constant TBoxGraphsArray

Method Detail

getInstance

public static TBoxInferencer getInstance()
Get the singleton instance.

Returns:
the singleton, a TBoxInferencer object.

doTBoxInference

public int doTBoxInference(org.openrdf.sail.inferencer.InferencerConnection rc,
                           org.openrdf.model.URI graphName)
                    throws java.io.IOException,
                           org.openrdf.rio.RDFHandlerException,
                           org.openrdf.sail.SailException
Check if this ontology graph is "stale" and (re) do the inferencing if necessary. Returns count of statements added.

Parameters:
rc - a InferencerConnection object.
graphName - name of graph (context) on which to reason, a URI object.
Returns:
count of statements added.
Throws:
java$io$IOException - if any.
org.openrdf.rio.RDFHandlerException - if any.
org.openrdf.sail.SailException - if any.
java.io.IOException


Copyright © 2009-2010 Eagle-I. All Rights Reserved.