IriIdentifiedValue, ValueItemIdValue, PropertyIdValueItemIdValueImpl, JacksonValueEntityId, JacksonValueItemId, JacksonValuePropertyId, PropertyIdValueImplpublic 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 | Description |
|---|---|---|
static java.lang.String |
ET_ITEM |
IRI of the type of an entity that is an item.
|
static java.lang.String |
ET_PROPERTY |
IRI of the type of an entity that is a property.
|
static java.lang.String |
SITE_LOCAL |
The site IRI of "local" identifiers.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getEntityType() |
Returns the type of this entity.
|
java.lang.String |
getId() |
Returns the id of this entity.
|
java.lang.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 java.lang.String ET_ITEM
static final java.lang.String ET_PROPERTY
static final java.lang.String SITE_LOCAL
java.lang.String getEntityType()
ET_ITEM or
ET_PROPERTY.java.lang.String getId()
java.lang.String getSiteIri()
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage