Package org.openrefine.wikibase.updates
Class StatementGroupEdit
- java.lang.Object
-
- org.openrefine.wikibase.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 Summary
Fields Modifier and Type Field Description protected org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue
property
protected List<StatementEdit>
statementEdits
-
Constructor Summary
Constructors Constructor Description StatementGroupEdit(List<StatementEdit> statementEdits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.boolean
equals(Object obj)
org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue
getProperty()
List<StatementEdit>
getStatementEdits()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
property
protected final org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property
-
statementEdits
protected final List<StatementEdit> statementEdits
-
-
Constructor Detail
-
StatementGroupEdit
public StatementGroupEdit(List<StatementEdit> statementEdits)
-
-
Method Detail
-
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 changesstatementGroup
- the corresponding existing statement group on the entity, or null if there is no such statement yet
-
-