| 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 |
|---|---|
Statement |
StatementBuilder.build() |
Statement |
DatamodelConverter.copy(Statement object)
Copies a
Statement. |
static Statement |
Datamodel.makeStatement(Claim claim,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
static Statement |
Datamodel.makeStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
| Modifier and Type | Method and Description |
|---|---|
StatementUpdateBuilder |
StatementUpdateBuilder.add(Statement statement)
Adds statement to the entity.
|
Statement |
DatamodelConverter.copy(Statement object)
Copies a
Statement. |
static boolean |
Equality.equalsStatement(Statement o1,
Object o2)
Returns
true if the parameters are two Statement 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 |
Hash.hashCode(Statement o)
Returns a hash code for the given object.
|
StatementUpdateBuilder |
StatementUpdateBuilder.replace(Statement statement)
Replaces existing statement in the entity.
|
static String |
ToString.toString(Statement o)
Returns a human-readable string representation of the given object.
|
T |
EntityDocumentBuilder.withStatement(Statement statement)
Adds an additional statement to the constructed document.
|
| Modifier and Type | Method and Description |
|---|---|
static 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 a
StatementGroup. |
static StatementUpdate |
Datamodel.makeStatementUpdate(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed)
Creates new
StatementUpdate. |
static StatementUpdate |
Datamodel.makeStatementUpdate(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed)
Creates new
StatementUpdate. |
| Modifier and Type | Class and Description |
|---|---|
class |
StatementImpl
Jackson implementation of
Statement. |
| Modifier and Type | Method and Description |
|---|---|
Statement |
StatementGroupImpl.get(int i) |
Statement |
DataObjectFactoryImpl.getStatement(Claim claim,
List<Reference> references,
StatementRank rank,
String statementId) |
Statement |
DataObjectFactoryImpl.getStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId) |
Statement |
StatementImpl.withStatementId(String id) |
| Modifier and Type | Method and Description |
|---|---|
List<Statement> |
StatementUpdateImpl.getAdded() |
Map<String,Statement> |
StatementUpdateImpl.getReplaced() |
List<Statement> |
StatementGroupImpl.getStatements() |
Iterator<Statement> |
StatementGroupImpl.iterator() |
| Modifier and Type | Method and Description |
|---|---|
StatementGroup |
StatementGroupImpl.withStatement(Statement statement) |
FormDocument |
FormDocumentImpl.withStatement(Statement statement) |
PropertyDocument |
PropertyDocumentImpl.withStatement(Statement statement) |
ItemDocument |
ItemDocumentImpl.withStatement(Statement statement) |
SenseDocument |
SenseDocumentImpl.withStatement(Statement statement) |
LexemeDocument |
LexemeDocumentImpl.withStatement(Statement statement) |
MediaInfoDocument |
MediaInfoDocumentImpl.withStatement(Statement statement) |
| Modifier and Type | Method and Description |
|---|---|
StatementGroup |
DataObjectFactoryImpl.getStatementGroup(List<Statement> statements) |
StatementUpdate |
DataObjectFactoryImpl.getStatementUpdate(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed) |
StatementUpdate |
DataObjectFactoryImpl.getStatementUpdate(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed) |
| Constructor and Description |
|---|
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.
|
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.
|
StatementGroupImpl(List<Statement> statements)
Constructor.
|
StatementUpdateImpl(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed)
Initializes new statement update.
|
StatementUpdateImpl(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed)
Initializes new statement update.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
default Statement |
StatementDocument.findStatement(PropertyIdValue propertyIdValue)
Returns the unique
Statement for the given property, or null if
there are zero or many statements for this property. |
default Statement |
StatementDocument.findStatement(String propertyId)
Returns the unique
Statement for the given property, or null if
there are zero or many statements for this property. |
Statement |
DataObjectFactory.getStatement(Claim claim,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
Statement |
DataObjectFactory.getStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
Statement |
Statement.withStatementId(String id)
Returns the same statement, but with a different identifier.
|
| Modifier and Type | Method and Description |
|---|---|
List<Statement> |
StatementUpdate.getAdded()
Returns statements added to the entity in this update.
|
default Iterator<Statement> |
StatementDocument.getAllStatements()
Returns an iterator that provides access to all statements, without
considering the statement groups.
|
Map<String,Statement> |
StatementUpdate.getReplaced()
Returns entity statements modified in this update.
|
List<Statement> |
StatementGroup.getStatements()
Get the list of Statements of this group.
|
| Modifier and Type | Method and Description |
|---|---|
LexemeDocument |
LexemeDocument.withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
LabeledStatementDocument |
LabeledStatementDocument.withStatement(Statement statement) |
ItemDocument |
ItemDocument.withStatement(Statement statement) |
MediaInfoDocument |
MediaInfoDocument.withStatement(Statement statement) |
TermedStatementDocument |
TermedStatementDocument.withStatement(Statement statement) |
StatementGroup |
StatementGroup.withStatement(Statement statement)
Returns a new version of this group, where the given
statement has been added.
|
SenseDocument |
SenseDocument.withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
StatementDocument |
StatementDocument.withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
PropertyDocument |
PropertyDocument.withStatement(Statement statement) |
FormDocument |
FormDocument.withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
| Modifier and Type | Method and Description |
|---|---|
StatementGroup |
DataObjectFactory.getStatementGroup(List<Statement> statements)
Creates a
StatementGroup. |
StatementUpdate |
DataObjectFactory.getStatementUpdate(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed)
Creates new
StatementUpdate. |
StatementUpdate |
DataObjectFactory.getStatementUpdate(Collection<Statement> added,
Collection<Statement> replaced,
Collection<String> removed)
Creates new
StatementUpdate. |
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