Class DirectTypeHierarchyInferencer
java.lang.Object
org.eclipse.rdf4j.sail.helpers.SailWrapper
org.eclipse.rdf4j.sail.helpers.NotifyingSailWrapper
org.eclipse.rdf4j.sail.inferencer.fc.DirectTypeHierarchyInferencer
- All Implemented Interfaces:
FederatedServiceResolverClient, NotifyingSail, Sail, StackableSail
A forward-chaining inferencer that infers the direct-type hierarchy relations
sesame:directSubClassOf, sesame:directSubPropertyOf and sesame:directType.
The semantics of this inferencer are defined as follows:
Class A is a direct subclass of B iff:
1. A is a subclass of B and;
2. A and B are not equa and;
3. there is no class C (unequal A and B) such that
A is a subclass of C and C of B.
Property P is a direct subproperty of Q iff:
1. P is a subproperty of Q and;
2. P and Q are not equal and;
3. there is no property R (unequal P and Q) such that
P is a subproperty of R and R of Q.
Resource I is of direct type T iff:
1. I is of type T and
2. There is no class U (unequal T) such that:
a. U is a subclass of T and;
b. I is of type U.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOpens a connection on the Sail which can be used to query and update data.voidinit()Initializes the Sail.Methods inherited from class NotifyingSailWrapper
addSailChangedListener, getBaseSail, removeSailChangedListener, setBaseSailModifier and TypeMethodDescriptionvoidaddSailChangedListener(SailChangedListener listener) Adds the specified SailChangedListener to receive events when the data in this Sail object changes.Gets the base Sail that this Sail works on top of.voidremoveSailChangedListener(SailChangedListener listener) Removes the specified SailChangedListener so that it no longer receives events from this Sail object.voidsetBaseSail(Sail baseSail) Sets the base Sail that this Sail will work on top of.Methods inherited from class SailWrapper
getCollectionFactory, getDataDir, getDefaultIsolationLevel, getFederatedServiceResolver, getSupportedIsolationLevels, getValueFactory, isWritable, setDataDir, setFederatedServiceResolver, shutDown, verifyBaseSailSetModifier and TypeMethodDescriptionGets a CollectionFactory that may be optimized for this store and may or may not use disk or other resources.Gets the Sail's data directory.Retrieves the defaultIsolationLevellevel on which transactions in this Sail operate.Gets theFederatedServiceResolverused by this client.Retrieve theIsolationLevels supported by this SAIL, ordered by increasing complexity.Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.booleanChecks whether this Sail object is writable, i.e. if the data contained in this Sail object can be changed.voidsetDataDir(File dataDir) Sets the data directory for the Sail.voidSets theFederatedServiceResolverto use for this client.voidshutDown()Shuts down the Sail, giving it the opportunity to synchronize any stale data.protected void
-
Constructor Details
-
DirectTypeHierarchyInferencer
public DirectTypeHierarchyInferencer() -
DirectTypeHierarchyInferencer
-
-
Method Details
-
getConnection
Description copied from interface:SailOpens 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:
getConnectionin interfaceNotifyingSail- Specified by:
getConnectionin interfaceSail- Overrides:
getConnectionin classNotifyingSailWrapper- Throws:
SailException- If no transaction could be started, for example because the Sail is not writable.
-
init
Description copied from interface:SailInitializes the Sail. Care should be taken that required initialization parameters have been set before this method is called. Please consult the specific Sail implementation for information about the relevant parameters.- Specified by:
initin interfaceSail- Overrides:
initin classSailWrapper- Throws:
SailException- If the Sail could not be initialized.
-