Package org.openrefine.wikidata.schema
Class WbDateVariable
java.lang.Object
org.openrefine.wikidata.schema.WbVariableExpr<org.wikidata.wdtk.datamodel.interfaces.TimeValue>
org.openrefine.wikidata.schema.WbDateVariable
- All Implemented Interfaces:
WbExpression<org.wikidata.wdtk.datamodel.interfaces.TimeValue>
public class WbDateVariable
extends WbVariableExpr<org.wikidata.wdtk.datamodel.interfaces.TimeValue>
An expression that represents a time value, extracted from a string. A number
of formats are recognized, see
WbDateConstant for details.- Author:
- Antonin Delpeuch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.wikidata.wdtk.datamodel.interfaces.TimeValuefromCell(Cell cell, ExpressionContext ctxt) Method that should be implemented by subclasses, converting an OpenRefine cell to a Wikibase value.Methods inherited from class org.openrefine.wikidata.schema.WbVariableExpr
equalAsVariables, evaluate, getColumnName, hashCode, setColumnName
-
Constructor Details
-
WbDateVariable
public WbDateVariable() -
WbDateVariable
-
-
Method Details
-
fromCell
public org.wikidata.wdtk.datamodel.interfaces.TimeValue fromCell(Cell cell, ExpressionContext ctxt) throws SkipSchemaExpressionException Description copied from class:WbVariableExprMethod that should be implemented by subclasses, converting an OpenRefine cell to a Wikibase value. Access to other values and emitting warnings is possible via the supplied EvaluationContext object.- Specified by:
fromCellin classWbVariableExpr<org.wikidata.wdtk.datamodel.interfaces.TimeValue>- Parameters:
cell- the cell to convertctxt- the evaluation context- Returns:
- the corresponding Wikibase value
- Throws:
SkipSchemaExpressionException
-
equals
-