Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.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
Modifier and TypeMethodDescriptionCopies aSnak
.protected Snak
StatementBuilder.getMainSnak()
Returns the mainSnak
object for the constructed statement.DatamodelConverter.visit
(NoValueSnak snak) DatamodelConverter.visit
(SomeValueSnak snak) Modifier 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.Modifier 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.Modifier and TypeMethodDescriptionstatic SnakGroup
Datamodel.makeSnakGroup
(List<? extends Snak> snaks) Creates aSnakGroup
. -
Uses of Snak in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeClassDescriptionclass
Jackson implementation ofNoValueSnak
.class
Abstract Jackson implementation ofSnak
.class
Jackson implementation ofSomeValueSnak
.class
Jackson implementation ofValueSnak
.Modifier and TypeMethodDescriptionSnakGroupImpl.get
(int i) ClaimImpl.getMainSnak()
StatementImpl.getMainSnak()
Modifier and TypeMethodDescriptionClaimImpl.getAllQualifiers()
StatementImpl.getAllQualifiers()
ReferenceImpl.getAllSnaks()
ReferenceImpl.getSnaks()
Returns the map of snaks as found in JSON.SnakGroupImpl.getSnaks()
SnakGroupImpl.iterator()
Modifier 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) Modifier 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.ModifierConstructorDescriptionClaimImpl
(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) ModifierConstructorDescriptionSnakGroupImpl
(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
Modifier 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
.Modifier and TypeMethodDescriptionClaim.getMainSnak()
Main Snak of the statement.Statement.getMainSnak()
Main Snak of the statement.Modifier 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.Modifier 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
.Modifier and TypeMethodDescriptionDataObjectFactory.getSnakGroup
(List<? extends Snak> snaks) Creates aSnakGroup
. -
Uses of Snak in org.wikidata.wdtk.rdf
Modifier 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
Modifier and TypeMethodDescriptionprotected boolean
StatementUpdate.isSameSnakSet
(Iterator<Snak> snaks1, Iterator<Snak> snaks2) Deprecated.Compares two sets of snaks, given by iterators.