Package org.openrefine.wikidata.updates
Class StatementGroupEdit
java.lang.Object
org.openrefine.wikidata.updates.StatementGroupEdit
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final org.wikidata.wdtk.datamodel.interfaces.PropertyIdValueprotected final List<StatementEdit> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeToStatementUpdate(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.booleanorg.wikidata.wdtk.datamodel.interfaces.PropertyIdValueinthashCode()toString()
-
Field Details
-
property
protected final org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property -
statementEdits
-
-
Constructor Details
-
StatementGroupEdit
-
-
Method Details
-
getProperty
public org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue getProperty() -
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 changesstatementGroup- the corresponding existing statement group on the entity, or null if there is no such statement yet
-
equals
-
hashCode
public int hashCode() -
toString
-