| 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 |
|---|---|
SnakGroup |
DatamodelConverter.copy(SnakGroup object)
Copies a
SnakGroup. |
static SnakGroup |
Datamodel.makeSnakGroup(List<? extends Snak> snaks)
Creates a
SnakGroup. |
| Modifier and Type | Method and Description |
|---|---|
protected List<SnakGroup> |
StatementBuilder.getQualifierGroups()
Returns a list of
SnakGroup objects for the currently stored
qualifiers. |
protected List<SnakGroup> |
ReferenceBuilder.getSnakGroups()
Returns a list of
SnakGroup objects for the currently stored
snaks. |
| Modifier and Type | Method and Description |
|---|---|
SnakGroup |
DatamodelConverter.copy(SnakGroup object)
Copies a
SnakGroup. |
static boolean |
Equality.equalsSnakGroup(SnakGroup o1,
Object o2)
Returns
true if the parameters are two SnakGroup objects with
exactly the same data. |
static int |
Hash.hashCode(SnakGroup o)
Returns a hash code for the given object.
|
static String |
ToString.toString(SnakGroup o)
Returns a human-readable string representation of the given object.
|
StatementBuilder |
StatementBuilder.withQualifiers(SnakGroup qualifiers)
Adds all qualifiers from the given
SnakGroup to the constructed
statement. |
| Modifier and Type | Method and Description |
|---|---|
static Claim |
Datamodel.makeClaim(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Creates a
Claim. |
static Reference |
Datamodel.makeReference(List<SnakGroup> snakGroups)
Creates a
Reference. |
static Statement |
Datamodel.makeStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
StatementBuilder |
StatementBuilder.withQualifiers(List<SnakGroup> qualifiers)
Adds all qualifiers from the given list of
SnakGroup to the
constructed statement. |
| Modifier and Type | Class and Description |
|---|---|
class |
SnakGroupImpl
Helper class to represent a
SnakGroup deserialized from JSON. |
| Modifier and Type | Method and Description |
|---|---|
SnakGroup |
DataObjectFactoryImpl.getSnakGroup(List<? extends Snak> snaks) |
| Modifier and Type | Method and Description |
|---|---|
List<SnakGroup> |
ClaimImpl.getQualifiers() |
List<SnakGroup> |
StatementImpl.getQualifiers() |
List<SnakGroup> |
ReferenceImpl.getSnakGroups() |
static List<SnakGroup> |
SnakGroupImpl.makeSnakGroups(Map<String,List<Snak>> snaks,
List<String> propertyOrder)
Construct a list of
SnakGroup objects from a map from property
ids to snak lists as found in JSON. |
| Modifier and Type | Method and Description |
|---|---|
Claim |
DataObjectFactoryImpl.getClaim(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers) |
Reference |
DataObjectFactoryImpl.getReference(List<SnakGroup> snakGroups) |
Statement |
DataObjectFactoryImpl.getStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId) |
| Constructor and Description |
|---|
ClaimImpl(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Constructor to create a claim.
|
ReferenceImpl(List<SnakGroup> groups)
Constructor.
|
StatementImpl(String statementId,
StatementRank rank,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
EntityIdValue subjectId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SnakGroup |
DataObjectFactory.getSnakGroup(List<? extends Snak> snaks)
Creates a
SnakGroup. |
| Modifier and Type | Method and Description |
|---|---|
List<SnakGroup> |
Statement.getQualifiers()
Groups of auxiliary Snaks, also known as qualifiers, that provide
additional context information for this claim.
|
List<SnakGroup> |
Claim.getQualifiers()
Groups of auxiliary Snaks, also known as qualifiers, that provide
additional context information for this claim.
|
List<SnakGroup> |
Reference.getSnakGroups()
Get the list of snak groups associated with this reference.
|
| Modifier and Type | Method and Description |
|---|---|
Claim |
DataObjectFactory.getClaim(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers)
Creates a
Claim. |
Reference |
DataObjectFactory.getReference(List<SnakGroup> snakGroups)
Creates a
Reference. |
Statement |
DataObjectFactory.getStatement(EntityIdValue subject,
Snak mainSnak,
List<SnakGroup> qualifiers,
List<Reference> references,
StatementRank rank,
String statementId)
Creates a
Statement. |
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