Class ConnectionsGroup
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.wrapper.data.ConnectionsGroup
-
- All Implemented Interfaces:
AutoCloseable
@InternalUseOnly public class ConnectionsGroup extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConnectionsGroup.RdfsSubClassOfReasonerProviderstatic classConnectionsGroup.StatementPosition
-
Constructor Summary
Constructors Constructor Description ConnectionsGroup(SailConnection baseConnection, SailConnection previousStateConnection, Sail addedStatements, Sail removedStatements, Stats stats, ConnectionsGroup.RdfsSubClassOfReasonerProvider rdfsSubClassOfReasonerProvider, ShaclSailConnection.Settings transactionSettings, boolean sparqlValidation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()SailConnectiongetAddedStatements()SailConnectiongetBaseConnection()PlanNodegetCachedNodeFor(PlanNode planNode)SailConnectiongetPreviousStateConnection()RdfsSubClassOfReasonergetRdfsSubClassOfReasoner()Returns the RdfsSubClassOfReasoner if it is enabled.SailConnectiongetRemovedStatements()<T extends Value>
TgetSailSpecificValue(T value, ConnectionsGroup.StatementPosition statementPosition, SailConnection connection)This method is a performance optimization for converting a more general value object, like RDF.TYPE, to the specific Value object that the underlying sail would use for that node.StatsgetStats()ShaclSailConnection.SettingsgetTransactionSettings()booleanhasAddedStatements()booleanhasPreviousStateConnection()booleanisSparqlValidation()
-
-
-
Constructor Detail
-
ConnectionsGroup
public ConnectionsGroup(SailConnection baseConnection, SailConnection previousStateConnection, Sail addedStatements, Sail removedStatements, Stats stats, ConnectionsGroup.RdfsSubClassOfReasonerProvider rdfsSubClassOfReasonerProvider, ShaclSailConnection.Settings transactionSettings, boolean sparqlValidation)
-
-
Method Detail
-
getPreviousStateConnection
public SailConnection getPreviousStateConnection()
-
hasPreviousStateConnection
public boolean hasPreviousStateConnection()
-
getAddedStatements
public SailConnection getAddedStatements()
-
getRemovedStatements
public SailConnection getRemovedStatements()
-
getSailSpecificValue
public <T extends Value> T getSailSpecificValue(T value, ConnectionsGroup.StatementPosition statementPosition, SailConnection connection)
This method is a performance optimization for converting a more general value object, like RDF.TYPE, to the specific Value object that the underlying sail would use for that node. It uses a cache to avoid querying the store for the same value multiple times during the same validation.- Type Parameters:
T- the type of the value- Parameters:
value- the value object to be convertedstatementPosition- the position of the statement (subject, predicate, or object)connection- the SailConnection used to retrieve the specific Value object- Returns:
- the specific Value object used by the underlying sail, or the original value if no specific Value is found
- Throws:
SailException- if an error occurs while retrieving the specific Value object
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
getBaseConnection
public SailConnection getBaseConnection()
-
getRdfsSubClassOfReasoner
public RdfsSubClassOfReasoner getRdfsSubClassOfReasoner()
Returns the RdfsSubClassOfReasoner if it is enabled. If it is not enabled this method will return null.- Returns:
- RdfsSubClassOfReasoner or null
-
getStats
public Stats getStats()
-
getTransactionSettings
public ShaclSailConnection.Settings getTransactionSettings()
-
isSparqlValidation
public boolean isSparqlValidation()
-
hasAddedStatements
public boolean hasAddedStatements()
-
-