| 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 |
|---|---|---|
ItemIdValue |
DatamodelConverter.copy(ItemIdValue object) |
Copies an
ItemIdValue. |
ItemIdValue |
AbstractTermedStatementDocument.findStatementItemIdValue(java.lang.String propertyId) |
|
ItemIdValue |
AbstractTermedStatementDocument.findStatementItemIdValue(PropertyIdValue propertyIdValue) |
|
static ItemIdValue |
Datamodel.makeItemIdValue(java.lang.String id,
java.lang.String siteIri) |
Creates an
ItemIdValue. |
static ItemIdValue |
Datamodel.makeWikidataItemIdValue(java.lang.String id) |
Creates an
ItemIdValue for Wikidata. |
| Modifier and Type | Method | Description |
|---|---|---|
ItemIdValue |
DatamodelConverter.copy(ItemIdValue object) |
Copies an
ItemIdValue. |
static ItemDocumentBuilder |
ItemDocumentBuilder.forItemId(ItemIdValue itemIdValue) |
Starts the construction of an
ItemDocument with the given id. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
Creates an
ItemDocument with empty revision id. |
static ItemDocument |
Datamodel.makeItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
Creates an
ItemDocument. |
static java.lang.String |
ToString.toString(ItemIdValue o) |
Returns a human-readable string representation of the given object.
|
| Constructor | Description |
|---|---|
ItemDocumentBuilder(ItemIdValue itemIdValue) |
Constructor.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
ItemIdValueImpl |
Generic implementation of
ItemIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally. |
| Modifier and Type | Method | Description |
|---|---|---|
ItemIdValue |
ItemDocumentImpl.getItemId() |
|
ItemIdValue |
DataObjectFactoryImpl.getItemIdValue(java.lang.String id,
java.lang.String siteIri) |
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
|
ItemDocument |
DataObjectFactoryImpl.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
| Modifier and Type | Field | Description |
|---|---|---|
static ItemIdValue |
ItemIdValue.NULL |
Fixed
ItemIdValue that refers to a non-existing item. |
| Modifier and Type | Method | Description |
|---|---|---|
ItemIdValue |
StatementDocument.findStatementItemIdValue(java.lang.String propertyId) |
Returns the unique
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property. |
ItemIdValue |
StatementDocument.findStatementItemIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
ItemIdValue for the given property, or null if
there are zero or many such values given in statements for this property. |
ItemIdValue |
ItemDocument.getItemId() |
Return the ID of the item that the data refers to.
|
ItemIdValue |
DataObjectFactory.getItemIdValue(java.lang.String id,
java.lang.String siteIri) |
Creates an
ItemIdValue. |
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
Deprecated.
|
ItemDocument |
DataObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
Creates an
ItemDocument. |
| Modifier and Type | Method | Description |
|---|---|---|
ItemIdValue |
JacksonItemDocument.getItemId() |
|
ItemIdValue |
JacksonObjectFactory.getItemIdValue(java.lang.String id,
java.lang.String siteIri) |
| Modifier and Type | Method | Description |
|---|---|---|
ItemDocument |
JacksonObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks) |
|
ItemDocument |
JacksonObjectFactory.getItemDocument(ItemIdValue itemIdValue,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
java.util.Map<java.lang.String,SiteLink> siteLinks,
long revisionId) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonValueItemId |
Jackson implementation of
ItemIdValue. |
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