Class SuggestedEntityIdValue
java.lang.Object
org.openrefine.wikidata.schema.entityvalues.SuggestedEntityIdValue
- All Implemented Interfaces:
PrefetchedEntityIdValue,org.wikidata.wdtk.datamodel.interfaces.EntityIdValue,org.wikidata.wdtk.datamodel.interfaces.IriIdentifiedValue,org.wikidata.wdtk.datamodel.interfaces.Value
- Direct Known Subclasses:
SuggestedFormIdValue,SuggestedItemIdValue,SuggestedLexemeIdValue,SuggestedMediaInfoIdValue,SuggestedPropertyIdValue,SuggestedSenseIdValue
An EntityIdValue that we have obtained from a suggest widget in the schema
alignment dialog.
- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<T> valueVisitor) static SuggestedEntityIdValuebooleangetId()getIri()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.getTypes()Returns a list of types for this entity.inthashCode()booleantoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityIdValue
getEntityType
-
Constructor Details
-
SuggestedEntityIdValue
-
-
Method Details
-
build
-
getId
- Specified by:
getIdin interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
getSiteIri
- Specified by:
getSiteIriin interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
getLabel
Description copied from interface:PrefetchedEntityIdValueThis 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.- Specified by:
getLabelin interfacePrefetchedEntityIdValue- Returns:
- the preferred label of the entity
-
getTypes
Description copied from interface:PrefetchedEntityIdValueReturns 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- Specified by:
getTypesin interfacePrefetchedEntityIdValue
-
getIri
- Specified by:
getIriin interfaceorg.wikidata.wdtk.datamodel.interfaces.IriIdentifiedValue
-
isPlaceholder
public boolean isPlaceholder()- Specified by:
isPlaceholderin interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
accept
public <T> T accept(org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<T> valueVisitor) - Specified by:
acceptin interfaceorg.wikidata.wdtk.datamodel.interfaces.Value
-
equals
-
hashCode
public int hashCode() -
toString
-