| java.lang.Object com.hp.hpl.jena.reasoner.rulesys.impl.TempNodeCache
TempNodeCache | public class TempNodeCache (Code) | | 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.
author: Dave Reynolds version: $Revision: 1.11 $ on $Date: 2008/01/02 12:06:15 $ |
Inner Class :public static class NodePair | |
Method Summary | |
public synchronized Node | getTemp(Node instance, Node prop, Node pclass) Retrieve or create a bNode representing an inferred property value.
Parameters: instance - the base instance node to which the property applies Parameters: prop - the property node whose value is being inferred Parameters: pclass - the (optional, can be null) class for the inferred value. |
classMap | protected Map classMap(Code) | | Map from temp to RDF class, if any
|
TempNodeCache | public TempNodeCache(InfGraph infgraph)(Code) | | Cosntructor.
Parameters: infgraph - Parent inference graph, used to be needed for synchronization, don't thinkwe need it any more |
getTemp | public synchronized Node getTemp(Node instance, Node prop, Node pclass)(Code) | | Retrieve or create a bNode representing an inferred property value.
Parameters: instance - the base instance node to which the property applies Parameters: prop - the property node whose value is being inferred Parameters: pclass - the (optional, can be null) class for the inferred value. the bNode representing the property value |
|
|