Class StatementGroupEdit

java.lang.Object
org.openrefine.wikidata.updates.StatementGroupEdit

public class StatementGroupEdit extends Object
A list of statement edits which share the same property, and will therefore affect the same statement group on the target entity.
Author:
Antonin Delpeuch
  • Field Details

    • property

      protected final org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property
    • statementEdits

      protected final List<StatementEdit> statementEdits
  • Constructor Details

  • Method Details

    • getProperty

      public org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue getProperty()
    • getStatementEdits

      public List<StatementEdit> getStatementEdits()
    • contributeToStatementUpdate

      public void contributeToStatementUpdate(org.wikidata.wdtk.datamodel.helpers.StatementUpdateBuilder builder, org.wikidata.wdtk.datamodel.interfaces.StatementGroup statementGroup)
      Given an existing statement group on the target entity, translate this edit into concrete changes of statements, by logging them into the supplied builder.
      Parameters:
      builder - the statement update builder in which to add the changes
      statementGroup - the corresponding existing statement group on the entity, or null if there is no such statement yet
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object