| 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 |
|---|---|---|
PropertyIdValue |
DatamodelConverter.copy(PropertyIdValue object) |
Copies a
PropertyIdValue. |
PropertyIdValue |
AbstractTermedStatementDocument.findStatementPropertyIdValue(java.lang.String propertyId) |
|
PropertyIdValue |
AbstractTermedStatementDocument.findStatementPropertyIdValue(PropertyIdValue propertyIdValue) |
|
static PropertyIdValue |
Datamodel.makePropertyIdValue(java.lang.String id,
java.lang.String siteIri) |
Creates a
PropertyIdValue. |
static PropertyIdValue |
Datamodel.makeWikidataPropertyIdValue(java.lang.String id) |
Creates a
PropertyIdValue. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<PropertyIdValue> |
DatamodelConverter.getOptionPropertyFilter() |
Returns the (possibly empty) set of
PropertyIdValue objects that
are used to filter statements while copying data, or null if no such
filter is configured (default). |
| Modifier and Type | Method | Description |
|---|---|---|
PropertyIdValue |
DatamodelConverter.copy(PropertyIdValue object) |
Copies a
PropertyIdValue. |
Statement |
AbstractTermedStatementDocument.findStatement(PropertyIdValue propertyIdValue) |
|
DatatypeIdValue |
AbstractTermedStatementDocument.findStatementDatatypeIdValue(PropertyIdValue propertyIdValue) |
|
EntityIdValue |
AbstractTermedStatementDocument.findStatementEntityIdValue(PropertyIdValue propertyIdValue) |
|
GlobeCoordinatesValue |
AbstractTermedStatementDocument.findStatementGlobeCoordinatesValue(PropertyIdValue propertyIdValue) |
|
StatementGroup |
AbstractTermedStatementDocument.findStatementGroup(PropertyIdValue propertyIdValue) |
|
ItemIdValue |
AbstractTermedStatementDocument.findStatementItemIdValue(PropertyIdValue propertyIdValue) |
|
MonolingualTextValue |
AbstractTermedStatementDocument.findStatementMonolingualTextValue(PropertyIdValue propertyIdValue) |
|
PropertyIdValue |
AbstractTermedStatementDocument.findStatementPropertyIdValue(PropertyIdValue propertyIdValue) |
|
QuantityValue |
AbstractTermedStatementDocument.findStatementQuantityValue(PropertyIdValue propertyIdValue) |
|
StringValue |
AbstractTermedStatementDocument.findStatementStringValue(PropertyIdValue propertyIdValue) |
|
TimeValue |
AbstractTermedStatementDocument.findStatementTimeValue(PropertyIdValue propertyIdValue) |
|
Value |
AbstractTermedStatementDocument.findStatementValue(PropertyIdValue propertyIdValue) |
|
static PropertyDocumentBuilder |
PropertyDocumentBuilder.forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
java.lang.String datatypeId) |
Starts the construction of an
PropertyDocument with the given id. |
static PropertyDocumentBuilder |
PropertyDocumentBuilder.forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype) |
Starts the construction of an
PropertyDocument with the given id. |
static StatementBuilder |
StatementBuilder.forSubjectAndProperty(EntityIdValue subject,
PropertyIdValue property) |
Starts the construction of a
Statement with the given subject. |
protected java.util.ArrayList<Snak> |
StatementBuilder.getQualifierList(PropertyIdValue propertyIdValue) |
Returns the list of
Snak objects for a given qualifier property. |
protected java.util.ArrayList<Snak> |
ReferenceBuilder.getSnakList(PropertyIdValue propertyIdValue) |
Returns the list of
Snak objects for a given property. |
boolean |
AbstractTermedStatementDocument.hasStatement(PropertyIdValue propertyIdValue) |
|
boolean |
AbstractTermedStatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
java.util.Set<? extends Value> values) |
|
boolean |
AbstractTermedStatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
Value value) |
|
static NoValueSnak |
Datamodel.makeNoValueSnak(PropertyIdValue propertyId) |
Creates a
NoValueSnak. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
Creates a
PropertyDocument with empty revision id. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
Creates a
PropertyDocument. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
Creates a
PropertyDocument without statements and empty revision
id. |
static SomeValueSnak |
Datamodel.makeSomeValueSnak(PropertyIdValue propertyId) |
Creates a
SomeValueSnak. |
static ValueSnak |
Datamodel.makeValueSnak(PropertyIdValue propertyId,
Value value) |
Creates a
ValueSnak. |
static java.lang.String |
ToString.toString(PropertyIdValue o) |
Returns a human-readable string representation of the given object.
|
ReferenceBuilder |
ReferenceBuilder.withNoValue(PropertyIdValue propertyIdValue) |
Adds a
NoValueSnak with the given property to the constructed
reference. |
ReferenceBuilder |
ReferenceBuilder.withPropertyValue(PropertyIdValue propertyIdValue,
Value value) |
Adds the given property and value to the constructed reference.
|
StatementBuilder |
StatementBuilder.withQualifierNoValue(PropertyIdValue propertyIdValue) |
Adds a
NoValueSnak qualifier with the given property to the
constructed statement. |
StatementBuilder |
StatementBuilder.withQualifierSomeValue(PropertyIdValue propertyIdValue) |
Adds a
SomeValueSnak qualifier with the given property to the
constructed statement. |
StatementBuilder |
StatementBuilder.withQualifierValue(PropertyIdValue propertyIdValue,
Value value) |
Adds a qualifier with the given property and value to the constructed
statement.
|
ReferenceBuilder |
ReferenceBuilder.withSomeValue(PropertyIdValue propertyIdValue) |
Adds a
SomeValueSnak with the given property to the constructed
reference. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
DatamodelConverter.setOptionPropertyFilter(java.util.Set<PropertyIdValue> propertyFilter) |
Sets the (possibly empty) set of
PropertyIdValue objects that are
used to filter statements while copying data. |
| Constructor | Description |
|---|---|
PropertyDocumentBuilder(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype) |
Constructor.
|
StatementBuilder(EntityIdValue subject,
PropertyIdValue property) |
Constructor.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
PropertyIdValueImpl |
Generic implementation of
PropertyIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally. |
| Modifier and Type | Method | Description |
|---|---|---|
PropertyIdValue |
SnakGroupImpl.getProperty() |
|
PropertyIdValue |
StatementGroupImpl.getProperty() |
|
PropertyIdValue |
PropertyDocumentImpl.getPropertyId() |
|
PropertyIdValue |
SnakImpl.getPropertyId() |
|
PropertyIdValue |
DataObjectFactoryImpl.getPropertyIdValue(java.lang.String id,
java.lang.String siteIri) |
| Modifier and Type | Method | Description |
|---|---|---|
NoValueSnak |
DataObjectFactoryImpl.getNoValueSnak(PropertyIdValue propertyId) |
|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
|
SomeValueSnak |
DataObjectFactoryImpl.getSomeValueSnak(PropertyIdValue propertyId) |
|
ValueSnak |
DataObjectFactoryImpl.getValueSnak(PropertyIdValue propertyId,
Value value) |
| Modifier and Type | Field | Description |
|---|---|---|
static PropertyIdValue |
PropertyIdValue.NULL |
Fixed
PropertyIdValue that refers to a non-existing property. |
| Modifier and Type | Method | Description |
|---|---|---|
PropertyIdValue |
StatementDocument.findStatementPropertyIdValue(java.lang.String propertyId) |
Returns the unique
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
PropertyIdValue |
StatementDocument.findStatementPropertyIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
PropertyIdValue |
SnakGroup.getProperty() |
Get the property used by each snak in this group.
|
PropertyIdValue |
StatementGroup.getProperty() |
Get the property used in the main snak of the
Claim of each
statement in this group. |
PropertyIdValue |
PropertyDocument.getPropertyId() |
Return the ID of the property that the data refers to.
|
PropertyIdValue |
Snak.getPropertyId() |
Get the id of the property that this snak refers to.
|
PropertyIdValue |
DataObjectFactory.getPropertyIdValue(java.lang.String id,
java.lang.String siteIri) |
Creates a
PropertyIdValue. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<PropertyIdValue> |
DocumentDataFilter.getPropertyFilter() |
Returns the (possibly empty) set of
PropertyIdValue objects that
are used to filter statements, or null if no such filter is configured
(default). |
| Modifier and Type | Method | Description |
|---|---|---|
Statement |
StatementDocument.findStatement(PropertyIdValue propertyIdValue) |
Returns the unique
Statement for the given property, or null if
there are zero or many statements for this property. |
DatatypeIdValue |
StatementDocument.findStatementDatatypeIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
DatatypeIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
EntityIdValue |
StatementDocument.findStatementEntityIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
EntityIdValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
GlobeCoordinatesValue |
StatementDocument.findStatementGlobeCoordinatesValue(PropertyIdValue propertyIdValue) |
Returns the unique
GlobeCoordinatesValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
StatementGroup |
StatementDocument.findStatementGroup(PropertyIdValue propertyIdValue) |
Returns the
StatementGroup for the given property, or null if
there are no 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. |
MonolingualTextValue |
StatementDocument.findStatementMonolingualTextValue(PropertyIdValue propertyIdValue) |
Returns the unique
MonolingualTextValue for the given property,
or null if there are zero or many such values given in statements for
this property. |
PropertyIdValue |
StatementDocument.findStatementPropertyIdValue(PropertyIdValue propertyIdValue) |
Returns the unique
PropertyIdValue for the given property, or
null if there are zero or many such values given in statements for this
property. |
QuantityValue |
StatementDocument.findStatementQuantityValue(PropertyIdValue propertyIdValue) |
Returns the unique
QuantityValue for the given property, or null
if there are zero or many such values given in statements for this
property. |
StringValue |
StatementDocument.findStatementStringValue(PropertyIdValue propertyIdValue) |
Returns the unique
StringValue for the given property, or null if
there are zero or many such values given in statements for this property. |
TimeValue |
StatementDocument.findStatementTimeValue(PropertyIdValue propertyIdValue) |
Returns the unique
TimeValue for the given property, or null if
there are zero or many such 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. |
NoValueSnak |
DataObjectFactory.getNoValueSnak(PropertyIdValue propertyId) |
Creates a
NoValueSnak. |
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
|
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
Creates a
PropertyDocument. |
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
|
SomeValueSnak |
DataObjectFactory.getSomeValueSnak(PropertyIdValue propertyId) |
Creates a
SomeValueSnak. |
ValueSnak |
DataObjectFactory.getValueSnak(PropertyIdValue propertyId,
Value value) |
Creates a
ValueSnak. |
boolean |
StatementDocument.hasStatement(PropertyIdValue propertyIdValue) |
Returns true if there is a statement for the given property.
|
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.
|
boolean |
StatementDocument.hasStatementValue(PropertyIdValue propertyIdValue,
Value value) |
Returns true if there is a statement for the given property and value.
|
boolean |
DocumentDataFilter.includePropertyId(PropertyIdValue propertyIdValue) |
Returns true if the given property is included (not filtered).
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
DocumentDataFilter.setPropertyFilter(java.util.Set<PropertyIdValue> propertyFilter) |
Sets the (possibly empty) set of
PropertyIdValue objects that are
used to filter statements. |
| Modifier and Type | Method | Description |
|---|---|---|
PropertyIdValue |
SnakGroupFromJson.getProperty() |
|
PropertyIdValue |
StatementGroupFromJson.getProperty() |
|
PropertyIdValue |
JacksonPropertyDocument.getPropertyId() |
|
PropertyIdValue |
JacksonSnak.getPropertyId() |
|
PropertyIdValue |
JacksonObjectFactory.getPropertyIdValue(java.lang.String id,
java.lang.String siteIri) |
| Modifier and Type | Method | Description |
|---|---|---|
NoValueSnak |
JacksonObjectFactory.getNoValueSnak(PropertyIdValue propertyId) |
|
PropertyDocument |
JacksonObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId) |
|
PropertyDocument |
JacksonObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
java.util.List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
|
PropertyDocument |
JacksonObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
java.util.List<MonolingualTextValue> labels,
java.util.List<MonolingualTextValue> descriptions,
java.util.List<MonolingualTextValue> aliases,
DatatypeIdValue datatypeId) |
|
SomeValueSnak |
JacksonObjectFactory.getSomeValueSnak(PropertyIdValue propertyId) |
|
ValueSnak |
JacksonObjectFactory.getValueSnak(PropertyIdValue propertyId,
Value value) |
Creates a
JacksonValueSnak. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
JacksonValuePropertyId |
Jackson implementation of
PropertyIdValue. |
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