Class ConnectionsGroup
java.lang.Object
org.eclipse.rdf4j.sail.shacl.wrapper.data.ConnectionsGroup
- All Implemented Interfaces:
 AutoCloseable
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum - 
Constructor Summary
ConstructorsConstructorDescriptionConnectionsGroup(SailConnection baseConnection, SailConnection previousStateConnection, Sail addedStatements, Sail removedStatements, Stats stats, ConnectionsGroup.RdfsSubClassOfReasonerProvider rdfsSubClassOfReasonerProvider, ShaclSailConnection.Settings transactionSettings, boolean sparqlValidation)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getCachedNodeFor(PlanNode planNode) Returns the RdfsSubClassOfReasoner if it is enabled.<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.getStats()booleanbooleanboolean 
- 
Constructor Details
- 
ConnectionsGroup
public ConnectionsGroup(SailConnection baseConnection, SailConnection previousStateConnection, Sail addedStatements, Sail removedStatements, Stats stats, ConnectionsGroup.RdfsSubClassOfReasonerProvider rdfsSubClassOfReasonerProvider, ShaclSailConnection.Settings transactionSettings, boolean sparqlValidation)  
 - 
 - 
Method Details
- 
getPreviousStateConnection
 - 
hasPreviousStateConnection
public boolean hasPreviousStateConnection() - 
getAddedStatements
 - 
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
 - 
getCachedNodeFor
 - 
getRdfsSubClassOfReasoner
Returns the RdfsSubClassOfReasoner if it is enabled. If it is not enabled this method will return null.- Returns:
 - RdfsSubClassOfReasoner or null
 
 - 
getStats
 - 
getTransactionSettings
 - 
isSparqlValidation
public boolean isSparqlValidation() - 
hasAddedStatements
public boolean hasAddedStatements() 
 -