| 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 |
|---|---|
Value |
DatamodelConverter.copyValue(Value value)
Copies a
Value. |
Value |
DatamodelConverter.visit(EntityIdValue value) |
Value |
DatamodelConverter.visit(GlobeCoordinatesValue value) |
Value |
DatamodelConverter.visit(MonolingualTextValue value) |
Value |
DatamodelConverter.visit(QuantityValue value) |
Value |
DatamodelConverter.visit(StringValue value) |
Value |
DatamodelConverter.visit(TimeValue value) |
Value |
DatamodelConverter.visit(UnsupportedValue value) |
| Modifier and Type | Method and Description |
|---|---|
Value |
DatamodelConverter.copyValue(Value value)
Copies a
Value. |
static ValueSnak |
Datamodel.makeValueSnak(PropertyIdValue propertyId,
Value value)
Creates a
ValueSnak. |
ReferenceBuilder |
ReferenceBuilder.withPropertyValue(PropertyIdValue propertyIdValue,
Value value)
Adds the given property and value to the constructed reference.
|
StatementBuilder |
StatementBuilder.withQualifierValue(PropertyIdValue propertyIdValue,
Value value)
Adds a qualifier with the given property and value to the constructed
statement.
|
StatementBuilder |
StatementBuilder.withValue(Value value)
Sets the main value for the constructed statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EntityIdValueImpl
Abstract base implementation of
EntityIdValue for Jackson. |
class |
FormIdValueImpl
Jackson implementation of
FormIdValue. |
class |
GlobeCoordinatesValueImpl
Jackson implementation of
GlobeCoordinatesValue. |
class |
ItemIdValueImpl
Jackson implementation of
ItemIdValue. |
class |
LexemeIdValueImpl
Jackson implementation of
LexemeIdValue. |
class |
MediaInfoIdValueImpl
Jackson implementation of
MediaInfoIdValue. |
class |
MonolingualTextValueImpl
Jackson implementation of
MonolingualTextValue. |
class |
PropertyIdValueImpl
Jackson implementation of
PropertyIdValue. |
class |
QuantityValueImpl
Jackson implementation of
QuantityValue. |
class |
SenseIdValueImpl
Jackson implementation of
SenseIdValue. |
class |
StringValueImpl
Jackson implementation of
StringValue. |
class |
TermImpl
Jackson representation of
MonolingualTextValue data used in labels,
aliases, and descriptions in JSON. |
class |
TimeValueImpl
Jackson implementation of
TimeValue. |
class |
UnsupportedEntityIdValueImpl
Represents a entity id value of an unsupported type.
|
class |
UnsupportedValueImpl
Represents a value with an unsupported datatype.
|
class |
ValueImpl
Abstract Jackson implementation of
Value. |
| Modifier and Type | Method and Description |
|---|---|
Value |
ValueSnakImpl.getDatavalue() |
Value |
ValueSnakImpl.getValue() |
Value |
ClaimImpl.getValue() |
Value |
StatementImpl.getValue() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
ValueSnakImpl.getJsonPropertyTypeForValueType(Value value)
Infer the JSON datatype (represented as a string) from the data value.
|
ValueSnak |
DataObjectFactoryImpl.getValueSnak(PropertyIdValue propertyId,
Value value)
Creates a
ValueSnakImpl. |
| Constructor and Description |
|---|
ValueSnakImpl(PropertyIdValue property,
Value value)
Constructor.
|
ValueSnakImpl(String property,
String datatype,
Value datavalue,
String siteIri)
Constructor used to deserialize from JSON with Jackson.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EntityIdValue
An entity is a Value that is represented by a page in Wikibase.
|
interface |
FormIdValue
The id of a Wikibase Lexeme Form.
|
interface |
GlobeCoordinatesValue
Globe coordinates specify a position on some globe (usually Earth, but
possibly also another celestial body, such as Mars).
|
interface |
IriIdentifiedValue
An IriIdentifiedValue is a Value that is identified by an IRI, which can be
used as the canonical identifier for the entity outside of the context of a
particular Wikibase installation.
|
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 |
MonolingualTextValue
A monolingual text value represents a text (string) in a certain language.
|
interface |
PropertyIdValue
The id of a Wikibase Property.
|
interface |
QuantityValue
A quantity value represents a number, possibly under some unit.
|
interface |
SenseIdValue
The id of a Wikibase Lexeme Sense.
|
interface |
StringValue
String Values represent a single string.
|
interface |
TimeValue
Time values represent points and intervals in time, and additional
information about their format.
|
interface |
UnsupportedEntityIdValue
Represents a entity id value of an unsupported type.
|
interface |
UnsupportedValue
Represents a value with an unsupported datatype.
|
| Modifier and Type | Method and Description |
|---|---|
default Value |
StatementDocument.findStatementValue(PropertyIdValue propertyIdValue)
Returns the unique
Value for the given property, or null if there
are zero or many values given in statements for this property. |
default Value |
StatementDocument.findStatementValue(String propertyId)
Returns the unique
Value for the given property, or null if there
are zero or many values given in statements for this property. |
Value |
Statement.getValue()
Convenience method to get the value of the statement's claim's main snak,
or null if there is none.
|
Value |
ValueSnak.getValue()
Get the
Value of this Snak |
Value |
Claim.getValue()
Convenience method to get the value of the claim's main snak, or null if
there is none.
|
| Modifier and Type | Method and Description |
|---|---|
ValueSnak |
DataObjectFactory.getValueSnak(PropertyIdValue propertyId,
Value value)
Creates a
ValueSnak. |
default boolean |
StatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
Value value)
Returns true if there is a statement for the given property and value.
|
default boolean |
StatementDocument.hasStatementValue(String propertyId,
Value value)
Returns true if there is a statement for the given property and value.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
StatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
Set<? extends Value> values)
Returns true if there is a statement for the given property and one of
the given values.
|
default boolean |
StatementDocument.hasStatementValue(String propertyId,
Set<? extends Value> values)
Returns true if there is a statement for the given property and one of
the given values.
|
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