| Package | Description |
|---|---|
| org.wikidata.wdtk.datamodel.helpers |
Package for mostly static helper code to work with data objects.
|
| org.wikidata.wdtk.datamodel.implementation |
Basic implementation for objects representing Wikibase data and related factories.
|
| org.wikidata.wdtk.datamodel.interfaces |
Interfaces for representing Wikibase data and related factories.
|
| Modifier and Type | Method and Description |
|---|---|
ItemIdValue |
DatamodelConverter.copy(ItemIdValue object)
Copies an
ItemIdValue. |
static ItemIdValue |
Datamodel.makeItemIdValue(String id,
String siteIri)
Creates an
ItemIdValue. |
static ItemIdValue |
Datamodel.makeWikidataItemIdValue(String id)
Creates an
ItemIdValue for Wikidata. |
| Modifier and Type | Method and Description |
|---|---|
ItemIdValue |
DatamodelConverter.copy(ItemIdValue object)
Copies an
ItemIdValue. |
static ItemUpdateBuilder |
ItemUpdateBuilder.forBaseRevisionId(ItemIdValue itemId,
long revisionId)
Creates new builder object for constructing update of item entity with given
revision ID.
|
static ItemUpdateBuilder |
ItemUpdateBuilder.forEntityId(ItemIdValue itemId)
Creates new builder object for constructing update of item entity with given
ID.
|
static ItemDocumentBuilder |
ItemDocumentBuilder.forItemId(ItemIdValue itemIdValue)
Starts the construction of an
ItemDocument with the given id. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue)
Creates an empty
ItemDocument. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks)
Creates an
ItemDocument with empty revision id. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId)
Creates an
ItemDocument. |
static ItemUpdate |
Datamodel.makeItemUpdate(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Creates new
ItemUpdate. |
static LexemeDocument |
Datamodel.makeLexemeDocument(LexemeIdValue lexemeIdValue,
ItemIdValue lexicalCategory,
ItemIdValue language,
List<MonolingualTextValue> lemmas)
Creates an empty
LexemeDocument. |
static LexemeDocument |
Datamodel.makeLexemeDocument(LexemeIdValue lexemeIdValue,
ItemIdValue lexicalCategory,
ItemIdValue language,
List<MonolingualTextValue> lemmas,
List<StatementGroup> statementGroups,
List<FormDocument> forms,
List<SenseDocument> senses)
Creates a
LexemeDocument. |
static LexemeUpdate |
Datamodel.makeLexemeUpdate(LexemeIdValue entityId,
long revisionId,
ItemIdValue language,
ItemIdValue lexicalCategory,
TermUpdate lemmas,
StatementUpdate statements,
Collection<SenseDocument> addedSenses,
Collection<SenseUpdate> updatedSenses,
Collection<SenseIdValue> removedSenses,
Collection<FormDocument> addedForms,
Collection<FormUpdate> updatedForms,
Collection<FormIdValue> removedForms)
Creates new
LexemeUpdate. |
static QuantityValue |
Datamodel.makeQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
ItemIdValue unit)
Creates a
QuantityValue. |
static QuantityValue |
Datamodel.makeQuantityValue(BigDecimal numericValue,
ItemIdValue unit)
Creates a
QuantityValue without bounds. |
LexemeUpdateBuilder |
LexemeUpdateBuilder.setLanguage(ItemIdValue language)
Sets lexeme language.
|
LexemeUpdateBuilder |
LexemeUpdateBuilder.setLexicalCategory(ItemIdValue category)
Sets lexical category of the lexeme.
|
static String |
ToString.toString(ItemIdValue o)
Returns a human-readable string representation of the given object.
|
ItemDocumentBuilder |
ItemDocumentBuilder.withSiteLink(String title,
String siteKey,
ItemIdValue... badges)
Adds an additional site link to the constructed document.
|
| Modifier and Type | Method and Description |
|---|---|
static FormDocument |
Datamodel.makeFormDocument(FormIdValue formIdValue,
List<MonolingualTextValue> representations,
List<ItemIdValue> grammaticalFeatures,
List<StatementGroup> statementGroups)
Creates a
FormDocument. |
static FormUpdate |
Datamodel.makeFormUpdate(FormIdValue entityId,
long revisionId,
TermUpdate representations,
Collection<ItemIdValue> grammaticalFeatures,
StatementUpdate statements)
Creates new
FormUpdate. |
static SiteLink |
Datamodel.makeSiteLink(String title,
String siteKey,
List<ItemIdValue> badges)
Creates a
SiteLink. |
FormUpdateBuilder |
FormUpdateBuilder.setGrammaticalFeatures(Collection<ItemIdValue> features)
Sets grammatical features of the form.
|
| Constructor and Description |
|---|
ItemDocumentBuilder(ItemIdValue itemIdValue)
Constructor to start the build from a blank item.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ItemIdValueImpl
Jackson implementation of
ItemIdValue. |
| Modifier and Type | Method and Description |
|---|---|
ItemIdValue |
ItemDocumentImpl.getEntityId() |
ItemIdValue |
ItemUpdateImpl.getEntityId() |
ItemIdValue |
GlobeCoordinatesValueImpl.getGlobeItemId() |
ItemIdValue |
DataObjectFactoryImpl.getItemIdValue(String id,
String siteIri) |
ItemIdValue |
LexemeDocumentImpl.getLanguage() |
ItemIdValue |
LexemeDocumentImpl.getLexicalCategory() |
ItemIdValue |
TimeValueImpl.getPreferredCalendarModelItemId() |
ItemIdValue |
QuantityValueImpl.getUnitItemId() |
| Modifier and Type | Method and Description |
|---|---|
List<ItemIdValue> |
SiteLinkImpl.getBadges() |
List<ItemIdValue> |
FormDocumentImpl.getGrammaticalFeatures() |
Optional<Set<ItemIdValue>> |
FormUpdateImpl.getGrammaticalFeatures() |
Optional<ItemIdValue> |
LexemeUpdateImpl.getLanguage() |
Optional<ItemIdValue> |
LexemeUpdateImpl.getLexicalCategory() |
| Modifier and Type | Method and Description |
|---|---|
FormDocument |
DataObjectFactoryImpl.getFormDocument(FormIdValue formIdValue,
List<MonolingualTextValue> representations,
List<ItemIdValue> grammaticalFeatures,
List<StatementGroup> statementGroups,
long revisionId) |
FormUpdate |
DataObjectFactoryImpl.getFormUpdate(FormIdValue entityId,
long revisionId,
TermUpdate representations,
Collection<ItemIdValue> grammaticalFeatures,
StatementUpdate statements) |
SiteLink |
DataObjectFactoryImpl.getSiteLink(String title,
String siteKey,
List<ItemIdValue> badges) |
| Constructor and Description |
|---|
ItemDocumentImpl(ItemIdValue id,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statements,
List<SiteLink> siteLinks,
long revisionId)
Constructor.
|
ItemDocumentImpl(ItemIdValue subject,
Map<String,MonolingualTextValue> labels,
Map<String,MonolingualTextValue> descriptions,
Map<String,List<MonolingualTextValue>> aliases,
Map<String,List<Statement>> claims,
Map<String,SiteLink> siteLinks,
long revisionId)
Protected constructor, meant to be used to create modified copies
of instances.
|
ItemUpdateImpl(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Initializes new item update.
|
LexemeUpdateImpl(LexemeIdValue entityId,
long revisionId,
ItemIdValue language,
ItemIdValue lexicalCategory,
TermUpdate lemmas,
StatementUpdate statements,
Collection<SenseDocument> addedSenses,
Collection<SenseUpdate> updatedSenses,
Collection<SenseIdValue> removedSenses,
Collection<FormDocument> addedForms,
Collection<FormUpdate> updatedForms,
Collection<FormIdValue> removedForms)
Initializes new entity update.
|
QuantityValueImpl(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
ItemIdValue unit)
Constructor.
|
| Constructor and Description |
|---|
FormUpdateImpl(FormIdValue entityId,
long revisionId,
TermUpdate representations,
Collection<ItemIdValue> grammaticalFeatures,
StatementUpdate statements)
Initializes new form update.
|
SiteLinkImpl(String title,
String site,
List<ItemIdValue> badges)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
static ItemIdValue |
ItemIdValue.NULL
Fixed
ItemIdValue that refers to a non-existing item. |
| Modifier and Type | Method and Description |
|---|---|
default ItemIdValue |
StatementDocument.findStatementItemIdValue(PropertyIdValue propertyIdValue)
Returns the unique
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property. |
default ItemIdValue |
StatementDocument.findStatementItemIdValue(String propertyId)
Returns the unique
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property. |
ItemIdValue |
ItemDocument.getEntityId()
Return the ID of the item that the data refers to.
|
ItemIdValue |
ItemUpdate.getEntityId() |
ItemIdValue |
GlobeCoordinatesValue.getGlobeItemId()
Get the
ItemIdValue of the globe that these coordinates refer to. |
ItemIdValue |
DataObjectFactory.getItemIdValue(String id,
String siteIri)
Creates an
ItemIdValue. |
ItemIdValue |
LexemeDocument.getLanguage()
Return the ID of the language to which the lexeme belongs
(French, British English...)
|
ItemIdValue |
LexemeDocument.getLexicalCategory()
Return the ID of the lexical category to which the lexeme belongs
(noun, verb...)
|
ItemIdValue |
TimeValue.getPreferredCalendarModelItemId()
Get the
ItemIdValue of the preferred calendar model that should
be used to display this date (and that was presumably used when entering it). |
ItemIdValue |
QuantityValue.getUnitItemId() |
| Modifier and Type | Method and Description |
|---|---|
List<ItemIdValue> |
SiteLink.getBadges()
Get the list of badges of the linked article.
|
Optional<Set<ItemIdValue>> |
FormUpdate.getGrammaticalFeatures()
Returns new grammatical features of the form assigned in this update.
|
List<ItemIdValue> |
FormDocument.getGrammaticalFeatures()
Return the IDs of the grammatical features of the form (masculine, singular...)
|
Optional<ItemIdValue> |
LexemeUpdate.getLanguage()
Returns new lexeme language assigned in this update.
|
Optional<ItemIdValue> |
LexemeUpdate.getLexicalCategory()
Returns new lexical category assigned to the lexeme in this update.
|
| Modifier and Type | Method and Description |
|---|---|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId)
Creates an
ItemDocument. |
ItemUpdate |
DataObjectFactory.getItemUpdate(ItemIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements,
Collection<SiteLink> modifiedSiteLinks,
Collection<String> removedSiteLinks)
Creates new
ItemUpdate. |
LexemeDocument |
DataObjectFactory.getLexemeDocument(LexemeIdValue lexemeIdValue,
ItemIdValue lexicalCategory,
ItemIdValue language,
List<MonolingualTextValue> lemmas,
List<StatementGroup> statementGroups,
List<FormDocument> forms,
List<SenseDocument> senses,
long revisionId)
Creates an
LexemeDocument. |
LexemeUpdate |
DataObjectFactory.getLexemeUpdate(LexemeIdValue entityId,
long revisionId,
ItemIdValue language,
ItemIdValue lexicalCategory,
TermUpdate lemmas,
StatementUpdate statements,
Collection<SenseDocument> addedSenses,
Collection<SenseUpdate> updatedSenses,
Collection<SenseIdValue> removedSenses,
Collection<FormDocument> addedForms,
Collection<FormUpdate> updatedForms,
Collection<FormIdValue> removedForms)
Creates new
LexemeUpdate. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
BigDecimal lowerBound,
BigDecimal upperBound,
ItemIdValue unit)
Creates a
QuantityValue. |
QuantityValue |
DataObjectFactory.getQuantityValue(BigDecimal numericValue,
ItemIdValue unit)
Creates a
QuantityValue without bounds. |
ItemDocument |
ItemDocument.withEntityId(ItemIdValue newEntityId)
Returns a new version of this document with updated ID.
|
FormDocument |
FormDocument.withGrammaticalFeature(ItemIdValue grammaticalFeature) |
LexemeDocument |
LexemeDocument.withLanguage(ItemIdValue newLanguage) |
LexemeDocument |
LexemeDocument.withLexicalCategory(ItemIdValue newLexicalCategory) |
| Modifier and Type | Method and Description |
|---|---|
FormDocument |
DataObjectFactory.getFormDocument(FormIdValue formIdValue,
List<MonolingualTextValue> representations,
List<ItemIdValue> grammaticalFeatures,
List<StatementGroup> statementGroups,
long revisionId)
Creates an
FormDocument. |
FormUpdate |
DataObjectFactory.getFormUpdate(FormIdValue entityId,
long revisionId,
TermUpdate representations,
Collection<ItemIdValue> grammaticalFeatures,
StatementUpdate statements)
Creates new
FormUpdate. |
SiteLink |
DataObjectFactory.getSiteLink(String title,
String siteKey,
List<ItemIdValue> badges)
Creates a
SiteLink. |
Copyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage