Class WbPropConstant

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

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

  • Method Details

    • evaluate

      public org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue 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.PropertyIdValue>
    • getPid

      public String getPid()
    • getLabel

      public String getLabel()
    • getDatatype

      public String getDatatype()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object