Class DedupingInferencer
- java.lang.Object
-
- org.eclipse.rdf4j.sail.helpers.SailWrapper
-
- org.eclipse.rdf4j.sail.helpers.NotifyingSailWrapper
-
- org.eclipse.rdf4j.sail.inferencer.fc.DedupingInferencer
-
- All Implemented Interfaces:
FederatedServiceResolverClient,NotifyingSail,Sail,StackableSail
public class DedupingInferencer extends org.eclipse.rdf4j.sail.helpers.NotifyingSailWrapperAn inferencer may infer the same statement from two different statements. This leads to that single inferred statement undergoing inferencing multiple times, and all the statements inferred from it too, etc. This is mainly due to the use of SailConnectionListeners which don't distinguish between adding a new statement and one that already exists. Adding this inferencer to a Sail stack prevents this problem and gives a significant performance increase.
-
-
Constructor Summary
Constructors Constructor Description DedupingInferencer()DedupingInferencer(NotifyingSail baseSail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferencerConnectiongetConnection()-
Methods inherited from class org.eclipse.rdf4j.sail.helpers.NotifyingSailWrapper
addSailChangedListener, getBaseSail, removeSailChangedListener, setBaseSail
-
Methods inherited from class org.eclipse.rdf4j.sail.helpers.SailWrapper
getCollectionFactory, getDataDir, getDefaultIsolationLevel, getFederatedServiceResolver, getSupportedIsolationLevels, getValueFactory, init, isWritable, setDataDir, setFederatedServiceResolver, 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.eclipse.rdf4j.sail.Sail
getCollectionFactory, getDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, getValueFactory, init, isWritable, setDataDir, shutDown
-
-
-
-
Constructor Detail
-
DedupingInferencer
public DedupingInferencer()
-
DedupingInferencer
public DedupingInferencer(NotifyingSail baseSail)
-
-
Method Detail
-
getConnection
public InferencerConnection getConnection() throws SailException
- Specified by:
getConnectionin interfaceNotifyingSail- Specified by:
getConnectionin interfaceSail- Overrides:
getConnectionin classorg.eclipse.rdf4j.sail.helpers.NotifyingSailWrapper- Throws:
SailException
-
-