Class AccJsonLiteral
java.lang.Object
org.aksw.jenax.io.json.accumulator.AccJsonBase
org.aksw.jenax.io.json.accumulator.AccJsonLiteral
- All Implemented Interfaces:
AccJson,AccJsonNode
-
Field Summary
Fields inherited from class org.aksw.jenax.io.json.accumulator.AccJsonBase
currentSourceNode, hasBegun, oldSourceNode, parent, skipOutput, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptContribution(RdfElement value, AccContextRdf context) For materialization: Whenever end() is called on a state with materialization enabled, then it passes its accumulated value to the parent using this method.voidbegin(org.apache.jena.graph.Node node, AccContextRdf context, boolean skipOutput) Start accumulation based on a given node in the underlying graph.voidend(AccContextRdf context) End the accumulator's current nodeorg.aksw.commons.path.json.PathJsongetPath()toString()transition(org.apache.jena.graph.Triple edge, AccContextRdf context) Process an edge.Methods inherited from class org.aksw.jenax.io.json.accumulator.AccJsonBase
ensureBegun, getInternalValue, getParent, getValue, hasBegun, setParent
-
Constructor Details
-
AccJsonLiteral
public AccJsonLiteral()
-
-
Method Details
-
getPath
public org.aksw.commons.path.json.PathJson getPath() -
begin
public void begin(org.apache.jena.graph.Node node, AccContextRdf context, boolean skipOutput) throws IOException Description copied from interface:AccJsonStart accumulation based on a given node in the underlying graph. Calls cannot be nested.- Specified by:
beginin interfaceAccJson- Overrides:
beginin classAccJsonBase- Parameters:
node- The source node to which the next incoming edge(s) will connect tocontext- The context which holds the JSON serializersskipOutput- When output should be disabled (used e.g. to skip over lists of items where just one was expected)- Throws:
IOException
-
transition
Description copied from interface:AccJsonProcess an edge. Based on the given edge, this accumulator attempts to transition to another AccJson instance and return it. If there is no valid transition then this method returns null.- Specified by:
transitionin interfaceAccJson
-
end
Description copied from interface:AccJsonEnd the accumulator's current node- Specified by:
endin interfaceAccJson- Overrides:
endin classAccJsonBase- Throws:
IOException
-
toString
-
acceptContribution
Description copied from interface:AccJsonFor materialization: Whenever end() is called on a state with materialization enabled, then it passes its accumulated value to the parent using this method.- Specified by:
acceptContributionin interfaceAccJson
-