Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.Snak
Packages that use Snak
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.
Serializer for RDF
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
-
Uses of Snak in org.wikidata.wdtk.datamodel.helpers
Methods in org.wikidata.wdtk.datamodel.helpers that return SnakModifier and TypeMethodDescriptionCopies aSnak
.protected Snak
StatementBuilder.getMainSnak()
Returns the mainSnak
object for the constructed statement.DatamodelConverter.visit
(NoValueSnak snak) DatamodelConverter.visit
(SomeValueSnak snak) Methods in org.wikidata.wdtk.datamodel.helpers that return types with arguments of type SnakModifier and TypeMethodDescriptionStatementBuilder.getQualifierList
(PropertyIdValue propertyIdValue) Returns the list ofSnak
objects for a given qualifier property.ReferenceBuilder.getSnakList
(PropertyIdValue propertyIdValue) Returns the list ofSnak
objects for a given property.Methods in org.wikidata.wdtk.datamodel.helpers with parameters of type SnakModifier and TypeMethodDescriptionCopies aSnak
.static Claim
Datamodel.makeClaim
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) Creates aClaim
.static Statement
Datamodel.makeStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.StatementBuilder.withQualifier
(Snak qualifier) Adds a qualifierSnak
to the constructed statement.Method parameters in org.wikidata.wdtk.datamodel.helpers with type arguments of type SnakModifier and TypeMethodDescriptionstatic SnakGroup
Datamodel.makeSnakGroup
(List<? extends Snak> snaks) Creates aSnakGroup
. -
Uses of Snak in org.wikidata.wdtk.datamodel.implementation
Classes in org.wikidata.wdtk.datamodel.implementation that implement SnakModifier and TypeClassDescriptionclass
Jackson implementation ofNoValueSnak
.class
Abstract Jackson implementation ofSnak
.class
Jackson implementation ofSomeValueSnak
.class
Jackson implementation ofValueSnak
.Methods in org.wikidata.wdtk.datamodel.implementation that return SnakModifier and TypeMethodDescriptionSnakGroupImpl.get
(int i) ClaimImpl.getMainSnak()
StatementImpl.getMainSnak()
Methods in org.wikidata.wdtk.datamodel.implementation that return types with arguments of type SnakModifier and TypeMethodDescriptionClaimImpl.getAllQualifiers()
StatementImpl.getAllQualifiers()
ReferenceImpl.getAllSnaks()
ReferenceImpl.getSnaks()
Returns the map of snaks as found in JSON.SnakGroupImpl.getSnaks()
SnakGroupImpl.iterator()
Methods in org.wikidata.wdtk.datamodel.implementation with parameters of type SnakModifier and TypeMethodDescriptionDataObjectFactoryImpl.getClaim
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) DataObjectFactoryImpl.getStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Method parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type SnakModifier and TypeMethodDescriptionDataObjectFactoryImpl.getSnakGroup
(List<? extends Snak> snaks) Construct a list ofSnakGroup
objects from a map from property ids to snak lists as found in JSON.Constructors in org.wikidata.wdtk.datamodel.implementation with parameters of type SnakModifierConstructorDescriptionClaimImpl
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) Constructor to create a claim.StatementImpl
(String statementId, Snak mainsnak, EntityIdValue subjectId) TODO review the utility of this constructor.StatementImpl
(String statementId, StatementRank rank, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, EntityIdValue subjectId) Constructor.StatementImpl
(String statementId, StatementRank rank, Snak mainSnak, Map<String, List<Snak>> qualifiers, List<String> qualifiersOrder, List<Reference> references, EntityIdValue subjectId) Constructor parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type SnakModifierConstructorDescriptionSnakGroupImpl
(List<Snak> snaks) Constructor.StatementImpl
(String statementId, StatementRank rank, Snak mainSnak, Map<String, List<Snak>> qualifiers, List<String> qualifiersOrder, List<Reference> references, EntityIdValue subjectId) -
Uses of Snak in org.wikidata.wdtk.datamodel.interfaces
Subinterfaces of Snak in org.wikidata.wdtk.datamodel.interfacesModifier and TypeInterfaceDescriptioninterface
A NoValueSnak represents the information that a given property has no value.interface
A SomeValueSnak represents the information that a given property has some value that is not speficied further.interface
ValueSnaks represent property-value pairs, where the property are represented by aPropertyIdValue
and the value is represented by aValue
.Methods in org.wikidata.wdtk.datamodel.interfaces that return SnakModifier and TypeMethodDescriptionClaim.getMainSnak()
Main Snak of the statement.Statement.getMainSnak()
Main Snak of the statement.Methods in org.wikidata.wdtk.datamodel.interfaces that return types with arguments of type SnakModifier and TypeMethodDescriptionClaim.getAllQualifiers()
Returns an iterator over all qualifiers, without considering qualifier groups.Statement.getAllQualifiers()
Returns an iterator over all qualifiers, without considering qualifier groups.Reference.getAllSnaks()
Returns an interator over all snaks, without considering snak groups.SnakGroup.getSnaks()
Get the list of Snaks of this group.Methods in org.wikidata.wdtk.datamodel.interfaces with parameters of type SnakModifier and TypeMethodDescriptionDataObjectFactory.getClaim
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers) Creates aClaim
.DataObjectFactory.getStatement
(EntityIdValue subject, Snak mainSnak, List<SnakGroup> qualifiers, List<Reference> references, StatementRank rank, String statementId) Creates aStatement
.Method parameters in org.wikidata.wdtk.datamodel.interfaces with type arguments of type SnakModifier and TypeMethodDescriptionDataObjectFactory.getSnakGroup
(List<? extends Snak> snaks) Creates aSnakGroup
. -
Uses of Snak in org.wikidata.wdtk.rdf
Methods in org.wikidata.wdtk.rdf with parameters of type SnakModifier and TypeMethodDescriptionvoid
SnakRdfConverter.writeSnak
(Snak snak, org.eclipse.rdf4j.model.Resource subject, PropertyContext propertyContext) Writes the given snak for the given subject. -
Uses of Snak in org.wikidata.wdtk.wikibaseapi
Method parameters in org.wikidata.wdtk.wikibaseapi with type arguments of type SnakModifier and TypeMethodDescriptionprotected boolean
StatementUpdate.isSameSnakSet
(Iterator<Snak> snaks1, Iterator<Snak> snaks2) Deprecated.Compares two sets of snaks, given by iterators.