public interface FormDocument extends StatementDocument
Modifier and Type | Method and Description |
---|---|
FormIdValue |
getEntityId()
Returns the ID of the entity that the data refers to
|
List<ItemIdValue> |
getGrammaticalFeatures()
Return the IDs of the grammatical features of the form (masculine, singular...)
|
Map<String,MonolingualTextValue> |
getRepresentations()
Return the human readable representations of the form indexed by Wikimedia language code
|
FormDocument |
withEntityId(FormIdValue newEntityId)
Returns a new version of this document with updated ID.
|
FormDocument |
withGrammaticalFeature(ItemIdValue grammaticalFeature) |
FormDocument |
withoutStatementIds(Set<String> statementIds)
Returns a new version of this document where all statements matching
any of the statement ids provided have been removed.
|
FormDocument |
withRepresentation(MonolingualTextValue representation) |
FormDocument |
withRevisionId(long newRevisionId)
Returns a copy of this document with an updated revision id.
|
FormDocument |
withStatement(Statement statement)
Returns a new version of this document which includes the
statement provided.
|
findStatement, 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, hasStatementValue
getRevisionId
FormIdValue getEntityId()
getEntityId
in interface EntityDocument
Map<String,MonolingualTextValue> getRepresentations()
List<ItemIdValue> getGrammaticalFeatures()
FormDocument withEntityId(FormIdValue newEntityId)
newEntityId
- new ID of the documentFormDocument withRevisionId(long newRevisionId)
withRevisionId
in interface EntityDocument
withRevisionId
in interface StatementDocument
FormDocument withRepresentation(MonolingualTextValue representation)
FormDocument withGrammaticalFeature(ItemIdValue grammaticalFeature)
FormDocument withStatement(Statement statement)
withStatement
in interface StatementDocument
statement
- the statement to add or update in the documentFormDocument withoutStatementIds(Set<String> statementIds)
withoutStatementIds
in interface StatementDocument
statementIds
- the identifiers of the statements to removeCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage