Package org.openrefine.wikidata.schema
Class WbSnakExpr
java.lang.Object
org.openrefine.wikidata.schema.WbSnakExpr
- All Implemented Interfaces:
WbExpression<org.wikidata.wdtk.datamodel.interfaces.Snak>
public class WbSnakExpr
extends Object
implements WbExpression<org.wikidata.wdtk.datamodel.interfaces.Snak>
An expression for a snak (pair of property and value).
- Author:
- Antonin Delpeuch
-
Constructor Summary
ConstructorsConstructorDescriptionWbSnakExpr(WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue> propExpr, WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value> valueExpr) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.wikidata.wdtk.datamodel.interfaces.Snakevaluate(ExpressionContext ctxt) Evaluates the value expression in a given context, returns a Wikibase value suitable to be the target of a claim.WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue>getProp()WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value>getValue()inthashCode()
-
Constructor Details
-
WbSnakExpr
public WbSnakExpr(WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue> propExpr, WbExpression<? extends org.wikidata.wdtk.datamodel.interfaces.Value> valueExpr)
-
-
Method Details
-
evaluate
public org.wikidata.wdtk.datamodel.interfaces.Snak evaluate(ExpressionContext ctxt) throws SkipSchemaExpressionException, QAWarningException Description copied from interface:WbExpressionEvaluates the value expression in a given context, returns a Wikibase value suitable to be the target of a claim.- Specified by:
evaluatein interfaceWbExpression<org.wikidata.wdtk.datamodel.interfaces.Snak>- Throws:
SkipSchemaExpressionExceptionQAWarningException
-
getProp
-
getValue
-
equals
-
hashCode
public int hashCode()
-