Class MediaInfoEditBuilder

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

public class MediaInfoEditBuilder extends Object
Constructs a MediaInfoEdit incrementally.
Author:
Antonin Delpeuch
  • Constructor Details

    • MediaInfoEditBuilder

      public MediaInfoEditBuilder(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue id)
      Constructor.
      Parameters:
      id - the subject of the document. It can be a reconciled entity value for new entities.
  • Method Details

    • addStatement

      public MediaInfoEditBuilder addStatement(StatementEdit statement)
      Adds an update to a statement.
      Parameters:
      statement - the statement to add or update
    • addStatements

      public MediaInfoEditBuilder addStatements(List<StatementEdit> statements)
      Parameters:
      statements - the statements to add
    • addLabel

      public MediaInfoEditBuilder addLabel(org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue label, boolean override)
      Adds a label to the entity.
      Parameters:
      label - the label to add
      override - whether the label should be added even if there is already a label in that language
    • addLabels

      public MediaInfoEditBuilder addLabels(Set<org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue> labels, boolean override)
      Adds a list of labels to the entity.
      Parameters:
      labels - the labels to add
      override - whether the label should be added even if there is already a label in that language
    • build

      public MediaInfoEdit build()
      Constructs the MediaInfoEdit.
      Returns: