public class SchemaCachingRDFSInferencer extends org.eclipse.rdf4j.sail.helpers.NotifyingSailWrapper
The SchemaCachingRDFSInferencer is an RDFS reasoner that caches all schema (TBox) statements and calculates an inference map to quickly determine inferred statements. The reasoner can also be instantiated with a predefined schema for improved performance.
This reasoner is not a rule based reasoner and will be up to 80x faster than the ForwardChainingRDFSInferencer, as well as being more complete.
The sail puts no limitations on isolation level for read transactions, however all write/delete/update transactions are serializable with exclusive locks. This limits write/delete/update transactions to one transaction at a time.
| Constructor and Description |
|---|
SchemaCachingRDFSInferencer(NotifyingSail data)
Instantiate a SchemaCachingRDFSInferencer.
|
SchemaCachingRDFSInferencer(NotifyingSail data,
boolean useAllRdfsRules)
Instantiate a SchemaCachingRDFSInferencer.
|
SchemaCachingRDFSInferencer(NotifyingSail data,
Repository schema)
Instantiate a SchemaCachingRDFSInferencer with a predefined schema.
|
SchemaCachingRDFSInferencer(NotifyingSail data,
Repository schema,
boolean useAllRdfsRules)
Instantiate a SchemaCachingRDFSInferencer with a predefined schema.
|
| Modifier and Type | Method and Description |
|---|---|
static SchemaCachingRDFSInferencer |
fastInstantiateFrom(SchemaCachingRDFSInferencer sailToInstantiateFrom,
NotifyingSail store)
Instantiate a new SchemaCachingRDFSInferencer from an existing one.
|
static SchemaCachingRDFSInferencer |
fastInstantiateFrom(SchemaCachingRDFSInferencer sailToInstantiateFrom,
NotifyingSail store,
boolean useAllRdfsRules)
Instantiate a new SchemaCachingRDFSInferencer from an existing one.
|
SchemaCachingRDFSInferencerConnection |
getConnection() |
IsolationLevel |
getDefaultIsolationLevel() |
List<IsolationLevel> |
getSupportedIsolationLevels() |
ValueFactory |
getValueFactory() |
void |
initialize() |
addSailChangedListener, getBaseSail, removeSailChangedListener, setBaseSailgetDataDir, isWritable, setDataDir, setFederatedServiceResolver, shutDown, verifyBaseSailSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataDir, isWritable, setDataDir, shutDownpublic SchemaCachingRDFSInferencer(NotifyingSail data)
data - Base sail for storing data.public SchemaCachingRDFSInferencer(NotifyingSail data, Repository schema)
data - Base sail for storing data.schema - Repository containing the schema.public SchemaCachingRDFSInferencer(NotifyingSail data, boolean useAllRdfsRules)
data - Base sail for storing data.useAllRdfsRules - Usel all RDFS rules. If set to false rule rdf4a and rdfs4b will be ignorepublic SchemaCachingRDFSInferencer(NotifyingSail data, Repository schema, boolean useAllRdfsRules)
data - Base sail for storing data.schema - Repository containing the schema.useAllRdfsRules - Usel all RDFS rules. If set to false rule rdf4a and rdfs4b will be ignorepublic void initialize()
throws SailException
initialize in interface Sailinitialize in class org.eclipse.rdf4j.sail.helpers.SailWrapperSailExceptionpublic SchemaCachingRDFSInferencerConnection getConnection() throws SailException
getConnection in interface NotifyingSailgetConnection in interface SailgetConnection in class org.eclipse.rdf4j.sail.helpers.NotifyingSailWrapperSailExceptionpublic ValueFactory getValueFactory()
getValueFactory in interface SailgetValueFactory in class org.eclipse.rdf4j.sail.helpers.SailWrapperpublic static SchemaCachingRDFSInferencer fastInstantiateFrom(SchemaCachingRDFSInferencer sailToInstantiateFrom, NotifyingSail store)
sailToInstantiateFrom - The SchemaCachingRDFSInferencer to extract the lookup tables from.store - Base sail for storing data.public static SchemaCachingRDFSInferencer fastInstantiateFrom(SchemaCachingRDFSInferencer sailToInstantiateFrom, NotifyingSail store, boolean useAllRdfsRules)
sailToInstantiateFrom - The SchemaCachingRDFSInferencer to extract the lookup tables from.store - Base sail for storing data.useAllRdfsRules - Usel all RDFS rules. If set to false rule rdf4a and rdfs4b will be ignorepublic IsolationLevel getDefaultIsolationLevel()
getDefaultIsolationLevel in interface SailgetDefaultIsolationLevel in class org.eclipse.rdf4j.sail.helpers.SailWrapperpublic List<IsolationLevel> getSupportedIsolationLevels()
getSupportedIsolationLevels in interface SailgetSupportedIsolationLevels in class org.eclipse.rdf4j.sail.helpers.SailWrapperCopyright © 2015-2018 Eclipse Foundation. All Rights Reserved.