Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue
Package
Description
Package for mostly static helper code to work with data objects.
Basic implementation for objects representing Wikibase data and related factories.
Interfaces for representing Wikibase data and related factories.
Serializer for RDF
Package for code related to the conversion of data values to RDF in various ways.
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
-
Uses of MonolingualTextValue in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionDatamodelConverter.copy
(MonolingualTextValue object) Copies aMonolingualTextValue
static MonolingualTextValue
Datamodel.makeMonolingualTextValue
(String text, String languageCode) Creates aMonolingualTextValue
.Modifier and TypeMethodDescriptionAliasUpdateBuilder.add
(MonolingualTextValue alias) Adds new alias.DatamodelConverter.copy
(MonolingualTextValue object) Copies aMonolingualTextValue
static boolean
Equality.equalsMonolingualTextValue
(MonolingualTextValue o1, Object o2) Returnstrue
if the parameters are twoMonolingualTextValue
objects with exactly the same data.static int
Hash.hashCode
(MonolingualTextValue o) Returns a hash code for the given object.TermUpdateBuilder.put
(MonolingualTextValue term) Adds or changes term.AliasUpdateBuilder.remove
(MonolingualTextValue alias) Removed existing alias.static String
ToString.toString
(MonolingualTextValue o) Returns a human-readable string representation of the given object.DatamodelConverter.visit
(MonolingualTextValue value) EntityDocumentBuilder.withAlias
(MonolingualTextValue mtv) Adds an additional alias to the constructed document.EntityDocumentBuilder.withDescription
(MonolingualTextValue mtv) Adds an additional description to the constructed document.EntityDocumentBuilder.withLabel
(MonolingualTextValue mtv) Adds an additional label to the constructed document.Modifier and TypeMethodDescriptionstatic AliasUpdateBuilder
AliasUpdateBuilder.forAliases
(List<MonolingualTextValue> aliases) Creates new builder object for constructing update of given base revision aliases.static TermUpdateBuilder
TermUpdateBuilder.forTerms
(Collection<MonolingualTextValue> terms) Creates new builder object for constructing update of given base revision terms.static AliasUpdate
Datamodel.makeAliasUpdate
(List<MonolingualTextValue> recreated) Creates newAliasUpdate
that completely replaces all aliases.static AliasUpdate
Datamodel.makeAliasUpdate
(List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Creates newAliasUpdate
that adds and/or removes some of the aliases.static AliasUpdate
Datamodel.makeAliasUpdate
(List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Creates newAliasUpdate
that adds and/or removes some of the aliases.static AliasUpdate
Datamodel.makeAliasUpdate
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Creates newAliasUpdate
.static AliasUpdate
Datamodel.makeAliasUpdate
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Creates newAliasUpdate
.static FormDocument
Datamodel.makeFormDocument
(FormIdValue formIdValue, List<MonolingualTextValue> representations, List<ItemIdValue> grammaticalFeatures, List<StatementGroup> statementGroups) Creates aFormDocument
.static ItemDocument
Datamodel.makeItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks) Creates anItemDocument
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 anItemDocument
.static LexemeDocument
Datamodel.makeLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas) Creates an emptyLexemeDocument
.static LexemeDocument
Datamodel.makeLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses) Creates aLexemeDocument
.static MediaInfoDocument
Datamodel.makeMediaInfoDocument
(MediaInfoIdValue mediaInfoIdValue, List<MonolingualTextValue> labels, List<StatementGroup> statementGroups) Creates aMediaInfoDocument
.static PropertyDocument
Datamodel.makePropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId) Creates aPropertyDocument
with empty revision id.static PropertyDocument
Datamodel.makePropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId, long revisionId) Creates aPropertyDocument
.static SenseDocument
Datamodel.makeSenseDocument
(SenseIdValue senseIdValue, List<MonolingualTextValue> glosses, List<StatementGroup> statementGroups) Creates aSenseDocument
.static TermUpdate
Datamodel.makeTermUpdate
(Collection<MonolingualTextValue> modified, Collection<String> removed) Creates newTermUpdate
.AliasUpdateBuilder.recreate
(List<MonolingualTextValue> aliases) Replaces current alias list with completely new alias list. -
Uses of MonolingualTextValue in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeClassDescriptionclass
Jackson implementation ofMonolingualTextValue
.class
Jackson representation ofMonolingualTextValue
data used in labels, aliases, and descriptions in JSON.Modifier and TypeFieldDescriptionprotected final Map<String,
List<MonolingualTextValue>> TermedStatementDocumentImpl.aliases
protected final Map<String,
MonolingualTextValue> TermedStatementDocumentImpl.descriptions
protected final Map<String,
MonolingualTextValue> LabeledStatementDocumentImpl.labels
protected final Map<String,
MonolingualTextValue> LabeledStatementDocumentImpl.labels
protected final Map<String,
MonolingualTextValue> LabeledStatementDocumentImpl.labels
protected final Map<String,
MonolingualTextValue> LabeledStatementDocumentImpl.labels
Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getMonolingualTextValue
(String text, String languageCode) Modifier and TypeMethodDescriptionAliasUpdateImpl.getAdded()
TermedStatementDocumentImpl.getAliases()
TermedStatementDocumentImpl.getDescriptions()
SenseDocumentImpl.getGlosses()
LexemeDocumentImpl.getLemmas()
TermUpdateImpl.getModified()
AliasUpdateImpl.getRecreated()
AliasUpdateImpl.getRemoved()
FormDocumentImpl.getRepresentations()
protected static Map<String,
List<MonolingualTextValue>> TermedStatementDocumentImpl.withAliases
(Map<String, List<MonolingualTextValue>> values, String language, List<MonolingualTextValue> aliases) Modifier and TypeMethodDescriptionItemDocumentImpl.withDescription
(MonolingualTextValue newDescription) PropertyDocumentImpl.withDescription
(MonolingualTextValue newDescription) SenseDocumentImpl.withGloss
(MonolingualTextValue gloss) ItemDocumentImpl.withLabel
(MonolingualTextValue newLabel) MediaInfoDocumentImpl.withLabel
(MonolingualTextValue newLabel) PropertyDocumentImpl.withLabel
(MonolingualTextValue newLabel) LexemeDocumentImpl.withLemma
(MonolingualTextValue lemma) FormDocumentImpl.withRepresentation
(MonolingualTextValue representation) Modifier and TypeMethodDescriptionLexemeDocumentImpl.createForm
(List<MonolingualTextValue> representations) LexemeDocumentImpl.createSense
(List<MonolingualTextValue> glosses) DataObjectFactoryImpl.getAliasUpdate
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) DataObjectFactoryImpl.getAliasUpdate
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) DataObjectFactoryImpl.getFormDocument
(FormIdValue formIdValue, List<MonolingualTextValue> representations, List<ItemIdValue> grammaticalFeatures, List<StatementGroup> statementGroups, long revisionId) DataObjectFactoryImpl.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) DataObjectFactoryImpl.getLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses, long revisionId) DataObjectFactoryImpl.getMediaInfoDocument
(MediaInfoIdValue mediaInfoIdValue, List<MonolingualTextValue> labels, List<StatementGroup> statementGroups, long revisionId) DataObjectFactoryImpl.getPropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId, long revisionId) DataObjectFactoryImpl.getSenseDocument
(SenseIdValue senseIdValue, List<MonolingualTextValue> glosses, List<StatementGroup> statementGroups, long revisionId) DataObjectFactoryImpl.getTermUpdate
(Collection<MonolingualTextValue> modified, Collection<String> removed) ItemDocumentImpl.withAliases
(String language, List<MonolingualTextValue> aliases) PropertyDocumentImpl.withAliases
(String language, List<MonolingualTextValue> aliases) protected static Map<String,
List<MonolingualTextValue>> TermedStatementDocumentImpl.withAliases
(Map<String, List<MonolingualTextValue>> values, String language, List<MonolingualTextValue> aliases) protected static Map<String,
List<MonolingualTextValue>> TermedStatementDocumentImpl.withAliases
(Map<String, List<MonolingualTextValue>> values, String language, List<MonolingualTextValue> aliases) ModifierConstructorDescriptionAliasUpdateImpl
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Initializes new alias update.AliasUpdateImpl
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Initializes new alias update.ItemDocumentImpl
(String jsonId, Map<String, MonolingualTextValue> labels, Map<String, MonolingualTextValue> descriptions, Map<String, List<MonolingualTextValue>> aliases, Map<String, List<StatementImpl.PreStatement>> claims, Map<String, SiteLink> sitelinks, long revisionId, String siteIri) Constructor.ItemDocumentImpl
(ItemIdValue id, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statements, List<SiteLink> siteLinks, long revisionId) Constructor.protected
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.LexemeDocumentImpl
(String jsonId, String lexicalCategory, String language, Map<String, MonolingualTextValue> lemmas, Map<String, List<StatementImpl.PreStatement>> claims, List<FormDocument> forms, List<SenseDocument> senses, long revisionId, String siteIri) Constructor.MediaInfoDocumentImpl
(String jsonId, Map<String, MonolingualTextValue> labels, Map<String, List<StatementImpl.PreStatement>> claims, Map<String, List<StatementImpl.PreStatement>> statements, long revisionId, String siteIri) Constructor.MediaInfoDocumentImpl
(MediaInfoIdValue id, List<MonolingualTextValue> labels, List<StatementGroup> statements, long revisionId) Constructor.protected
MediaInfoDocumentImpl
(MediaInfoIdValue subject, Map<String, MonolingualTextValue> labels, Map<String, List<Statement>> claims, long revisionId) Protected constructor, meant to be used to create modified copies of instances.PropertyDocumentImpl
(String jsonId, Map<String, MonolingualTextValue> labels, Map<String, MonolingualTextValue> descriptions, Map<String, List<MonolingualTextValue>> aliases, Map<String, List<StatementImpl.PreStatement>> claims, String datatype, long revisionId, String siteIri) Constructor.PropertyDocumentImpl
(PropertyIdValue id, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statements, DatatypeIdValue datatype, long revisionId) Constructor for instances that are built manually, rather than from JSON.TermedStatementDocumentImpl
(EntityIdValue id, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> claims, long revisionId) Constructor.protected
TermedStatementDocumentImpl
(EntityIdValue subject, Map<String, MonolingualTextValue> labels, Map<String, MonolingualTextValue> descriptions, Map<String, List<MonolingualTextValue>> aliases, Map<String, List<Statement>> claims, long revisionId) Protected constructor provided to ease the creation of copies.TermUpdateImpl
(Collection<MonolingualTextValue> modified, Collection<String> removed) Initializes new term update. -
Uses of MonolingualTextValue in org.wikidata.wdtk.datamodel.interfaces
Modifier and TypeMethodDescriptiondefault MonolingualTextValue
StatementDocument.findStatementMonolingualTextValue
(String propertyId) Returns the uniqueMonolingualTextValue
for the given property, or null if there are zero or many such values given in statements for this property.default MonolingualTextValue
StatementDocument.findStatementMonolingualTextValue
(PropertyIdValue propertyIdValue) Returns the uniqueMonolingualTextValue
for the given property, or null if there are zero or many such values given in statements for this property.DataObjectFactory.getMonolingualTextValue
(String text, String languageCode) Creates aMonolingualTextValue
.Modifier and TypeMethodDescriptionAliasUpdate.getAdded()
Returns aliases added in this update.TermedDocument.getAliases()
Return a Map from Wikibase language codes to lists of alias labels for a given language.TermedDocument.getDescriptions()
Return a Map from Wikibase language codes to descriptions.SenseDocument.getGlosses()
Return the human readable description of the sense indexed by Wikimedia language codeLabeledDocument.getLabels()
Return a Map from Wikibase language codes to labels.LexemeDocument.getLemmas()
Return the human readable representations of the lexeme indexed by Wikimedia language codeTermUpdate.getModified()
Returns terms added or modified in this update.AliasUpdate.getRecreated()
Returns the new list of aliases that completely replaces current aliases.AliasUpdate.getRemoved()
Returns aliases removed in this update.FormDocument.getRepresentations()
Return the human readable representations of the form indexed by Wikimedia language codeModifier and TypeMethodDescriptionValueVisitor.visit
(MonolingualTextValue value) Visits a MonolingualTextValue and returns a result.ItemDocument.withDescription
(MonolingualTextValue newDescription) PropertyDocument.withDescription
(MonolingualTextValue newDescription) TermedDocument.withDescription
(MonolingualTextValue newDescription) Returns a new version of this document with a new description (which overrides any existing description).TermedStatementDocument.withDescription
(MonolingualTextValue newDescription) SenseDocument.withGloss
(MonolingualTextValue gloss) ItemDocument.withLabel
(MonolingualTextValue newLabel) LabeledDocument.withLabel
(MonolingualTextValue newLabel) Returns a new version of this document with a new label (which overrides any existing label for this language).LabeledStatementDocument.withLabel
(MonolingualTextValue newLabel) MediaInfoDocument.withLabel
(MonolingualTextValue newLabel) PropertyDocument.withLabel
(MonolingualTextValue newLabel) TermedDocument.withLabel
(MonolingualTextValue newLabel) Returns a new version of this document with a new label (which overrides any existing label for this language).TermedStatementDocument.withLabel
(MonolingualTextValue newLabel) LexemeDocument.withLemma
(MonolingualTextValue lemma) FormDocument.withRepresentation
(MonolingualTextValue representation) Modifier and TypeMethodDescriptionLexemeDocument.createForm
(List<MonolingualTextValue> representations) Creates a newFormDocument
for this lexeme.LexemeDocument.createSense
(List<MonolingualTextValue> glosses) Creates a newSenseDocument
for this Lexeme.DataObjectFactory.getAliasUpdate
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Creates newAliasUpdate
.DataObjectFactory.getAliasUpdate
(List<MonolingualTextValue> recreated, List<MonolingualTextValue> added, Collection<MonolingualTextValue> removed) Creates newAliasUpdate
.DataObjectFactory.getFormDocument
(FormIdValue formIdValue, List<MonolingualTextValue> representations, List<ItemIdValue> grammaticalFeatures, List<StatementGroup> statementGroups, long revisionId) Creates anFormDocument
.DataObjectFactory.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) Creates anItemDocument
.DataObjectFactory.getLexemeDocument
(LexemeIdValue lexemeIdValue, ItemIdValue lexicalCategory, ItemIdValue language, List<MonolingualTextValue> lemmas, List<StatementGroup> statementGroups, List<FormDocument> forms, List<SenseDocument> senses, long revisionId) Creates anLexemeDocument
.DataObjectFactory.getMediaInfoDocument
(MediaInfoIdValue mediaInfoIdValue, List<MonolingualTextValue> labels, List<StatementGroup> statementGroups, long revisionId) Creates aMediaInfoDocument
.DataObjectFactory.getPropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId, long revisionId) Creates aPropertyDocument
.DataObjectFactory.getSenseDocument
(SenseIdValue senseIdValue, List<MonolingualTextValue> glosses, List<StatementGroup> statementGroups, long revisionId) Creates aSenseDocument
.DataObjectFactory.getTermUpdate
(Collection<MonolingualTextValue> modified, Collection<String> removed) Creates newTermUpdate
.ItemDocument.withAliases
(String language, List<MonolingualTextValue> aliases) PropertyDocument.withAliases
(String language, List<MonolingualTextValue> aliases) TermedDocument.withAliases
(String language, List<MonolingualTextValue> aliases) Returns a new version of this document with a new list of aliases for the given language code.TermedStatementDocument.withAliases
(String language, List<MonolingualTextValue> aliases) -
Uses of MonolingualTextValue in org.wikidata.wdtk.rdf
Modifier and TypeMethodDescriptionstatic org.eclipse.rdf4j.model.Value
AbstractRdfConverter.getMonolingualTextValueLiteral
(MonolingualTextValue value, RdfWriter rdfWriter) PropertyRegister.setPropertyTypeFromMonolingualTextValue
(PropertyIdValue propertyIdValue, MonolingualTextValue value) Returns the IRI of the primitive Type of an Property forMonolingualTextValue
objects.Modifier and TypeMethodDescriptionvoid
AbstractRdfConverter.writeTermTriples
(org.eclipse.rdf4j.model.Resource subject, AbstractRdfConverter.TermKind kind, Collection<MonolingualTextValue> terms) void
RdfConverter.writeTermTriples
(org.eclipse.rdf4j.model.Resource subject, AbstractRdfConverter.TermKind kind, Collection<MonolingualTextValue> terms) -
Uses of MonolingualTextValue in org.wikidata.wdtk.rdf.values
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.Value
MonolingualTextValueConverter.getRdfValue
(MonolingualTextValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
AnyValueConverter.visit
(MonolingualTextValue value) -
Uses of MonolingualTextValue in org.wikidata.wdtk.wikibaseapi
Modifier and TypeMethodDescriptionTermStatementUpdate.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).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 TypeMethodDescriptionprotected void
TermStatementUpdate.addAlias
(MonolingualTextValue alias) Deprecated.Adds an individual alias.protected void
TermStatementUpdate.deleteAlias
(MonolingualTextValue alias) Deprecated.Deletes an individual aliasprotected TermImpl
TermStatementUpdate.monolingualToJackson
(MonolingualTextValue monolingualTextValue) Deprecated.Creates a monolingual value that is suitable for JSON serialization.Modifier and TypeMethodDescriptionTermStatementUpdate.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.processDescriptions
(List<MonolingualTextValue> descriptions) Deprecated.Adds descriptions to the item.protected void
TermStatementUpdate.processLabels
(List<MonolingualTextValue> labels) Deprecated.Adds labels to the itemWikibaseDataEditor.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.<T extends TermedStatementDocument>
TWikibaseDataEditor.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.
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List)
instead.