Class WbEntityIdValueConstant

java.lang.Object
org.openrefine.wikidata.schema.WbEntityIdValueConstant
All Implemented Interfaces:
WbExpression<org.wikidata.wdtk.datamodel.interfaces.EntityIdValue>

public class WbEntityIdValueConstant extends Object implements WbExpression<org.wikidata.wdtk.datamodel.interfaces.EntityIdValue>
A constant entity id value, that does not change depending on the row
Author:
Antonin Delpeuch
  • Constructor Details

    • WbEntityIdValueConstant

      public WbEntityIdValueConstant(String id, String label)
  • Method Details

    • evaluate

      public org.wikidata.wdtk.datamodel.interfaces.EntityIdValue evaluate(ExpressionContext ctxt)
      Description copied from interface: WbExpression
      Evaluates the value expression in a given context, returns a Wikibase value suitable to be the target of a claim.
      Specified by:
      evaluate in interface WbExpression<org.wikidata.wdtk.datamodel.interfaces.EntityIdValue>
    • getId

      public String getId()
    • getLabel

      public String getLabel()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object