Class AggJsonProperty

java.lang.Object
org.aksw.jenax.io.json.accumulator.AggJsonProperty
All Implemented Interfaces:
AggJson, AggJsonEdge

public class AggJsonProperty extends Object implements AggJsonEdge
  • Field Details

    • jsonKey

      protected org.apache.jena.sparql.path.P_Path0 jsonKey
      The property (json key) being aggregated
    • matchFieldId

      protected org.apache.jena.graph.Node matchFieldId
    • isForward

      protected boolean isForward
    • isSingle

      protected boolean isSingle
    • targetAggregator

      protected AggJsonNode targetAggregator
      The aggregator for the value
  • Constructor Details

    • AggJsonProperty

      protected AggJsonProperty(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator)
  • Method Details

    • of

      public static AggJsonProperty of(org.apache.jena.graph.Node jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward)
    • of

      public static AggJsonProperty of(org.apache.jena.graph.Node jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator)
    • of

      public static AggJsonProperty of(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward)
    • of

      public static AggJsonProperty of(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator)
    • newAccumulator

      public AccJsonEdge newAccumulator()
      Specified by:
      newAccumulator in interface AggJson
      Specified by:
      newAccumulator in interface AggJsonEdge
    • getMatchFieldId

      public org.apache.jena.graph.Node getMatchFieldId()
      Description copied from interface: AggJsonEdge
      An edge-based aggregator must declare which edge id it matches
      Specified by:
      getMatchFieldId in interface AggJsonEdge
    • getJsonKey

      public org.apache.jena.sparql.path.P_Path0 getJsonKey()
    • isForward

      public boolean isForward()
    • getTargetAggregator

      public AggJson getTargetAggregator()
    • setTargetAgg

      public AggJsonProperty setTargetAgg(AggJsonNode targetAggregator)
      Specified by:
      setTargetAgg in interface AggJsonEdge
    • setSingle

      public AggJsonProperty setSingle(boolean value)
      Only for testing; should not be used in production code