Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.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
Modifier 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
.Modifier 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.Modifier 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
Modifier 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.Modifier 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) Modifier and TypeMethodDescriptionStatementUpdateImpl.getAdded()
StatementUpdateImpl.getReplaced()
StatementGroupImpl.getStatements()
StatementGroupImpl.iterator()
Modifier 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) Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getStatementGroup
(List<Statement> statements) DataObjectFactoryImpl.getStatementUpdate
(Collection<Statement> added, Collection<Statement> replaced, Collection<String> removed) ModifierConstructorDescriptionStatementGroupImpl
(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
Modifier 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.Modifier 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.Modifier 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) Modifier 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
Modifier 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
Modifier 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
Modifier 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.Modifier 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.ModifierConstructorDescriptionStatementUpdate
(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.