org.openrdf.sail.inferencer.fc
Class ForwardChainingRDFSInferencer

java.lang.Object
  extended by org.openrdf.sail.helpers.SailWrapper
      extended by org.openrdf.sail.helpers.NotifyingSailWrapper
          extended by org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer
All Implemented Interfaces:
NotifyingSail, Sail, StackableSail

public class ForwardChainingRDFSInferencer
extends NotifyingSailWrapper

Forward-chaining RDF Schema inferencer, using the rules from the RDF Semantics Recommendation (10 February 2004). This inferencer can be used to add RDF Schema semantics to any Sail that returns InferencerConnections from their Sail.getConnection() method.


Constructor Summary
ForwardChainingRDFSInferencer()
           
ForwardChainingRDFSInferencer(NotifyingSail baseSail)
           
 
Method Summary
 org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencerConnection getConnection()
          Opens a connection on the Sail which can be used to query and update data.
 void initialize()
          Adds axiom statements to the underlying Sail.
 
Methods inherited from class org.openrdf.sail.helpers.NotifyingSailWrapper
addSailChangedListener, getBaseSail, removeSailChangedListener, setBaseSail
 
Methods inherited from class org.openrdf.sail.helpers.SailWrapper
getDataDir, getValueFactory, isWritable, setDataDir, shutDown, verifyBaseSailSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sail.Sail
getDataDir, getValueFactory, isWritable, setDataDir, shutDown
 

Constructor Detail

ForwardChainingRDFSInferencer

public ForwardChainingRDFSInferencer()

ForwardChainingRDFSInferencer

public ForwardChainingRDFSInferencer(NotifyingSail baseSail)
Method Detail

getConnection

public org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencerConnection getConnection()
                                                                                     throws SailException
Description copied from interface: Sail
Opens a connection on the Sail which can be used to query and update data. Depending on how the implementation handles concurrent access, a call to this method might block when there is another open connection on this Sail.

Specified by:
getConnection in interface NotifyingSail
Specified by:
getConnection in interface Sail
Overrides:
getConnection in class NotifyingSailWrapper
Throws:
SailException - If no transaction could be started, for example because the Sail is not writable.

initialize

public void initialize()
                throws SailException
Adds axiom statements to the underlying Sail.

Specified by:
initialize in interface Sail
Overrides:
initialize in class SailWrapper
Throws:
SailException - If the Sail could not be initialized.


Copyright © 2001-2009 Aduna. All Rights Reserved.