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> T
accept(org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<T> valueVisitor)
static SuggestedEntityIdValue
build(String id, String siteIRI, String label)
boolean
equals(Object other)
String
getId()
String
getIri()
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.String
getSiteIri()
List<String>
getTypes()
Returns a list of types for this entity.int
hashCode()
boolean
isPlaceholder()
String
toString()
-
-
-
Method Detail
-
build
public static SuggestedEntityIdValue build(String id, String siteIRI, String label)
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
getSiteIri
public String getSiteIri()
- Specified by:
getSiteIri
in interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
getLabel
public String getLabel()
Description copied from interface:PrefetchedEntityIdValue
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.- Specified by:
getLabel
in interfacePrefetchedEntityIdValue
- Returns:
- the preferred label of the entity
-
getTypes
public List<String> getTypes()
Description copied from interface:PrefetchedEntityIdValue
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- Specified by:
getTypes
in interfacePrefetchedEntityIdValue
-
getIri
public String getIri()
- Specified by:
getIri
in interfaceorg.wikidata.wdtk.datamodel.interfaces.IriIdentifiedValue
-
isPlaceholder
public boolean isPlaceholder()
- Specified by:
isPlaceholder
in interfaceorg.wikidata.wdtk.datamodel.interfaces.EntityIdValue
-
accept
public <T> T accept(org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<T> valueVisitor)
- Specified by:
accept
in interfaceorg.wikidata.wdtk.datamodel.interfaces.Value
-
-