public class SimpleCachingTripleCreator extends SimpleTripleCreator
SimpleTripleCreator which uses internal
maps for caching created nodes. Note that the used maps have no size
restriction.| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,org.apache.jena.graph.Node> |
propertyCache |
protected Map<Integer,org.apache.jena.graph.Node> |
resourceCache |
accessUriTemplates, baseGraphId, resourceUriTemplates| Constructor and Description |
|---|
SimpleCachingTripleCreator(int baseGraphId,
String[] resourceUriTemplates,
String[] accessUriTemplates)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.graph.Node |
createNode(int nodeId,
int externalId,
int extGraphId,
boolean isProperty)
Creates a
Node instance based on the given information. |
createTriplepublic SimpleCachingTripleCreator(int baseGraphId,
String[] resourceUriTemplates,
String[] accessUriTemplates)
baseGraphId - the graph Id of nodes that are not external nodes of the graph for
which this triple creator is used.uriTemplates - a mapping from graph Ids to domain names.public org.apache.jena.graph.Node createNode(int nodeId,
int externalId,
int extGraphId,
boolean isProperty)
SimpleTripleCreatorNode instance based on the given information.createNode in class SimpleTripleCreatornodeId - the internal Id of the nodeexternalId - the external Id of the node if it belongs to a different graph or
-1 if it is an internal nodeextGraphId - the Id of the graph to which this node belongs to or -1 if
it is an internal nodeisProperty - a flag indicating whether the node is a propertyNode instanceCopyright © 2019–2020. All rights reserved.