| 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.
|
| org.wikidata.wdtk.datamodel.json.jackson |
Main package for Jackson-compatible implementations of the WDTK datamodel
interfaces.
|
| org.wikidata.wdtk.datamodel.json.jackson.datavalues |
Jackson-compatible implementation of all WDTK
Value interfaces for use as
snak values. |
| Modifier and Type | Method | Description |
|---|---|---|
protected <T extends Value> |
AbstractTermedStatementDocument.castValue(Value value,
java.lang.Class<T> valueClass) |
Casts the given value to the given class if possible, or returns null if
not.
|
| Modifier and Type | Method | Description |
|---|---|---|
Value |
DatamodelConverter.copyValue(Value value) |
Copies a
Value. |
Value |
AbstractTermedStatementDocument.findStatementValue(java.lang.String propertyId) |
|
Value |
AbstractTermedStatementDocument.findStatementValue(PropertyIdValue propertyIdValue) |
|
protected Value |
AbstractTermedStatementDocument.getValueFromStatement(Statement statement) |
|
Value |
DatamodelConverter.visit(DatatypeIdValue 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) |
| Modifier and Type | Method | Description |
|---|---|---|
protected <T extends Value> |
AbstractTermedStatementDocument.castValue(Value value,
java.lang.Class<T> valueClass) |
Casts the given value to the given class if possible, or returns null if
not.
|
Value |
DatamodelConverter.copyValue(Value value) |
Copies a
Value. |
boolean |
AbstractTermedStatementDocument.hasStatementValue(java.lang.String propertyId,
Value value) |
|
boolean |
AbstractTermedStatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
Value 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 | Method | Description |
|---|---|---|
protected boolean |
AbstractTermedStatementDocument.containsStatementValue(StatementGroup statementGroup,
java.util.Set<? extends Value> values) |
Returns true if the given statement group contains a statement with one
of the given values.
|
boolean |
AbstractTermedStatementDocument.hasStatementValue(java.lang.String propertyId,
java.util.Set<? extends Value> values) |
|
boolean |
AbstractTermedStatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
java.util.Set<? extends Value> values) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
DatatypeIdImpl |
Implementation of
DatatypeIdValue |
class |
GlobeCoordinatesValueImpl |
Implementation of
GlobeCoordinatesValue. |
class |
ItemIdValueImpl |
Generic implementation of
ItemIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally. |
class |
MonolingualTextValueImpl |
|
class |
PropertyIdValueImpl |
Generic implementation of
PropertyIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally. |
class |
QuantityValueImpl |
Implementation of
QuantityValue. |
class |
StringValueImpl |
Implementation of
StringValue. |
class |
TimeValueImpl |
Implementation of
TimeValue. |
| Modifier and Type | Method | Description |
|---|---|---|
Value |
ClaimImpl.getValue() |
|
Value |
SnakImpl.getValue() |
|
Value |
StatementImpl.getValue() |
|
Value |
ValueSnakImpl.getValue() |
| Modifier and Type | Method | Description |
|---|---|---|
ValueSnak |
DataObjectFactoryImpl.getValueSnak(PropertyIdValue propertyId,
Value value) |
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
DatatypeIdValue |
A value that represents one of the available Wikibase datatypes.
|
interface |
EntityIdValue |
An entity is a Value that is represented by a page in Wikibase.
|
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 |
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 |
StringValue |
String Values represent a single string.
|
interface |
TimeValue |
Time values represent points and intervals in time, and additional
information about their format.
|
| Modifier and Type | Method | Description |
|---|---|---|
Value |
StatementDocument.findStatementValue(java.lang.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 |
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. |
Value |
Claim.getValue() |
Convenience method to get the value of the claim's main snak, or null if
there is none.
|
Value |
Snak.getValue() |
Get the
Value of this Snak, or null if the snak has no specified
value. |
Value |
Statement.getValue() |
Convenience method to get the value of the statement's claim's main snak,
or null if there is none.
|
| Modifier and Type | Method | Description |
|---|---|---|
ValueSnak |
DataObjectFactory.getValueSnak(PropertyIdValue propertyId,
Value value) |
Creates a
ValueSnak. |
boolean |
StatementDocument.hasStatementValue(java.lang.String propertyId,
Value value) |
Returns true if there is a statement for the given property and value.
|
boolean |
StatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
Value value) |
Returns true if there is a statement for the given property and value.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
StatementDocument.hasStatementValue(java.lang.String propertyId,
java.util.Set<? extends Value> values) |
Returns true if there is a statement for the given property and one of
the given values.
|
boolean |
StatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
java.util.Set<? extends Value> values) |
Returns true if there is a statement for the given property and one of
the given values.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonDatatypeId |
Jackson implementation of
DatatypeIdValue. |
class |
JacksonMonolingualTextValue |
Jackson representation of
MonolingualTextValue data used in labels,
aliases, and descriptions in JSON. |
| Modifier and Type | Method | Description |
|---|---|---|
Value |
ClaimFromJson.getValue() |
|
Value |
JacksonSnak.getValue() |
|
Value |
JacksonStatement.getValue() |
|
Value |
JacksonValueSnak.getValue() |
| Modifier and Type | Method | Description |
|---|---|---|
ValueSnak |
JacksonObjectFactory.getValueSnak(PropertyIdValue propertyId,
Value value) |
Creates a
JacksonValueSnak. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonValue |
Abstract Jackson implementation of
Value. |
class |
JacksonValueEntityId |
Abstract base implementation of
EntityIdValue for Jackson. |
class |
JacksonValueGlobeCoordinates |
Jackson implementation of
GlobeCoordinatesValue. |
class |
JacksonValueItemId |
Jackson implementation of
ItemIdValue. |
class |
JacksonValueMonolingualText |
Jackson implementation of
MonolingualTextValue. |
class |
JacksonValuePropertyId |
Jackson implementation of
PropertyIdValue. |
class |
JacksonValueQuantity |
Jackson implementation of
QuantityValue. |
class |
JacksonValueString |
Jackson implementation of
StringValue. |
class |
JacksonValueTime |
Jackson implementation of
TimeValue. |
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage