Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.Statement
Packages that use Statement
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.
Package for examples of bots that edit Wikidata.
Serializer for RDF
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
-
Uses of Statement in org.wikidata.wdtk.datamodel.helpers
Methods in org.wikidata.wdtk.datamodel.helpers that return StatementModifier and TypeMethodDescriptionStatementBuilder.build()
Copies aStatement
.static Statement
Datamodel.makeStatement
(Claim claim, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.static Statement
Datamodel.makeStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.Methods in org.wikidata.wdtk.datamodel.helpers with parameters of type StatementModifier and TypeMethodDescriptionAdds statement to the entity.Copies aStatement
.static boolean
Equality.equalsStatement
(Statement o1, Object o2) Returnstrue
if the parameters are twoStatement
objects with exactly the same data.static String
JsonSerializer.getJsonString
(Statement statement) Serializes the given object in JSON and returns the resulting string.static int
Returns a hash code for the given object.Replaces existing statement in the entity.static String
Returns a human-readable string representation of the given object.EntityDocumentBuilder.withStatement
(Statement statement) Adds an additional statement to the constructed document.Method parameters in org.wikidata.wdtk.datamodel.helpers with type arguments of type StatementModifier and TypeMethodDescriptionstatic StatementUpdateBuilder
StatementUpdateBuilder.forStatements
(Collection<Statement> statements) Creates new builder object for constructing update of given base revision statements.static StatementUpdateBuilder
StatementUpdateBuilder.forStatements
(EntityIdValue subject, Collection<Statement> statements) Creates new builder object for constructing update of given base revision statements with given subject.static StatementGroup
Datamodel.makeStatementGroup
(List<Statement> statements) Creates aStatementGroup
.static StatementUpdate
Datamodel.makeStatementUpdate
(Collection<Statement> added, Collection<Statement> replaced, Collection<String> removed) Creates newStatementUpdate
. -
Uses of Statement in org.wikidata.wdtk.datamodel.implementation
Classes in org.wikidata.wdtk.datamodel.implementation that implement StatementFields in org.wikidata.wdtk.datamodel.implementation with type parameters of type StatementModifier and TypeFieldDescriptionStatementDocumentImpl.claims
This is what is called claim in the JSON model.StatementDocumentImpl.claims
This is what is called claim in the JSON model.StatementDocumentImpl.claims
This is what is called claim in the JSON model.StatementDocumentImpl.claims
This is what is called claim in the JSON model.StatementDocumentImpl.claims
This is what is called claim in the JSON model.StatementDocumentImpl.claims
This is what is called claim in the JSON model.StatementDocumentImpl.claims
This is what is called claim in the JSON model.Methods in org.wikidata.wdtk.datamodel.implementation that return StatementModifier and TypeMethodDescriptionStatementGroupImpl.get
(int i) DataObjectFactoryImpl.getStatement
(Claim claim, List<Reference> references, StatementRank rank, String statementId) DataObjectFactoryImpl.getStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) StatementImpl.withStatementId
(String id) Methods in org.wikidata.wdtk.datamodel.implementation that return types with arguments of type StatementModifier and TypeMethodDescriptionStatementUpdateImpl.getAdded()
StatementUpdateImpl.getReplaced()
StatementGroupImpl.getStatements()
StatementGroupImpl.iterator()
Methods in org.wikidata.wdtk.datamodel.implementation with parameters of type StatementModifier and TypeMethodDescriptionFormDocumentImpl.withStatement
(Statement statement) ItemDocumentImpl.withStatement
(Statement statement) LexemeDocumentImpl.withStatement
(Statement statement) MediaInfoDocumentImpl.withStatement
(Statement statement) PropertyDocumentImpl.withStatement
(Statement statement) SenseDocumentImpl.withStatement
(Statement statement) StatementGroupImpl.withStatement
(Statement statement) Method parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type StatementModifier and TypeMethodDescriptionDataObjectFactoryImpl.getStatementGroup
(List<Statement> statements) DataObjectFactoryImpl.getStatementUpdate
(Collection<Statement> added, Collection<Statement> replaced, Collection<String> removed) Constructor parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type StatementModifierConstructorDescriptionStatementGroupImpl
(List<Statement> statements) Constructor.StatementUpdateImpl
(Collection<Statement> added, Collection<Statement> replaced, Collection<String> removed) Initializes new statement update. -
Uses of Statement in org.wikidata.wdtk.datamodel.interfaces
Methods in org.wikidata.wdtk.datamodel.interfaces that return StatementModifier and TypeMethodDescriptiondefault Statement
StatementDocument.findStatement
(String propertyId) Returns the uniqueStatement
for the given property, or null if there are zero or many statements for this property.default Statement
StatementDocument.findStatement
(PropertyIdValue propertyIdValue) Returns the uniqueStatement
for the given property, or null if there are zero or many statements for this property.DataObjectFactory.getStatement
(Claim claim, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.DataObjectFactory.getStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.Statement.withStatementId
(String id) Returns the same statement, but with a different identifier.Methods in org.wikidata.wdtk.datamodel.interfaces that return types with arguments of type StatementModifier and TypeMethodDescriptionStatementUpdate.getAdded()
Returns statements added to the entity in this update.StatementDocument.getAllStatements()
Returns an iterator that provides access to all statements, without considering the statement groups.StatementUpdate.getReplaced()
Returns entity statements modified in this update.StatementGroup.getStatements()
Get the list of Statements of this group.Methods in org.wikidata.wdtk.datamodel.interfaces with parameters of type StatementModifier and TypeMethodDescriptionFormDocument.withStatement
(Statement statement) Returns a new version of this document which includes the statement provided.ItemDocument.withStatement
(Statement statement) LabeledStatementDocument.withStatement
(Statement statement) LexemeDocument.withStatement
(Statement statement) Returns a new version of this document which includes the statement provided.MediaInfoDocument.withStatement
(Statement statement) PropertyDocument.withStatement
(Statement statement) SenseDocument.withStatement
(Statement statement) Returns a new version of this document which includes the statement provided.StatementDocument.withStatement
(Statement statement) Returns a new version of this document which includes the statement provided.StatementGroup.withStatement
(Statement statement) Returns a new version of this group, where the given statement has been added.TermedStatementDocument.withStatement
(Statement statement) Method parameters in org.wikidata.wdtk.datamodel.interfaces with type arguments of type StatementModifier and TypeMethodDescriptionDataObjectFactory.getStatementGroup
(List<Statement> statements) Creates aStatementGroup
.DataObjectFactory.getStatementUpdate
(Collection<Statement> added, Collection<Statement> replaced, Collection<String> removed) Creates newStatementUpdate
. -
Uses of Statement in org.wikidata.wdtk.examples.bots
Method parameters in org.wikidata.wdtk.examples.bots with type arguments of type StatementModifier and TypeMethodDescriptionprotected void
FixIntegerQuantityPrecisionsBot.logEntityModification
(EntityIdValue entityId, List<Statement> updateStatements, String propertyId) Logs information about entities changed so far. -
Uses of Statement in org.wikidata.wdtk.rdf
Methods in org.wikidata.wdtk.rdf with parameters of type StatementModifier and TypeMethodDescriptionstatic String
Vocabulary.getStatementUri
(Statement statement) Get the URI for the given statement.void
AbstractRdfConverter.writeFullStatement
(Statement statement, boolean best) void
RdfConverter.writeFullStatement
(Statement statement, boolean best) void
AbstractRdfConverter.writeSimpleStatement
(Statement statement) void
RdfConverter.writeSimpleStatement
(Statement statement) void
AbstractRdfConverter.writeStatement
(Statement statement, boolean best) -
Uses of Statement in org.wikidata.wdtk.wikibaseapi
Methods in org.wikidata.wdtk.wikibaseapi that return types with arguments of type StatementMethods in org.wikidata.wdtk.wikibaseapi with parameters of type StatementModifier and TypeMethodDescriptionprotected void
StatementUpdate.addStatement
(Statement statement, boolean isNew) Deprecated.Adds one statement to the list of statements to be kept, possibly merging it with other statements to be kept if possible.Method parameters in org.wikidata.wdtk.wikibaseapi with type arguments of type StatementModifier and TypeMethodDescriptionprotected void
StatementUpdate.markStatementsForDeletion
(StatementDocument currentDocument, List<Statement> deleteStatements) Deprecated.Marks the given list of statements for deletion.protected void
StatementUpdate.markStatementsForInsertion
(StatementDocument currentDocument, List<Statement> addStatements) Deprecated.Marks a given list of statements for insertion into the current document.protected void
StatementUpdate.markStatementsForUpdate
(StatementDocument currentDocument, List<Statement> addStatements, List<Statement> deleteStatements) Deprecated.Marks the given lists of statements for being added to or deleted from the given document, respectively.WikibaseDataEditor.updateStatements
(ItemIdValue itemIdValue, List<Statement> addStatements, List<Statement> deleteStatements, String summary, List<String> tags) Deprecated.WikibaseDataEditor.updateStatements
(PropertyIdValue propertyIdValue, List<Statement> addStatements, List<Statement> deleteStatements, String summary, List<String> tags) Deprecated.<T extends StatementDocument>
TWikibaseDataEditor.updateStatements
(T currentDocument, List<Statement> addStatements, List<Statement> deleteStatements, String summary, List<String> tags) Deprecated.Constructor parameters in org.wikidata.wdtk.wikibaseapi with type arguments of type StatementModifierConstructorDescriptionStatementUpdate
(StatementDocument currentDocument, List<Statement> addStatements, List<Statement> deleteStatements) Deprecated.Constructor.TermStatementUpdate
(TermedStatementDocument currentDocument, List<Statement> addStatements, List<Statement> deleteStatements, List<MonolingualTextValue> addLabels, List<MonolingualTextValue> addDescriptions, List<MonolingualTextValue> addAliases, List<MonolingualTextValue> deleteAliases) Deprecated.Constructor.
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List)
instead.