org.openrdf.jena
Class InfGraphSesame

java.lang.Object
  extended by com.hp.hpl.jena.graph.impl.GraphBase
      extended by com.hp.hpl.jena.reasoner.BaseInfGraph
          extended by com.hp.hpl.jena.reasoner.rulesys.BasicForwardRuleInfGraph
              extended by org.openrdf.jena.InfGraphSesame
All Implemented Interfaces:
Graph, GraphAdd, com.hp.hpl.jena.graph.impl.GraphWithPerform, InfGraph, ForwardRuleInfGraphI, SilentAddI

public class InfGraphSesame
extends BasicForwardRuleInfGraph

This class wraps a sesame repository as a jena InfGraph It handles bulkupdates efficiently in single Sesame transactions. IT ONLY HANDLES FORWARD CHAINING REASONERS (cause this is all we need :)

Author:
grimnes

Nested Class Summary
 
Nested classes/interfaces inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph
BaseInfGraph.InfCapabilities, BaseInfGraph.InfFindSafeCapabilities, BaseInfGraph.InfTransactionHandler
 
Field Summary
(package private)  Repository repository
           
(package private)  GraphSesame sesamegraph
           
 
Fields inherited from class com.hp.hpl.jena.reasoner.rulesys.BasicForwardRuleInfGraph
derivations, engine, fdeductions, logger, rules, schemaGraph, traceOn
 
Fields inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph
fdata, isPrepared, reasoner, recordDerivations
 
Fields inherited from class com.hp.hpl.jena.graph.impl.GraphBase
bulkHandler, capabilities, closed, gem, pm, queryHandler, reifier, style
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
InfGraphSesame(Reasoner reasoner, Graph schema)
           
InfGraphSesame(Reasoner reasoner, List rules, Graph schema)
           
InfGraphSesame(Reasoner reasoner, List rules, Graph schema, Graph data)
           
 
Method Summary
 BulkUpdateHandler getBulkUpdateHandler()
           
protected  void hackThisIntoEngine(Triple trip)
           
 void rebind(Graph data)
           
 
Methods inherited from class com.hp.hpl.jena.reasoner.rulesys.BasicForwardRuleInfGraph
addBRule, addDeduction, close, createDeductionsGraph, deleteBRule, find, findDataMatches, findWithContinuation, getCurrentDeductionsGraph, getDeductionsGraph, getDerivation, getNRulesFired, getSchemaGraph, graphBaseFind, graphBaseSize, instantiateRuleEngine, logDerivation, performAdd, performDelete, preloadDeductions, prepare, rebind, setDerivationLogging, setRuleStore, setTraceOn, shouldLogDerivations, shouldTrace, silentAdd
 
Methods inherited from class com.hp.hpl.jena.reasoner.BaseInfGraph
cloneWithPremises, discardState, find, getCapabilities, getGlobalProperty, getPrefixMapping, getRawGraph, getReasoner, getReifier, getTransactionHandler, graphBaseFind, isEmpty, reset, testGlobalProperty, validate
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, checkOpen, contains, contains, containsByFind, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, graphBaseContains, isIsomorphicWith, notifyAdd, notifyDelete, queryHandler, reifierContains, reifierSize, reifierTriples, size, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.reasoner.InfGraph
find, getGlobalProperty, getRawGraph, getReasoner, reset, testGlobalProperty, validate
 
Methods inherited from interface com.hp.hpl.jena.graph.Graph
contains, contains, delete, dependsOn, find, find, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isEmpty, isIsomorphicWith, queryHandler, size
 
Methods inherited from interface com.hp.hpl.jena.graph.GraphAdd
add
 

Field Detail

repository

Repository repository

sesamegraph

GraphSesame sesamegraph
Constructor Detail

InfGraphSesame

public InfGraphSesame(Reasoner reasoner,
                      List rules,
                      Graph schema)

InfGraphSesame

public InfGraphSesame(Reasoner reasoner,
                      Graph schema)

InfGraphSesame

public InfGraphSesame(Reasoner reasoner,
                      List rules,
                      Graph schema,
                      Graph data)
Method Detail

hackThisIntoEngine

protected void hackThisIntoEngine(Triple trip)

getBulkUpdateHandler

public BulkUpdateHandler getBulkUpdateHandler()
Specified by:
getBulkUpdateHandler in interface Graph
Overrides:
getBulkUpdateHandler in class BaseInfGraph

rebind

public void rebind(Graph data)
Specified by:
rebind in interface InfGraph
Overrides:
rebind in class BasicForwardRuleInfGraph