Interface PrefetchedEntityIdValue

All Superinterfaces:
org.wikidata.wdtk.datamodel.interfaces.EntityIdValue, org.wikidata.wdtk.datamodel.interfaces.IriIdentifiedValue, org.wikidata.wdtk.datamodel.interfaces.Value
All Known Implementing Classes:
ReconEntityIdValue, ReconItemIdValue, ReconMediaInfoIdValue, ReconPropertyIdValue, SuggestedEntityIdValue, SuggestedFormIdValue, SuggestedItemIdValue, SuggestedLexemeIdValue, SuggestedMediaInfoIdValue, SuggestedPropertyIdValue, SuggestedSenseIdValue

public interface PrefetchedEntityIdValue extends org.wikidata.wdtk.datamodel.interfaces.EntityIdValue
An entity id value that also comes with a label and possibly types. The rationale behind this classes is that OpenRefine already stores labels and types for the Wikidata entities it knows about (in the reconciliation data), so it is worth keeping this data to avoid re-fetching it when we need it.
Author:
Antonin Delpeuch
  • Field Summary

    Fields inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityIdValue

    ET_FORM, ET_ITEM, ET_LEXEME, ET_MEDIA_INFO, ET_PROPERTY, ET_SENSE, ET_UNSUPPORTED, SITE_LOCAL
  • Method Summary

    Modifier and Type
    Method
    Description
    This should return the label "as we got it", with no guarantee that it is current or that its language matches that of the user.
    Returns a list of types for this entity.

    Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityIdValue

    getEntityType, getId, getSiteIri, isPlaceholder

    Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.IriIdentifiedValue

    getIri

    Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.Value

    accept
  • Method Details

    • getLabel

      String getLabel()
      This should return the label "as we got it", with no guarantee that it is current or that its language matches that of the user. In general though, that should be the case if the user always uses OpenRefine with the same language settings.
      Returns:
      the preferred label of the entity
    • getTypes

      List<String> getTypes()
      Returns a list of types for this entity. Again these are the types as they were originally fetched from the reconciliation interface: they can diverge from what is currently on the entity. Empty lists should be returned for