public interface PropertyDocument extends TermedStatementDocument
EntityDocument with information about the datatype of a property.
Claims or Statements on properties might be supported in the future.
| Modifier and Type | Method and Description |
|---|---|
DatatypeIdValue |
getDatatype()
Get the datatype id of the datatype defined for this property.
|
PropertyIdValue |
getEntityId()
Return the ID of the item that the data refers to.
|
PropertyDocument |
withAliases(String language,
List<MonolingualTextValue> aliases)
Returns a new version of this document with a new list of aliases
for the given language code.
|
PropertyDocument |
withDescription(MonolingualTextValue newDescription)
Returns a new version of this document with a new description
(which overrides any existing description).
|
PropertyDocument |
withEntityId(PropertyIdValue newEntityId)
Returns a new version of this document with updated ID.
|
PropertyDocument |
withLabel(MonolingualTextValue newLabel)
Returns a new version of this document with a new label
(which overrides any existing label for this language).
|
PropertyDocument |
withoutStatementIds(Set<String> statementIds)
Returns a new version of this document where all statements matching
any of the statement ids provided have been removed.
|
PropertyDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
PropertyDocument |
withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
findDescription, getAliases, getDescriptionsfindLabel, getLabelsfindStatement, findStatement, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getStatementGroups, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValuegetRevisionIdPropertyIdValue getEntityId()
getEntityId in interface EntityDocumentDatatypeIdValue getDatatype()
DatatypeIdValuePropertyDocument withEntityId(PropertyIdValue newEntityId)
newEntityId - new ID of the documentPropertyDocument withRevisionId(long newRevisionId)
TermedDocumentwithRevisionId in interface EntityDocumentwithRevisionId in interface LabeledDocumentwithRevisionId in interface LabeledStatementDocumentwithRevisionId in interface StatementDocumentwithRevisionId in interface TermedDocumentwithRevisionId in interface TermedStatementDocumentPropertyDocument withLabel(MonolingualTextValue newLabel)
TermedDocumentwithLabel in interface LabeledDocumentwithLabel in interface LabeledStatementDocumentwithLabel in interface TermedDocumentwithLabel in interface TermedStatementDocumentPropertyDocument withDescription(MonolingualTextValue newDescription)
TermedDocumentwithDescription in interface TermedDocumentwithDescription in interface TermedStatementDocumentPropertyDocument withAliases(String language, List<MonolingualTextValue> aliases)
TermedDocumentwithAliases in interface TermedDocumentwithAliases in interface TermedStatementDocumentlanguage - the language code for which the aliases should be setaliases - the aliases to set for this language. The language codes they
contain should all match the supplied language.PropertyDocument withStatement(Statement statement)
StatementDocumentwithStatement in interface LabeledStatementDocumentwithStatement in interface StatementDocumentwithStatement in interface TermedStatementDocumentstatement - the statement to add or update in the documentPropertyDocument withoutStatementIds(Set<String> statementIds)
StatementDocumentwithoutStatementIds in interface LabeledStatementDocumentwithoutStatementIds in interface StatementDocumentwithoutStatementIds in interface TermedStatementDocumentstatementIds - the identifiers of the statements to removeCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage