Class SuggestedEntityIdValue
- java.lang.Object
-
- org.openrefine.wikibase.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
public abstract class SuggestedEntityIdValue extends Object implements PrefetchedEntityIdValue
An EntityIdValue that we have obtained from a suggest widget in the schema alignment dialog.- Author:
- Antonin Delpeuch
-
-
Constructor Summary
Constructors Constructor Description SuggestedEntityIdValue(String id, String siteIRI, String label)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<T> valueVisitor)static SuggestedEntityIdValuebuild(String id, String siteIRI, String label)booleanequals(Object other)StringgetId()StringgetIri()StringgetLabel()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.StringgetSiteIri()List<String>getTypes()Returns a list of types for this entity.inthashCode()booleanisPlaceholder()StringtoString()
-
-
-
Method Detail
-
build
public static SuggestedEntityIdValue build(String id, String siteIRI, String label)
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
getSiteIri
public String getSiteIri()
- Specified by:
getSiteIriin interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
getLabel
public String 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
public List<String> 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
public String 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
-
-