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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.List<String>
getTypes()
Returns a list of types for this entity.
-
-
-
Method Detail
-
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
-
-