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.dumpfiles |
Components for downloading and processing Wikibase dump files.
|
org.wikidata.wdtk.examples |
Package for example programs that demonstrate how to use Wikidata Toolkit in practice.
|
org.wikidata.wdtk.rdf |
Serializer for RDF
|
org.wikidata.wdtk.wikibaseapi |
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
|
Modifier and Type | Method and Description |
---|---|
PropertyDocument |
DatamodelConverter.copy(PropertyDocument object)
Copies a
PropertyDocument . |
static boolean |
Equality.equalsPropertyDocument(PropertyDocument o1,
Object o2)
Returns
true if the parameters are two PropertyDocument objects
with exactly the same data. |
PropertyDocument |
DatamodelFilter.filter(PropertyDocument property) |
static PropertyUpdateBuilder |
PropertyUpdateBuilder.forBaseRevision(PropertyDocument revision)
Creates new builder object for constructing update of given base property
entity revision.
|
static PropertyDocumentBuilder |
PropertyDocumentBuilder.fromPropertyDocument(PropertyDocument initialDocument)
Starts the construction of an
PropertyDocument from the existing
document. |
static String |
JsonSerializer.getJsonString(PropertyDocument propertyDocument)
Serializes the given object in JSON and returns the resulting string.
|
static int |
Hash.hashCode(PropertyDocument o)
Returns a hash code for the given object.
|
void |
JsonSerializer.processPropertyDocument(PropertyDocument propertyDocument) |
static String |
ToString.toString(PropertyDocument o)
Returns a human-readable string representation of the given object.
|
Constructor and Description |
---|
PropertyDocumentBuilder(PropertyDocument initialDocument)
Constructor when building the property document from an existing one.
|
Modifier and Type | Class and Description |
---|---|
class |
PropertyDocumentImpl
Jackson implementation of
PropertyDocument . |
Modifier and Type | Method and Description |
---|---|
PropertyDocument |
DataObjectFactoryImpl.getPropertyDocument(PropertyIdValue propertyId,
List<MonolingualTextValue> labels,
List<MonolingualTextValue> descriptions,
List<MonolingualTextValue> aliases,
List<StatementGroup> statementGroups,
DatatypeIdValue datatypeId,
long revisionId) |
PropertyDocument |
PropertyDocumentImpl.withAliases(String language,
List<MonolingualTextValue> aliases) |
PropertyDocument |
PropertyDocumentImpl.withDescription(MonolingualTextValue newDescription) |
PropertyDocument |
PropertyDocumentImpl.withEntityId(PropertyIdValue newEntityId) |
PropertyDocument |
PropertyDocumentImpl.withLabel(MonolingualTextValue newLabel) |
PropertyDocument |
PropertyDocumentImpl.withoutStatementIds(Set<String> statementIds) |
PropertyDocument |
PropertyDocumentImpl.withRevisionId(long newRevisionId) |
PropertyDocument |
PropertyDocumentImpl.withStatement(Statement statement) |
Modifier and Type | Method and Description |
---|---|
default void |
EntityDocumentProcessor.processPropertyDocument(PropertyDocument propertyDocument)
Processes the given PropertyDocument.
|
void |
EntityDocumentProcessorFilter.processPropertyDocument(PropertyDocument propertyDocument) |
void |
EntityDocumentProcessorBroker.processPropertyDocument(PropertyDocument propertyDocument) |
Modifier and Type | Method and Description |
---|---|
void |
EntityTimerProcessor.processPropertyDocument(PropertyDocument propertyDocument) |
Modifier and Type | Method and Description |
---|---|
void |
ClassPropertyUsageAnalyzer.processPropertyDocument(PropertyDocument propertyDocument) |
void |
JsonSerializationProcessor.processPropertyDocument(PropertyDocument propertyDocument) |
void |
TutorialDocumentProcessor.processPropertyDocument(PropertyDocument propertyDocument)
Processes one property document.
|
Modifier and Type | Method and Description |
---|---|
void |
RdfSerializer.processPropertyDocument(PropertyDocument propertyDocument) |
void |
RdfConverter.writeInterPropertyLinks(PropertyDocument document) |
void |
AbstractRdfConverter.writeInterPropertyLinks(PropertyDocument document)
Writes triples which connect properties with their corresponding rdf
properties for statements, simple statements, qualifiers, reference
attributes and values.
|
void |
RdfConverter.writePropertyDatatype(PropertyDocument document) |
void |
AbstractRdfConverter.writePropertyDatatype(PropertyDocument document) |
void |
RdfConverter.writePropertyDocument(PropertyDocument document) |
void |
AbstractRdfConverter.writePropertyDocument(PropertyDocument document) |
Modifier and Type | Method and Description |
---|---|
PropertyDocument |
WikibaseDataEditor.createPropertyDocument(PropertyDocument document,
String summary,
List<String> tags)
Creates new property document.
|
PropertyDocument |
WikibaseDataEditor.editPropertyDocument(PropertyDocument propertyDocument,
boolean clear,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Writes the data for the given property document with the summary message
as given. Optionally, the existing data is cleared (deleted).
The id of the given property document is used to specify which property document should be changed. The site IRI will be ignored for this. The revision id of the given property document is used to specify the base revision, enabling the API to detect edit conflicts. The value 0 can be used to omit this. It is strongly recommended to give a revision id when making edits where the outcome depends on the previous state of the data (i.e., any edit that does not use "clear"). If the data is not cleared, then the existing data will largely be preserved. Statements with empty ids will be added without checking if they exist already; statements with (valid) ids will replace any existing statements with these ids or just be added if there are none. Labels, descriptions, and aliases will be preserved for all languages for which no data is given at all. For aliases this means that writing one alias in a language will overwrite all aliases in this language, so some care is needed. |
PropertyDocument |
WikibaseDataEditor.updateStatements(PropertyIdValue propertyIdValue,
List<Statement> addStatements,
List<Statement> deleteStatements,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Updates the statements of the property document identified by the given
property id. The computation of updates is the same as for
WikibaseDataEditor.updateStatements(ItemIdValue, List, List, String, List) . |
Modifier and Type | Method and Description |
---|---|
PropertyDocument |
WikibaseDataEditor.createPropertyDocument(PropertyDocument document,
String summary,
List<String> tags)
Creates new property document.
|
PropertyDocument |
WikibaseDataEditor.editPropertyDocument(PropertyDocument propertyDocument,
boolean clear,
String summary,
List<String> tags)
Deprecated.
Use
WikibaseDataEditor.editEntityDocument(EntityUpdate, boolean, String, List) instead.
Writes the data for the given property document with the summary message
as given. Optionally, the existing data is cleared (deleted).
The id of the given property document is used to specify which property document should be changed. The site IRI will be ignored for this. The revision id of the given property document is used to specify the base revision, enabling the API to detect edit conflicts. The value 0 can be used to omit this. It is strongly recommended to give a revision id when making edits where the outcome depends on the previous state of the data (i.e., any edit that does not use "clear"). If the data is not cleared, then the existing data will largely be preserved. Statements with empty ids will be added without checking if they exist already; statements with (valid) ids will replace any existing statements with these ids or just be added if there are none. Labels, descriptions, and aliases will be preserved for all languages for which no data is given at all. For aliases this means that writing one alias in a language will overwrite all aliases in this language, so some care is needed. |
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage