- All Known Implementing Classes:
EnhNodeProducer.Default,EnhNodeProducer.WithType
public interface EnhNodeProducer
To make some preparation while creating (create main triple).
Also, to create new instance of the resource (
EnhNode).
Used in factory (CommonEnhNodeFactoryImpl).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe base maker implementation for our project.static classto create a triple representing declaration. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Answerstrueif the givennodecan be created in graphvoiddoInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Changes theEnhGraphaccording to the encapsulated rules.org.apache.jena.enhanced.EnhNodenewInstance(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Wraps the givennodeas aJena RDFNode.default EnhNodeProducerrestrict(EnhNodeFilter filter) Returns a view string representation.
-
Method Details
-
newInstance
org.apache.jena.enhanced.EnhNode newInstance(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Wraps the givennodeas aJena RDFNode. No changes in the givenEnhGraphare made.- Parameters:
node-Nodeeg-EnhGraph- Returns:
EnhNode
-
doInsert
void doInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Changes theEnhGraphaccording to the encapsulated rules.- Parameters:
node-Nodeeg-EnhGraph
-
canInsert
boolean canInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Answerstrueif the givennodecan be created in graph- Parameters:
node-Nodeti testeg-EnhGraph- Returns:
- boolean
-
targetName
String targetName()Returns a view string representation.- Returns:
- the name (type) of
EnhNodeobject
-
restrict
-