public interface EntityIdValue extends IriIdentifiedValue
When considering entities from multiple sites, the (local) ID alone is not enough to identify an entity unambiguously. In this case, the site IRI also needs to be taken into account.
An alternative to using the local ID and site IRI together is to use the full IRI. By default, this is computed by appending the local ID to the site IRI. However, for some sites and some entity types, more elaborate computations might be required, so this construction scheme for IRIs should not be presumed.
The full IRI of an entity is used in export formats like RDF, but also internally, e.g., for identifying the calendar model of time values.
| Modifier and Type | Field and Description |
|---|---|
static String |
ET_ITEM
IRI of the type of an entity that is an item.
|
static String |
ET_PROPERTY
IRI of the type of an entity that is a property.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityType()
Returns the type of this entity.
|
String |
getId()
Returns the id of this entity.
|
String |
getSiteIri()
Returns an IRI that identifies the site that this entity comes from,,
e.g., "http://www.wikidata.org/entity/" for Wikidata.
|
getIristatic final String ET_ITEM
static final String ET_PROPERTY
String getEntityType()
ET_ITEM or
ET_PROPERTY.String getId()
String getSiteIri()
Copyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage