Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.SnakGroup
Package
Description
Package for mostly static helper code to work with data objects.
Basic implementation for objects representing Wikibase data and related factories.
Interfaces for representing Wikibase data and related factories.
-
Uses of SnakGroup in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionCopies aSnakGroup
.static SnakGroup
Datamodel.makeSnakGroup
(List<? extends Snak> snaks) Creates aSnakGroup
.Modifier and TypeMethodDescriptionStatementBuilder.getQualifierGroups()
Returns a list ofSnakGroup
objects for the currently stored qualifiers.ReferenceBuilder.getSnakGroups()
Returns a list ofSnakGroup
objects for the currently stored snaks.Modifier and TypeMethodDescriptionCopies aSnakGroup
.static boolean
Equality.equalsSnakGroup
(SnakGroup o1, Object o2) Returnstrue
if the parameters are twoSnakGroup
objects with exactly the same data.static int
Returns a hash code for the given object.static String
Returns a human-readable string representation of the given object.StatementBuilder.withQualifiers
(SnakGroup qualifiers) Adds all qualifiers from the givenSnakGroup
to the constructed statement.Modifier and TypeMethodDescriptionstatic Claim
Datamodel.makeClaim
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) Creates aClaim
.static Reference
Datamodel.makeReference
(List<SnakGroup> snakGroups) Creates aReference
.static Statement
Datamodel.makeStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.StatementBuilder.withQualifiers
(List<SnakGroup> qualifiers) Adds all qualifiers from the given list ofSnakGroup
to the constructed statement. -
Uses of SnakGroup in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeClassDescriptionclass
Helper class to represent aSnakGroup
deserialized from JSON.Modifier and TypeMethodDescriptionClaimImpl.getQualifiers()
StatementImpl.getQualifiers()
ReferenceImpl.getSnakGroups()
Construct a list ofSnakGroup
objects from a map from property ids to snak lists as found in JSON.Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getClaim
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) DataObjectFactoryImpl.getReference
(List<SnakGroup> snakGroups) DataObjectFactoryImpl.getStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) ModifierConstructorDescriptionClaimImpl
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) Constructor to create a claim.ReferenceImpl
(List<SnakGroup> groups) Constructor.StatementImpl
(String statementId, StatementRank rank, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, EntityIdValue subjectId) Constructor. -
Uses of SnakGroup in org.wikidata.wdtk.datamodel.interfaces
Modifier and TypeMethodDescriptionDataObjectFactory.getSnakGroup
(List<? extends Snak> snaks) Creates aSnakGroup
.Modifier and TypeMethodDescriptionClaim.getQualifiers()
Groups of auxiliary Snaks, also known as qualifiers, that provide additional context information for this claim.Statement.getQualifiers()
Groups of auxiliary Snaks, also known as qualifiers, that provide additional context information for this claim.Reference.getSnakGroups()
Get the list of snak groups associated with this reference.Modifier and TypeMethodDescriptionDataObjectFactory.getClaim
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) Creates aClaim
.DataObjectFactory.getReference
(List<SnakGroup> snakGroups) Creates aReference
.DataObjectFactory.getStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.