Class WbLocationVariable

  • All Implemented Interfaces:
    WbExpression<org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue>

    public class WbLocationVariable
    extends WbVariableExpr<org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue>
    • Constructor Detail

      • WbLocationVariable

        public WbLocationVariable()
      • WbLocationVariable

        public WbLocationVariable​(String columnName)
    • Method Detail

      • fromCell

        public org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue fromCell​(Cell cell,
                                                                                     ExpressionContext ctxt)
                                                                              throws SkipSchemaExpressionException
        Description copied from class: WbVariableExpr
        Method 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:
        fromCell in class WbVariableExpr<org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue>
        Parameters:
        cell - the cell to convert
        ctxt - the evaluation context
        Returns:
        the corresponding Wikibase value
        Throws:
        SkipSchemaExpressionException