java.lang.Object
org.apache.jena.reasoner.rulesys.impl.TempNodeCache
In some rules we need to be able to create temporary property values
which are inferred from ontology constraints but not present in the ground
data. This structure is used to manage a pool of such temporary nodes.
It is only needed in situations where the data can not be added directly
to a deductions graph due to the risk of concurrent access.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class used to hold and hash a node pair. -
Constructor Summary
-
Method Summary
-
Constructor Details
-
TempNodeCache
Constructor.- Parameters:
infgraph
- Parent inference graph, used to be needed for synchronization, don't think we need it any more
-
-
Method Details
-
getTemp
Retrieve or create a bNode representing an inferred property value.- Parameters:
instance
- the base instance node to which the property appliesprop
- the property node whose value is being inferredpclass
- the (optional, can be null) class for the inferred value.- Returns:
- the bNode representing the property value
-