- 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 class
The base maker implementation for our project.static class
to create a triple representing declaration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canInsert
(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Answerstrue
if the givennode
can be created in graphvoid
doInsert
(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Changes theEnhGraph
according to the encapsulated rules.org.apache.jena.enhanced.EnhNode
newInstance
(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Wraps the givennode
as aJena RDFNode
.default EnhNodeProducer
restrict
(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 givennode
as aJena RDFNode
. No changes in the givenEnhGraph
are made.- Parameters:
node
-Node
eg
-EnhGraph
- Returns:
EnhNode
-
doInsert
void doInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Changes theEnhGraph
according to the encapsulated rules.- Parameters:
node
-Node
eg
-EnhGraph
-
canInsert
boolean canInsert(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Answerstrue
if the givennode
can be created in graph- Parameters:
node
-Node
ti testeg
-EnhGraph
- Returns:
- boolean
-
targetName
String targetName()Returns a view string representation.- Returns:
- the name (type) of
EnhNode
object
-
restrict
-