Class AccJsonLiteral

java.lang.Object
org.aksw.jenax.io.json.accumulator.AccJsonBase
org.aksw.jenax.io.json.accumulator.AccJsonLiteral
All Implemented Interfaces:
AccJson, AccJsonNode

public class AccJsonLiteral extends AccJsonBase implements AccJsonNode
  • Constructor Details

    • AccJsonLiteral

      public AccJsonLiteral()
  • Method Details

    • getPath

      public org.aksw.commons.path.json.PathJson getPath()
      Specified by:
      getPath in interface AccJson
    • begin

      public void begin(org.apache.jena.graph.Node node, AccContextRdf context, boolean skipOutput) throws IOException
      Description copied from interface: AccJson
      Start accumulation based on a given node in the underlying graph. Calls cannot be nested.
      Specified by:
      begin in interface AccJson
      Overrides:
      begin in class AccJsonBase
      Parameters:
      node - The source node to which the next incoming edge(s) will connect to
      context - The context which holds the JSON serializers
      skipOutput - When output should be disabled (used e.g. to skip over lists of items where just one was expected)
      Throws:
      IOException
    • transition

      public AccJson transition(org.apache.jena.graph.Triple edge, AccContextRdf context)
      Description copied from interface: AccJson
      Process 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:
      transition in interface AccJson
    • end

      public void end(AccContextRdf context) throws IOException
      Description copied from interface: AccJson
      End the accumulator's current node
      Specified by:
      end in interface AccJson
      Overrides:
      end in class AccJsonBase
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • acceptContribution

      public void acceptContribution(RdfElement value, AccContextRdf context)
      Description copied from interface: AccJson
      For 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:
      acceptContribution in interface AccJson