Uses of Class
org.wikidata.wdtk.datamodel.helpers.StatementBuilder
Packages that use StatementBuilder
Package
Description
Package for mostly static helper code to work with data objects.
-
Uses of StatementBuilder in org.wikidata.wdtk.datamodel.helpers
Methods in org.wikidata.wdtk.datamodel.helpers that return StatementBuilderModifier and TypeMethodDescriptionstatic StatementBuilderStatementBuilder.forSubjectAndProperty(EntityIdValue subject, PropertyIdValue property) Starts the construction of aStatementwith the given subject.protected StatementBuilderStatementBuilder.getThis()Sets the id for the constructed statement.StatementBuilder.withNoValue()Sets the main snak of the statement to be a {NoValueSnak.StatementBuilder.withQualifier(Snak qualifier) Adds a qualifierSnakto the constructed statement.StatementBuilder.withQualifierNoValue(PropertyIdValue propertyIdValue) Adds aNoValueSnakqualifier with the given property to the constructed statement.StatementBuilder.withQualifiers(List<SnakGroup> qualifiers) Adds all qualifiers from the given list ofSnakGroupto the constructed statement.StatementBuilder.withQualifiers(SnakGroup qualifiers) Adds all qualifiers from the givenSnakGroupto the constructed statement.StatementBuilder.withQualifierSomeValue(PropertyIdValue propertyIdValue) Adds aSomeValueSnakqualifier with the given property to the constructed statement.StatementBuilder.withQualifierValue(PropertyIdValue propertyIdValue, Value value) Adds a qualifier with the given property and value to the constructed statement.StatementBuilder.withRank(StatementRank rank) Sets the rank for the constructed statement.StatementBuilder.withReference(Reference reference) Adds a reference to the constructed statement.StatementBuilder.withReferences(List<? extends Reference> references) Adds a list of references to the constructed statement.StatementBuilder.withSomeValue()Sets the main snak of the statement to be a {SomeValueSnak.Sets the main value for the constructed statement.