| 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 |
|---|---|
SenseIdValue |
DatamodelConverter.copy(SenseIdValue object)
Copies a
SenseIdValue. |
static SenseIdValue |
Datamodel.makeSenseIdValue(String id,
String siteIri)
Creates an
SenseIdValue. |
static SenseIdValue |
Datamodel.makeWikidataSenseIdValue(String id)
Creates an
SenseIdValue for Wikidata. |
| Modifier and Type | Method and Description |
|---|---|
SenseIdValue |
DatamodelConverter.copy(SenseIdValue object)
Copies a
SenseIdValue. |
static SenseUpdateBuilder |
SenseUpdateBuilder.forBaseRevisionId(SenseIdValue senseId,
long revisionId)
Creates new builder object for constructing update of sense entity with given
revision ID.
|
static SenseUpdateBuilder |
SenseUpdateBuilder.forEntityId(SenseIdValue senseId)
Creates new builder object for constructing update of sense entity with given
ID.
|
static SenseDocument |
Datamodel.makeSenseDocument(SenseIdValue senseIdValue,
List<MonolingualTextValue> glosses,
List<StatementGroup> statementGroups)
Creates a
SenseDocument. |
static SenseUpdate |
Datamodel.makeSenseUpdate(SenseIdValue entityId,
long revisionId,
TermUpdate glosses,
StatementUpdate statements)
Creates new
SenseUpdate. |
LexemeUpdateBuilder |
LexemeUpdateBuilder.removeSense(SenseIdValue senseId)
Removes existing sense from the lexeme.
|
static String |
ToString.toString(SenseIdValue o)
Returns a human-readable string representation of the given object.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Class and Description |
|---|---|
class |
SenseIdValueImpl
Jackson implementation of
SenseIdValue. |
| Modifier and Type | Method and Description |
|---|---|
SenseIdValue |
SenseUpdateImpl.getEntityId() |
SenseIdValue |
SenseDocumentImpl.getEntityId() |
SenseIdValue |
DataObjectFactoryImpl.getSenseIdValue(String id,
String siteIri) |
| Modifier and Type | Method and Description |
|---|---|
Set<SenseIdValue> |
LexemeUpdateImpl.getRemovedSenses() |
Map<SenseIdValue,SenseUpdate> |
LexemeUpdateImpl.getUpdatedSenses() |
| Modifier and Type | Method and Description |
|---|---|
SenseDocument |
LexemeDocumentImpl.getSense(SenseIdValue senseId) |
SenseDocument |
DataObjectFactoryImpl.getSenseDocument(SenseIdValue senseIdValue,
List<MonolingualTextValue> glosses,
List<StatementGroup> statementGroups,
long revisionId) |
SenseUpdate |
DataObjectFactoryImpl.getSenseUpdate(SenseIdValue entityId,
long revisionId,
TermUpdate glosses,
StatementUpdate statements) |
SenseDocument |
SenseDocumentImpl.withEntityId(SenseIdValue newEntityId) |
| Modifier and Type | Method and Description |
|---|---|
LexemeUpdate |
DataObjectFactoryImpl.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) |
| Constructor and Description |
|---|
SenseUpdateImpl(SenseIdValue entityId,
long revisionId,
TermUpdate glosses,
StatementUpdate statements)
Initializes new sense update.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
static SenseIdValue |
SenseIdValue.NULL
Fixed
SenseIdValue that refers to a non-existing sense. |
| Modifier and Type | Method and Description |
|---|---|
SenseIdValue |
SenseDocument.getEntityId()
Returns the ID of the entity that the data refers to
|
SenseIdValue |
SenseUpdate.getEntityId() |
SenseIdValue |
DataObjectFactory.getSenseIdValue(String id,
String siteIri)
Creates a
SenseIdValue. |
| Modifier and Type | Method and Description |
|---|---|
Set<SenseIdValue> |
LexemeUpdate.getRemovedSenses()
Returns IDs of senses removed from the lexeme in this update.
|
Map<SenseIdValue,SenseUpdate> |
LexemeUpdate.getUpdatedSenses()
Returns lexeme senses modified in this update.
|
| Modifier and Type | Method and Description |
|---|---|
SenseDocument |
LexemeDocument.getSense(SenseIdValue formId)
Return the inner sense having the given id
|
SenseDocument |
DataObjectFactory.getSenseDocument(SenseIdValue senseIdValue,
List<MonolingualTextValue> glosses,
List<StatementGroup> statementGroups,
long revisionId)
Creates a
SenseDocument. |
SenseUpdate |
DataObjectFactory.getSenseUpdate(SenseIdValue entityId,
long revisionId,
TermUpdate glosses,
StatementUpdate statements)
Creates new
SenseUpdate. |
SenseDocument |
SenseDocument.withEntityId(SenseIdValue newEntityId)
Returns a new version of this document with updated ID.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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