Class SpinSail

  • All Implemented Interfaces:
    FederatedServiceResolverClient, NotifyingSail, Sail, StackableSail

    @Deprecated
    public class SpinSail
    extends AbstractForwardChainingInferencer
    Deprecated.

    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.

    Since:
    3.1.0 2019
    • Constructor Detail

      • SpinSail

        public SpinSail()
        Deprecated.
      • SpinSail

        public SpinSail​(NotifyingSail baseSail)
        Deprecated.
    • Method Detail

      • getFunctionRegistry

        public FunctionRegistry getFunctionRegistry()
        Deprecated.
      • setFunctionRegistry

        public void setFunctionRegistry​(FunctionRegistry registry)
        Deprecated.
      • setTupleFunctionRegistry

        public void setTupleFunctionRegistry​(TupleFunctionRegistry registry)
        Deprecated.
      • setAxiomClosureNeeded

        public void setAxiomClosureNeeded​(boolean axiomClosureNeeded)
        Deprecated.
      • isAxiomClosureNeeded

        public boolean isAxiomClosureNeeded()
        Deprecated.
        Indicates if the SPIN Sail should itself load the full deductive closure of the SPIN axioms. Typically, this will be false if the underlying Sail stack already supports RDFS inferencing, true if not.
        Returns:
        true if the SpinSail needs to load the full axiom closure, false otherwise.
      • addQueryContextInitializer

        public void addQueryContextInitializer​(QueryContextInitializer initializer)
        Deprecated.
      • getSpinParser

        public SpinParser getSpinParser()
        Deprecated.
      • setSpinParser

        public void setSpinParser​(SpinParser parser)
        Deprecated.
      • getConnection

        public org.eclipse.rdf4j.sail.spin.SpinSailConnection getConnection()
                                                                     throws SailException
        Deprecated.
        Description copied from interface: Sail
        Opens 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:
        getConnection in interface NotifyingSail
        Specified by:
        getConnection in interface Sail
        Overrides:
        getConnection in class NotifyingSailWrapper
        Throws:
        SailException - If no transaction could be started, for example because the Sail is not writable.
      • initialize

        public void initialize()
                        throws SailException
        Deprecated.
        Description copied from interface: Sail
        Initializes 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:
        initialize in interface Sail
        Overrides:
        initialize in class SailWrapper
        Throws:
        SailException - If the Sail could not be initialized.
      • isInitializing

        public boolean isInitializing()
        Deprecated.
      • setValidateConstraints

        public void setValidateConstraints​(boolean validateConstraints)
        Deprecated.

        Disable or enable SPIN constraint validation. This can be very useful in order to improve performance

        Default true (constraint validation enabled).

        Parameters:
        validateConstraints - (true if enabled)
      • isValidateConstraints

        public boolean isValidateConstraints()
        Deprecated.
        Check is SPIN constraint validation is enabled.
        Returns:
        true if enabled