Package org.openrefine.wikibase.schema
Class WbStatementExpr
- java.lang.Object
-
- org.openrefine.wikibase.schema.WbStatementExpr
-
public class WbStatementExpr extends Object
-
-
Constructor Summary
Constructors Constructor Description WbStatementExpr(WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value> mainSnakValueExpr, List<WbSnakExpr> qualifierExprs, List<WbReferenceExpr> referenceExprs, StatementMerger merger, StatementEditingMode mode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
StatementEdit
evaluate(ExpressionContext ctxt, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue subject, org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyId)
WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value>
getMainsnak()
StatementEditingMode
getMode()
List<WbSnakExpr>
getQualifiers()
List<WbReferenceExpr>
getReferences()
StatementMerger
getStatementMerger()
static List<org.wikidata.wdtk.datamodel.interfaces.SnakGroup>
groupSnaks(List<org.wikidata.wdtk.datamodel.interfaces.Snak> snaks)
int
hashCode()
void
validate(ValidationState validation)
-
-
-
Constructor Detail
-
WbStatementExpr
public WbStatementExpr(WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value> mainSnakValueExpr, List<WbSnakExpr> qualifierExprs, List<WbReferenceExpr> referenceExprs, StatementMerger merger, StatementEditingMode mode)
-
-
Method Detail
-
validate
public void validate(ValidationState validation)
-
groupSnaks
public static List<org.wikidata.wdtk.datamodel.interfaces.SnakGroup> groupSnaks(List<org.wikidata.wdtk.datamodel.interfaces.Snak> snaks)
-
evaluate
public StatementEdit evaluate(ExpressionContext ctxt, org.wikidata.wdtk.datamodel.interfaces.EntityIdValue subject, org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyId) throws SkipSchemaExpressionException, QAWarningException
-
getMainsnak
public WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value> getMainsnak()
-
getQualifiers
public List<WbSnakExpr> getQualifiers()
-
getReferences
public List<WbReferenceExpr> getReferences()
-
getStatementMerger
public StatementMerger getStatementMerger()
-
getMode
public StatementEditingMode getMode()
-
-