| 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 |
|---|---|
PropertyIdValue |
DatamodelConverter.copy(PropertyIdValue object)
Copies a
PropertyIdValue. |
static PropertyIdValue |
Datamodel.makePropertyIdValue(String id,
String siteIri)
Creates a
PropertyIdValue. |
static PropertyIdValue |
Datamodel.makeWikidataPropertyIdValue(String id)
Creates a
PropertyIdValue. |
| Modifier and Type | Method and Description |
|---|---|
PropertyIdValue |
DatamodelConverter.copy(PropertyIdValue object)
Copies a
PropertyIdValue. |
static PropertyUpdateBuilder |
PropertyUpdateBuilder.forBaseRevisionId(PropertyIdValue propertyId,
long revisionId)
Creates new builder object for constructing update of property entity with
given revision ID.
|
static PropertyUpdateBuilder |
PropertyUpdateBuilder.forEntityId(PropertyIdValue propertyId)
Creates new builder object for constructing update of property entity with
given ID.
|
static PropertyDocumentBuilder |
PropertyDocumentBuilder.forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype)
Starts the construction of an
PropertyDocument with the given id. |
static PropertyDocumentBuilder |
PropertyDocumentBuilder.forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
String datatypeId)
|
static PropertyDocumentBuilder |
PropertyDocumentBuilder.forPropertyIdAndJsonDatatype(PropertyIdValue propertyIdValue,
String datatypeId)
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 ArrayList<Snak> |
StatementBuilder.getQualifierList(PropertyIdValue propertyIdValue)
Returns the list of
Snak objects for a given qualifier property. |
protected ArrayList<Snak> |
ReferenceBuilder.getSnakList(PropertyIdValue propertyIdValue)
Returns the list of
Snak objects for a given property. |
static NoValueSnak |
Datamodel.makeNoValueSnak(PropertyIdValue propertyId)
Creates a
NoValueSnak. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
DatatypeIdValue datatypeId)
Creates an empty
PropertyDocument. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId)
Creates a
PropertyDocument with empty revision id. |
static PropertyDocument |
Datamodel.makePropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId)
Creates a
PropertyDocument. |
static PropertyUpdate |
Datamodel.makePropertyUpdate(PropertyIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements)
Creates new
PropertyUpdate. |
static SomeValueSnak |
Datamodel.makeSomeValueSnak(PropertyIdValue propertyId)
Creates a
SomeValueSnak. |
static ValueSnak |
Datamodel.makeValueSnak(PropertyIdValue propertyId,
Value value)
Creates a
ValueSnak. |
static 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. |
| Constructor and Description |
|---|
PropertyDocumentBuilder(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype)
Constructor when building the property document from scratch.
|
StatementBuilder(EntityIdValue subject,
PropertyIdValue property)
Constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PropertyIdValueImpl
Jackson implementation of
PropertyIdValue. |
| Modifier and Type | Method and Description |
|---|---|
PropertyIdValue |
PropertyUpdateImpl.getEntityId() |
PropertyIdValue |
PropertyDocumentImpl.getEntityId() |
PropertyIdValue |
StatementGroupImpl.getProperty() |
PropertyIdValue |
SnakGroupImpl.getProperty() |
PropertyIdValue |
SnakImpl.getPropertyId() |
PropertyIdValue |
DataObjectFactoryImpl.getPropertyIdValue(String id,
String siteIri) |
| Modifier and Type | Method and Description |
|---|---|
NoValueSnak |
DataObjectFactoryImpl.getNoValueSnak(PropertyIdValue propertyId) |
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
PropertyUpdate |
DataObjectFactoryImpl.getPropertyUpdate(PropertyIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements) |
SomeValueSnak |
DataObjectFactoryImpl.getSomeValueSnak(PropertyIdValue propertyId) |
ValueSnak |
DataObjectFactoryImpl.getValueSnak(PropertyIdValue propertyId,
Value value)
Creates a
ValueSnakImpl. |
PropertyDocument |
PropertyDocumentImpl.withEntityId(PropertyIdValue newEntityId) |
| Constructor and Description |
|---|
NoValueSnakImpl(PropertyIdValue property)
Constructor.
|
PropertyDocumentImpl(PropertyIdValue id,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statements,
DatatypeIdValue datatype,
long revisionId)
Constructor for instances that are built manually, rather than from JSON.
|
PropertyUpdateImpl(PropertyIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements)
Initializes new property update.
|
SnakImpl(PropertyIdValue property)
Constructor.
|
SomeValueSnakImpl(PropertyIdValue property)
Constructor.
|
ValueSnakImpl(PropertyIdValue property,
Value value)
Constructor.
|
| Modifier and Type | Field and Description |
|---|---|
static PropertyIdValue |
PropertyIdValue.NULL
Fixed
PropertyIdValue that refers to a non-existing property. |
| Modifier and Type | Method and Description |
|---|---|
default 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. |
default PropertyIdValue |
StatementDocument.findStatementPropertyIdValue(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 |
PropertyUpdate.getEntityId() |
PropertyIdValue |
PropertyDocument.getEntityId()
Return the ID of the item that the data refers to.
|
PropertyIdValue |
StatementGroup.getProperty()
Get the property used in the main snak of the
Claim of each
statement in this group. |
PropertyIdValue |
SnakGroup.getProperty()
Get the property used by each snak in this group.
|
PropertyIdValue |
Snak.getPropertyId()
Get the id of the property that this snak refers to.
|
PropertyIdValue |
DataObjectFactory.getPropertyIdValue(String id,
String siteIri)
Creates a
PropertyIdValue. |
| Modifier and Type | Method and Description |
|---|---|
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 and Description |
|---|---|
default 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. |
default 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. |
default 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. |
default StatementGroup |
StatementDocument.findStatementGroup(PropertyIdValue propertyIdValue)
Returns the
StatementGroup for the given property, or null if
there are no statements for this property. |
default 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. |
default 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. |
default 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. |
default 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. |
default 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. |
default 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. |
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. |
NoValueSnak |
DataObjectFactory.getNoValueSnak(PropertyIdValue propertyId)
Creates a
NoValueSnak. |
PropertyDocument |
DataObjectFactory.getPropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId)
Creates a
PropertyDocument. |
PropertyUpdate |
DataObjectFactory.getPropertyUpdate(PropertyIdValue entityId,
long revisionId,
TermUpdate labels,
TermUpdate descriptions,
Map<String,AliasUpdate> aliases,
StatementUpdate statements)
Creates new
PropertyUpdate. |
SomeValueSnak |
DataObjectFactory.getSomeValueSnak(PropertyIdValue propertyId)
Creates a
SomeValueSnak. |
ValueSnak |
DataObjectFactory.getValueSnak(PropertyIdValue propertyId,
Value value)
Creates a
ValueSnak. |
default boolean |
StatementDocument.hasStatement(PropertyIdValue propertyIdValue)
Returns true if there is a statement for the given property.
|
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(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).
|
PropertyDocument |
PropertyDocument.withEntityId(PropertyIdValue newEntityId)
Returns a new version of this document with updated ID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DocumentDataFilter.setPropertyFilter(Set<PropertyIdValue> propertyFilter)
Sets the (possibly empty) set of
PropertyIdValue objects that are
used to filter statements. |
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