@Deprecated public class SpinSail extends AbstractForwardChainingInferencer
The SpinSail is currently deprecated. If you are using SPIN to validate your data then it is recommended to move to SHACL with the ShaclSail. Currently, the SHACL W3C Recommendation only supports validation, and has no equivalent to SPIN's inference features.
Deprecating the SpinSail has been discussed at https://github.com/eclipse/rdf4j/issues/1262 and can be summarized with there being no developers actively supporting it and that SPIN in itself is no longer recommended by TopQuadrant. Do not expect the SpinSail to scale in any way and expect simple delete operations to take seconds to complete. There are still a number of open issues in GitHub connected to the SpinSail, none of these are likely to get fixed.
| Constructor and Description |
|---|
SpinSail()
Deprecated.
|
SpinSail(NotifyingSail baseSail)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryContextInitializer(QueryContextInitializer initializer)
Deprecated.
|
org.eclipse.rdf4j.sail.spin.SpinSailConnection |
getConnection()
Deprecated.
Opens a connection on the Sail which can be used to query and update data.
|
TupleFunctionEvaluationMode |
getEvaluationMode()
Deprecated.
|
FederatedServiceResolver |
getFederatedServiceResolver()
Deprecated.
|
FunctionRegistry |
getFunctionRegistry()
Deprecated.
|
protected List<QueryContextInitializer> |
getQueryContextInitializers()
Deprecated.
|
SpinParser |
getSpinParser()
Deprecated.
|
TupleFunctionRegistry |
getTupleFunctionRegistry()
Deprecated.
|
void |
initialize()
Deprecated.
Initializes the Sail.
|
boolean |
isAxiomClosureNeeded()
Deprecated.
Indicates if the SPIN Sail should itself load the full deductive closure of the SPIN axioms.
|
boolean |
isInitializing()
Deprecated.
|
boolean |
isValidateConstraints()
Deprecated.
Check is SPIN constraint validation is enabled.
|
void |
setAxiomClosureNeeded(boolean axiomClosureNeeded)
Deprecated.
|
void |
setBaseSail(Sail baseSail)
Deprecated.
Sets the base Sail that this Sail will work on top of.
|
void |
setEvaluationMode(TupleFunctionEvaluationMode mode)
Deprecated.
|
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Deprecated.
Sets the
FederatedServiceResolver to use for this client. |
void |
setFunctionRegistry(FunctionRegistry registry)
Deprecated.
|
void |
setSpinParser(SpinParser parser)
Deprecated.
|
void |
setTupleFunctionRegistry(TupleFunctionRegistry registry)
Deprecated.
|
void |
setValidateConstraints(boolean validateConstraints)
Deprecated.
Disable or enable SPIN constraint validation.
|
getDefaultIsolationLevel, getSupportedIsolationLevelsaddSailChangedListener, getBaseSail, removeSailChangedListenergetDataDir, getValueFactory, isWritable, setDataDir, shutDown, verifyBaseSailSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataDir, getValueFactory, init, isWritable, setDataDir, shutDownpublic SpinSail()
public SpinSail(NotifyingSail baseSail)
public void setBaseSail(Sail baseSail)
StackableSailsetBaseSail in interface StackableSailsetBaseSail in class NotifyingSailWrapperpublic FunctionRegistry getFunctionRegistry()
public void setFunctionRegistry(FunctionRegistry registry)
public TupleFunctionRegistry getTupleFunctionRegistry()
public void setTupleFunctionRegistry(TupleFunctionRegistry registry)
public FederatedServiceResolver getFederatedServiceResolver()
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolverClientFederatedServiceResolver to use for this client.setFederatedServiceResolver in interface FederatedServiceResolverClientsetFederatedServiceResolver in class SailWrapperresolver - The resolver to use.public void setEvaluationMode(TupleFunctionEvaluationMode mode)
public TupleFunctionEvaluationMode getEvaluationMode()
public void setAxiomClosureNeeded(boolean axiomClosureNeeded)
public boolean isAxiomClosureNeeded()
false if the underlying Sail stack already supports RDFS inferencing, true if not.true if the SpinSail needs to load the full axiom closure, false otherwise.public void addQueryContextInitializer(QueryContextInitializer initializer)
protected List<QueryContextInitializer> getQueryContextInitializers()
public SpinParser getSpinParser()
public void setSpinParser(SpinParser parser)
public org.eclipse.rdf4j.sail.spin.SpinSailConnection getConnection()
throws SailException
SailgetConnection in interface NotifyingSailgetConnection in interface SailgetConnection in class NotifyingSailWrapperSailException - If no transaction could be started, for example because the Sail is not writable.public void initialize()
throws SailException
Sailinitialize in interface Sailinitialize in class SailWrapperSailException - If the Sail could not be initialized.public boolean isInitializing()
public void setValidateConstraints(boolean validateConstraints)
Disable or enable SPIN constraint validation. This can be very useful in order to improve performance
Default true (constraint validation enabled).
validateConstraints - (true if enabled)public boolean isValidateConstraints()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.