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.
|
org.wikidata.wdtk.rdf |
Serializer for RDF
|
org.wikidata.wdtk.rdf.values |
Package for code related to the conversion of data values to RDF in various ways.
|
org.wikidata.wdtk.wikibaseapi |
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
|
Modifier and Type | Method and Description |
---|---|
MonolingualTextValue |
DatamodelConverter.copy(MonolingualTextValue object)
Copies a
MonolingualTextValue |
static MonolingualTextValue |
Datamodel.makeMonolingualTextValue(String text,
String languageCode)
Creates a
MonolingualTextValue . |
Modifier and Type | Method and Description |
---|---|
AliasUpdateBuilder |
AliasUpdateBuilder.add(MonolingualTextValue alias)
Adds new alias.
|
MonolingualTextValue |
DatamodelConverter.copy(MonolingualTextValue object)
Copies a
MonolingualTextValue |
static boolean |
Equality.equalsMonolingualTextValue(MonolingualTextValue o1,
Object o2)
Returns
true if the parameters are two MonolingualTextValue
objects with exactly the same data. |
static int |
Hash.hashCode(MonolingualTextValue o)
Returns a hash code for the given object.
|
TermUpdateBuilder |
TermUpdateBuilder.put(MonolingualTextValue term)
Adds or changes term.
|
AliasUpdateBuilder |
AliasUpdateBuilder.remove(MonolingualTextValue alias)
Removed existing alias.
|
static String |
ToString.toString(MonolingualTextValue o)
Returns a human-readable string representation of the given object.
|
Value |
DatamodelConverter.visit(MonolingualTextValue value) |
T |
EntityDocumentBuilder.withAlias(MonolingualTextValue mtv)
Adds an additional alias to the constructed document.
|
T |
EntityDocumentBuilder.withDescription(MonolingualTextValue mtv)
Adds an additional description to the constructed document.
|
T |
EntityDocumentBuilder.withLabel(MonolingualTextValue mtv)
Adds an additional label to the constructed document.
|
Modifier and Type | Class and Description |
---|---|
class |
MonolingualTextValueImpl
Jackson implementation of
MonolingualTextValue . |
class |
TermImpl
Jackson representation of
MonolingualTextValue data used in labels,
aliases, and descriptions in JSON. |
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<MonolingualTextValue>> |
TermedStatementDocumentImpl.aliases |
protected Map<String,MonolingualTextValue> |
TermedStatementDocumentImpl.descriptions |
Modifier and Type | Method and Description |
---|---|
MonolingualTextValue |
DataObjectFactoryImpl.getMonolingualTextValue(String text,
String languageCode) |
Modifier and Type | Method and Description |
---|---|
List<MonolingualTextValue> |
AliasUpdateImpl.getAdded() |
Map<String,List<MonolingualTextValue>> |
TermedStatementDocumentImpl.getAliases() |
Map<String,MonolingualTextValue> |
TermedStatementDocumentImpl.getDescriptions() |
Map<String,MonolingualTextValue> |
SenseDocumentImpl.getGlosses() |
Map<String,MonolingualTextValue> |
LexemeDocumentImpl.getLemmas() |
Map<String,MonolingualTextValue> |
TermUpdateImpl.getModified() |
Optional<List<MonolingualTextValue>> |
AliasUpdateImpl.getRecreated() |
Set<MonolingualTextValue> |
AliasUpdateImpl.getRemoved() |
Map<String,MonolingualTextValue> |
FormDocumentImpl.getRepresentations() |
protected static Map<String,List<MonolingualTextValue>> |
TermedStatementDocumentImpl.withAliases(Map<String,List<MonolingualTextValue>> values,
String language,
List<MonolingualTextValue> aliases) |
Modifier and Type | Method and Description |
---|---|
PropertyDocument |
PropertyDocumentImpl.withDescription(MonolingualTextValue newDescription) |
ItemDocument |
ItemDocumentImpl.withDescription(MonolingualTextValue newDescription) |
SenseDocument |
SenseDocumentImpl.withGloss(MonolingualTextValue gloss) |
MediaInfoDocument |
MediaInfoDocumentImpl.withLabel(MonolingualTextValue newLabel) |
PropertyDocument |
PropertyDocumentImpl.withLabel(MonolingualTextValue newLabel) |
ItemDocument |
ItemDocumentImpl.withLabel(MonolingualTextValue newLabel) |
LexemeDocument |
LexemeDocumentImpl.withLemma(MonolingualTextValue lemma) |
FormDocument |
FormDocumentImpl.withRepresentation(MonolingualTextValue representation) |
Constructor and Description |
---|
TermImpl(MonolingualTextValue other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
default MonolingualTextValue |
StatementDocument.findStatementMonolingualTextValue(PropertyIdValue propertyIdValue)
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
default MonolingualTextValue |
StatementDocument.findStatementMonolingualTextValue(String propertyId)
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
MonolingualTextValue |
DataObjectFactory.getMonolingualTextValue(String text,
String languageCode)
Creates a
MonolingualTextValue . |
Modifier and Type | Method and Description |
---|---|
List<MonolingualTextValue> |
AliasUpdate.getAdded()
Returns aliases added in this update.
|
Map<String,List<MonolingualTextValue>> |
TermedDocument.getAliases()
Return a Map from Wikibase language codes to lists of alias labels for a
given language.
|
Map<String,MonolingualTextValue> |
TermedDocument.getDescriptions()
Return a Map from Wikibase language codes to descriptions.
|
Map<String,MonolingualTextValue> |
SenseDocument.getGlosses()
Return the human readable description of the sense indexed by Wikimedia language code
|
Map<String,MonolingualTextValue> |
LabeledDocument.getLabels()
Return a Map from Wikibase language codes to labels.
|
Map<String,MonolingualTextValue> |
LexemeDocument.getLemmas()
Return the human readable representations of the lexeme indexed by Wikimedia language code
|
Map<String,MonolingualTextValue> |
TermUpdate.getModified()
Returns terms added or modified in this update.
|
Optional<List<MonolingualTextValue>> |
AliasUpdate.getRecreated()
Returns the new list of aliases that completely replaces current aliases.
|
Set<MonolingualTextValue> |
AliasUpdate.getRemoved()
Returns aliases removed in this update.
|
Map<String,MonolingualTextValue> |
FormDocument.getRepresentations()
Return the human readable representations of the form indexed by Wikimedia language code
|
Modifier and Type | Method and Description |
---|---|
T |
ValueVisitor.visit(MonolingualTextValue value)
Visits a MonolingualTextValue and returns a result.
|
ItemDocument |
ItemDocument.withDescription(MonolingualTextValue newDescription) |
TermedDocument |
TermedDocument.withDescription(MonolingualTextValue newDescription)
Returns a new version of this document with a new description
(which overrides any existing description).
|
TermedStatementDocument |
TermedStatementDocument.withDescription(MonolingualTextValue newDescription) |
PropertyDocument |
PropertyDocument.withDescription(MonolingualTextValue newDescription) |
SenseDocument |
SenseDocument.withGloss(MonolingualTextValue gloss) |
ItemDocument |
ItemDocument.withLabel(MonolingualTextValue newLabel) |
MediaInfoDocument |
MediaInfoDocument.withLabel(MonolingualTextValue newLabel) |
TermedDocument |
TermedDocument.withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
LabeledDocument |
LabeledDocument.withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
TermedStatementDocument |
TermedStatementDocument.withLabel(MonolingualTextValue newLabel) |
LabeledStatementDocument |
LabeledStatementDocument.withLabel(MonolingualTextValue newLabel) |
PropertyDocument |
PropertyDocument.withLabel(MonolingualTextValue newLabel) |
LexemeDocument |
LexemeDocument.withLemma(MonolingualTextValue lemma) |
FormDocument |
FormDocument.withRepresentation(MonolingualTextValue representation) |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.rdf4j.model.Value |
AbstractRdfConverter.getMonolingualTextValueLiteral(MonolingualTextValue value,
RdfWriter rdfWriter) |
String |
PropertyRegister.setPropertyTypeFromMonolingualTextValue(PropertyIdValue propertyIdValue,
MonolingualTextValue value)
Returns the IRI of the primitive Type of an Property for
MonolingualTextValue objects. |
Modifier and Type | Method and Description |
---|---|
void |
RdfConverter.writeTermTriples(org.eclipse.rdf4j.model.Resource subject,
AbstractRdfConverter.TermKind kind,
Collection<MonolingualTextValue> terms) |
void |
AbstractRdfConverter.writeTermTriples(org.eclipse.rdf4j.model.Resource subject,
AbstractRdfConverter.TermKind kind,
Collection<MonolingualTextValue> terms) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.rdf4j.model.Value |
MonolingualTextValueConverter.getRdfValue(MonolingualTextValue value,
PropertyIdValue propertyIdValue,
boolean simple) |
org.eclipse.rdf4j.model.Value |
AnyValueConverter.visit(MonolingualTextValue value) |
Modifier and Type | Method and Description |
---|---|
List<MonolingualTextValue> |
TermStatementUpdate.getAddedAliases(String language)
Deprecated.
Retrieves the list of aliases that will be added in a
given language, after all the optimizations have been done
(replacing empty labels by new aliases in the same language,
for instance).
|
List<MonolingualTextValue> |
TermStatementUpdate.getRemovedAliases(String language)
Deprecated.
Retrieves the list of aliases that will be removed in a
given language, after all the optimizations have been done
(replacing empty labels by new aliases in the same language,
for instance).
|
Modifier and Type | Method and Description |
---|---|
protected void |
TermStatementUpdate.addAlias(MonolingualTextValue alias)
Deprecated.
Adds an individual alias.
|
protected void |
TermStatementUpdate.deleteAlias(MonolingualTextValue alias)
Deprecated.
Deletes an individual alias
|
protected TermImpl |
TermStatementUpdate.monolingualToJackson(MonolingualTextValue monolingualTextValue)
Deprecated.
Creates a monolingual value that is suitable for JSON serialization.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,org.wikidata.wdtk.wikibaseapi.TermStatementUpdate.NameWithUpdate> |
TermStatementUpdate.initUpdatesFromCurrentValues(Collection<MonolingualTextValue> currentValues)
Deprecated.
Initializes the list of current values for a type of terms (label or description).
|
protected void |
TermStatementUpdate.processAliases(List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases)
Deprecated.
Processes changes on aliases, updating the planned state of the item.
|
protected void |
TermStatementUpdate.processAliases(List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases)
Deprecated.
Processes changes on aliases, updating the planned state of the item.
|
protected void |
TermStatementUpdate.processDescriptions(List<MonolingualTextValue> descriptions)
Deprecated.
Adds descriptions to the item.
|
protected void |
TermStatementUpdate.processLabels(List<MonolingualTextValue> labels)
Deprecated.
Adds labels to the item
|
ItemDocument |
WikibaseDataEditor.updateTermsStatements(ItemIdValue itemIdValue,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the item document identified by the
given item id. The updates are computed with respect to the current data
found online, making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
ItemDocument |
WikibaseDataEditor.updateTermsStatements(ItemIdValue itemIdValue,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the item document identified by the
given item id. The updates are computed with respect to the current data
found online, making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
ItemDocument |
WikibaseDataEditor.updateTermsStatements(ItemIdValue itemIdValue,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the item document identified by the
given item id. The updates are computed with respect to the current data
found online, making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
ItemDocument |
WikibaseDataEditor.updateTermsStatements(ItemIdValue itemIdValue,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the item document identified by the
given item id. The updates are computed with respect to the current data
found online, making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
<T extends TermedStatementDocument> |
WikibaseDataEditor.updateTermsStatements(T currentDocument,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the current document.
The updates are computed with respect to the current data in the document,
making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
<T extends TermedStatementDocument> |
WikibaseDataEditor.updateTermsStatements(T currentDocument,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the current document.
The updates are computed with respect to the current data in the document,
making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
<T extends TermedStatementDocument> |
WikibaseDataEditor.updateTermsStatements(T currentDocument,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the current document.
The updates are computed with respect to the current data in the document,
making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
<T extends TermedStatementDocument> |
WikibaseDataEditor.updateTermsStatements(T currentDocument,
List<MonolingualTextValue> addLabels,
List<MonolingualTextValue> addDescriptions,
List<MonolingualTextValue> addAliases,
List<MonolingualTextValue> deleteAliases,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the terms and statements of the current document.
The updates are computed with respect to the current data in the document,
making sure that no redundant deletions or duplicate insertions
happen. The references of duplicate statements will be merged. The labels
and aliases in a given language are kept distinct. |
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage