| 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 |
|---|---|
static StatementUpdateBuilder |
StatementUpdateBuilder.create(EntityIdValue subject)
Creates new builder object for constructing statement update of given
subject.
|
static boolean |
Equality.equalsEntityIdValue(EntityIdValue o1,
Object o2)
Returns
true if the parameters are two EntityIdValue objects with
exactly the same data. |
static TermedDocumentUpdateBuilder |
TermedDocumentUpdateBuilder.forBaseRevisionId(EntityIdValue entityId,
long revisionId)
Creates new builder object for constructing update of entity with given
revision ID.
|
static LabeledDocumentUpdateBuilder |
LabeledDocumentUpdateBuilder.forBaseRevisionId(EntityIdValue entityId,
long revisionId)
Creates new builder object for constructing update of entity with given
revision ID.
|
static EntityUpdateBuilder |
EntityUpdateBuilder.forBaseRevisionId(EntityIdValue entityId,
long revisionId)
Creates new builder object for constructing update of entity with given
revision ID.
|
static StatementDocumentUpdateBuilder |
StatementDocumentUpdateBuilder.forBaseRevisionId(EntityIdValue entityId,
long revisionId)
Creates new builder object for constructing update of entity with given
revision ID.
|
static TermedDocumentUpdateBuilder |
TermedDocumentUpdateBuilder.forEntityId(EntityIdValue entityId)
Creates new builder object for constructing update of entity with given ID.
|
static LabeledDocumentUpdateBuilder |
LabeledDocumentUpdateBuilder.forEntityId(EntityIdValue entityId)
Creates new builder object for constructing update of entity with given ID.
|
static EntityUpdateBuilder |
EntityUpdateBuilder.forEntityId(EntityIdValue entityId)
Creates new builder object for constructing update of entity with given ID.
|
static StatementDocumentUpdateBuilder |
StatementDocumentUpdateBuilder.forEntityId(EntityIdValue entityId)
Creates new builder object for constructing update of entity with given ID.
|
static StatementUpdateBuilder |
StatementUpdateBuilder.forStatementGroups(EntityIdValue subject,
Collection<StatementGroup> groups)
Creates new builder object for constructing update of given base revision
statement groups with given subject.
|
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 StatementBuilder |
StatementBuilder.forSubjectAndProperty(EntityIdValue subject,
PropertyIdValue property)
Starts the construction of a
Statement with the given subject. |
static int |
Hash.hashCode(EntityIdValue o)
Returns a hash code for the given object.
|
static Claim |
Datamodel.makeClaim(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Creates a
Claim. |
static Statement |
Datamodel.makeStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
Value |
DatamodelConverter.visit(EntityIdValue value) |
PropertyDocumentBuilder |
PropertyDocumentBuilder.withEntityId(EntityIdValue entityId)
Changes the entity value id for the constructed document.
|
T |
EntityDocumentBuilder.withEntityId(EntityIdValue entityId)
Changes the entity value id for the constructed document.
|
ItemDocumentBuilder |
ItemDocumentBuilder.withEntityId(EntityIdValue entityId)
Changes the entity value id for the constructed document.
|
| Constructor and Description |
|---|
EntityDocumentBuilder(EntityIdValue entityIdValue) |
EntityUpdateBuilder(EntityIdValue entityId,
long revisionId)
Initializes new builder object for constructing update of entity with given
ID.
|
LabeledDocumentUpdateBuilder(EntityIdValue entityId,
long revisionId)
Initializes new builder object for constructing update of entity with given
ID.
|
StatementBuilder(EntityIdValue subject,
PropertyIdValue property)
Constructor.
|
StatementDocumentUpdateBuilder(EntityIdValue entityId,
long revisionId)
Initializes new builder object for constructing update of entity with given
ID.
|
TermedDocumentUpdateBuilder(EntityIdValue entityId,
long revisionId)
Initializes new builder object for constructing update of entity with given
ID.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EntityIdValueImpl
Abstract base implementation of
EntityIdValue for Jackson. |
class |
FormIdValueImpl
Jackson implementation of
FormIdValue. |
class |
ItemIdValueImpl
Jackson implementation of
ItemIdValue. |
class |
LexemeIdValueImpl
Jackson implementation of
LexemeIdValue. |
class |
MediaInfoIdValueImpl
Jackson implementation of
MediaInfoIdValue. |
class |
PropertyIdValueImpl
Jackson implementation of
PropertyIdValue. |
class |
SenseIdValueImpl
Jackson implementation of
SenseIdValue. |
class |
UnsupportedEntityIdValueImpl
Represents a entity id value of an unsupported type.
|
| Modifier and Type | Method and Description |
|---|---|
static EntityIdValue |
EntityIdValueImpl.fromId(String id,
String siteIri)
Parses an item id
|
EntityIdValue |
EntityUpdateImpl.getEntityId() |
EntityIdValue |
EntityRedirectDocumentImpl.getEntityId() |
EntityIdValue |
StatementGroupImpl.getSubject() |
EntityIdValue |
ClaimImpl.getSubject() |
EntityIdValue |
StatementImpl.getSubject() |
EntityIdValue |
EntityRedirectDocumentImpl.getTargetId() |
| Modifier and Type | Method and Description |
|---|---|
Claim |
DataObjectFactoryImpl.getClaim(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers) |
Statement |
DataObjectFactoryImpl.getStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId) |
StatementImpl |
StatementImpl.PreStatement.withSubject(EntityIdValue subjectId) |
| Constructor and Description |
|---|
ClaimImpl(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Constructor to create a claim.
|
EntityUpdateImpl(EntityIdValue entityId,
long revisionId)
Initializes new entity update.
|
LabeledDocumentUpdateImpl(EntityIdValue entityId,
long revisionId,
TermUpdate labels,
StatementUpdate statements)
Initializes new entity update.
|
StatementDocumentUpdateImpl(EntityIdValue entityId,
long revisionId,
StatementUpdate statements)
Initializes new entity update.
|
StatementImpl(String statementId,
Snak mainsnak,
EntityIdValue subjectId)
TODO review the utility of this constructor.
|
StatementImpl(String statementId,
StatementRank rank,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
EntityIdValue subjectId)
Constructor.
|
StatementImpl(String statementId,
StatementRank rank,
Snak mainSnak,
Map<String,List<Snak>> qualifiers,
List<String> qualifiersOrder,
List<Reference> references,
EntityIdValue subjectId) |
TermedDocumentUpdateImpl(EntityIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements)
Initializes new entity update.
|
TermedStatementDocumentImpl(EntityIdValue id,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> claims,
long revisionId)
Constructor.
|
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 | Interface and Description |
|---|---|
interface |
FormIdValue
The id of a Wikibase Lexeme Form.
|
interface |
ItemIdValue
The id of a Wikibase Item.
|
interface |
LexemeIdValue
The id of a Wikibase Lexeme.
|
interface |
MediaInfoIdValue
The id of a Wikibase MediaInfo.
|
interface |
PropertyIdValue
The id of a Wikibase Property.
|
interface |
SenseIdValue
The id of a Wikibase Lexeme Sense.
|
interface |
UnsupportedEntityIdValue
Represents a entity id value of an unsupported type.
|
| Modifier and Type | Method and Description |
|---|---|
default EntityIdValue |
StatementDocument.findStatementEntityIdValue(PropertyIdValue propertyIdValue)
Returns the unique
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
default EntityIdValue |
StatementDocument.findStatementEntityIdValue(String propertyId)
Returns the unique
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
EntityIdValue |
EntityUpdate.getEntityId()
Returns ID of the entity that is being updated.
|
EntityIdValue |
EntityDocument.getEntityId()
Returns the ID of the entity that the data refers to
|
EntityIdValue |
Statement.getSubject()
The subject that the claim refers to, e.g., the id of "Berlin".
|
EntityIdValue |
StatementGroup.getSubject()
Get the subject used in the
Claim of each statement in this
group. |
EntityIdValue |
Claim.getSubject()
The subject that the claim refers to, e.g., the id of "Berlin".
|
EntityIdValue |
EntityRedirectDocument.getTargetId()
Returns the ID of the entity that the redirection target to.
|
| Modifier and Type | Method and Description |
|---|---|
Claim |
DataObjectFactory.getClaim(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Creates a
Claim. |
Statement |
DataObjectFactory.getStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
T |
ValueVisitor.visit(EntityIdValue value)
Visits a EntityIdValue and returns a result.
|
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