| 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 |
|---|---|
StatementGroup |
DatamodelConverter.copy(StatementGroup object)
Copies a
StatementGroup. |
static StatementGroup |
Datamodel.makeStatementGroup(List<Statement> statements)
Creates a
StatementGroup. |
| Modifier and Type | Method and Description |
|---|---|
protected List<StatementGroup> |
EntityDocumentBuilder.getStatementGroups()
Returns a list of
StatementGroup objects for the currently stored
statements. |
| Modifier and Type | Method and Description |
|---|---|
StatementGroup |
DatamodelConverter.copy(StatementGroup object)
Copies a
StatementGroup. |
static boolean |
Equality.equalsStatementGroup(StatementGroup o1,
Object o2)
Returns
true if the parameters are two StatementGroup objects
with exactly the same data. |
static int |
Hash.hashCode(StatementGroup o)
Returns a hash code for the given object.
|
static String |
ToString.toString(StatementGroup o)
Returns a human-readable string representation of the given object.
|
| Modifier and Type | Method and Description |
|---|---|
static StatementUpdateBuilder |
StatementUpdateBuilder.forStatementGroups(Collection<StatementGroup> groups)
Creates new builder object for constructing update of given base revision
statement groups.
|
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 FormDocument |
Datamodel.makeFormDocument(FormIdValue formIdValue,
List<MonolingualTextValue> representations,
List<ItemIdValue> grammaticalFeatures,
List<StatementGroup> statementGroups)
Creates a
FormDocument. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks)
Creates an
ItemDocument 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 an
ItemDocument. |
static LexemeDocument |
Datamodel.makeLexemeDocument(LexemeIdValue lexemeIdValue,
ItemIdValue lexicalCategory,
ItemIdValue language,
List<MonolingualTextValue> lemmas,
List<StatementGroup> statementGroups,
List<FormDocument> forms,
List<SenseDocument> senses)
Creates a
LexemeDocument. |
static MediaInfoDocument |
Datamodel.makeMediaInfoDocument(MediaInfoIdValue mediaInfoIdValue,
List<MonolingualTextValue> labels,
List<StatementGroup> statementGroups)
Creates a
MediaInfoDocument. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId)
Creates a
PropertyDocument 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 a
PropertyDocument. |
static SenseDocument |
Datamodel.makeSenseDocument(SenseIdValue senseIdValue,
List<MonolingualTextValue> glosses,
List<StatementGroup> statementGroups)
Creates a
SenseDocument. |
| Modifier and Type | Class and Description |
|---|---|
class |
StatementGroupImpl
Helper class to represent a
StatementGroup. |
| Modifier and Type | Method and Description |
|---|---|
StatementGroup |
StatementGroupImpl.getBestStatements() |
StatementGroup |
DataObjectFactoryImpl.getStatementGroup(List<Statement> statements) |
StatementGroup |
StatementGroupImpl.withStatement(Statement statement) |
| Modifier and Type | Method and Description |
|---|---|
FormDocument |
DataObjectFactoryImpl.getFormDocument(FormIdValue formIdValue,
List<MonolingualTextValue> representations,
List<ItemIdValue> grammaticalFeatures,
List<StatementGroup> statementGroups,
long revisionId) |
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
Map<String,SiteLink> siteLinks,
long revisionId) |
LexemeDocument |
DataObjectFactoryImpl.getLexemeDocument(LexemeIdValue lexemeIdValue,
ItemIdValue lexicalCategory,
ItemIdValue language,
List<MonolingualTextValue> lemmas,
List<StatementGroup> statementGroups,
List<FormDocument> forms,
List<SenseDocument> senses,
long revisionId) |
MediaInfoDocument |
DataObjectFactoryImpl.getMediaInfoDocument(MediaInfoIdValue mediaInfoIdValue,
List<MonolingualTextValue> labels,
List<StatementGroup> statementGroups,
long revisionId) |
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
SenseDocument |
DataObjectFactoryImpl.getSenseDocument(SenseIdValue senseIdValue,
List<MonolingualTextValue> glosses,
List<StatementGroup> statementGroups,
long revisionId) |
| Modifier and Type | Method and Description |
|---|---|
default StatementGroup |
StatementDocument.findStatementGroup(PropertyIdValue propertyIdValue)
Returns the
StatementGroup for the given property, or null if
there are no statements for this property. |
default StatementGroup |
StatementDocument.findStatementGroup(String propertyId)
Returns the
StatementGroup for the given property, or null if
there are no statements for this property. |
StatementGroup |
StatementGroup.getBestStatements()
Get the best statements of this group.
|
StatementGroup |
DataObjectFactory.getStatementGroup(List<Statement> statements)
Creates a
StatementGroup. |
StatementGroup |
StatementGroup.withStatement(Statement statement)
Returns a new version of this group, where the given
statement has been added.
|
| Modifier and Type | Method and Description |
|---|---|
List<StatementGroup> |
StatementDocument.getStatementGroups()
Return the list of all StatementGroups stored for this item.
|
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