Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.SiteLink
Packages that use SiteLink
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
-
Uses of SiteLink in org.wikidata.wdtk.datamodel.helpers
Methods in org.wikidata.wdtk.datamodel.helpers that return SiteLinkModifier and TypeMethodDescriptionCopies aSiteLink
.static SiteLink
Datamodel.makeSiteLink
(String title, String siteKey) Creates aSiteLink
without badges.static SiteLink
Datamodel.makeSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Creates aSiteLink
.Methods in org.wikidata.wdtk.datamodel.helpers with parameters of type SiteLinkModifier and TypeMethodDescriptionCopies aSiteLink
.static boolean
Equality.equalsSiteLink
(SiteLink o1, Object o2) Returnstrue
if the parameters are twoSiteLink
objects with exactly the same data.static int
Returns a hash code for the given object.ItemUpdateBuilder.putSiteLink
(SiteLink link) Adds or replaces site link.static String
Returns a human-readable string representation of the given object.ItemDocumentBuilder.withSiteLink
(SiteLink siteLink) Adds an additional site link to the constructed document.Method parameters in org.wikidata.wdtk.datamodel.helpers with type arguments of type SiteLinkModifier and TypeMethodDescriptionstatic ItemDocument
Datamodel.makeItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks) Creates anItemDocument
with empty revision id.static ItemDocument
Datamodel.makeItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) Creates anItemDocument
.static ItemUpdate
Datamodel.makeItemUpdate
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Creates newItemUpdate
. -
Uses of SiteLink in org.wikidata.wdtk.datamodel.implementation
Classes in org.wikidata.wdtk.datamodel.implementation that implement SiteLinkMethods in org.wikidata.wdtk.datamodel.implementation that return SiteLinkModifier and TypeMethodDescriptionDataObjectFactoryImpl.getSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Methods in org.wikidata.wdtk.datamodel.implementation that return types with arguments of type SiteLinkModifier and TypeMethodDescriptionItemUpdateImpl.getModifiedSiteLinks()
ItemDocumentImpl.getSiteLinks()
Methods in org.wikidata.wdtk.datamodel.implementation with parameters of type SiteLinkMethod parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type SiteLinkModifier and TypeMethodDescriptionDataObjectFactoryImpl.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) DataObjectFactoryImpl.getItemUpdate
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Constructor parameters in org.wikidata.wdtk.datamodel.implementation with type arguments of type SiteLinkModifierConstructorDescriptionItemUpdateImpl
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Initializes new item update. -
Uses of SiteLink in org.wikidata.wdtk.datamodel.interfaces
Methods in org.wikidata.wdtk.datamodel.interfaces that return SiteLinkModifier and TypeMethodDescriptionDataObjectFactory.getSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Creates aSiteLink
.Methods in org.wikidata.wdtk.datamodel.interfaces that return types with arguments of type SiteLinkModifier and TypeMethodDescriptionItemUpdate.getModifiedSiteLinks()
Returns site links added or modified in this update.ItemDocument.getSiteLinks()
Get a Map of site keys toSiteLink
objects.Methods in org.wikidata.wdtk.datamodel.interfaces with parameters of type SiteLinkModifier and TypeMethodDescriptionSites.getSiteLinkUrl
(SiteLink siteLink) Returns the URL for the given site link, or null if its site key is not known.Method parameters in org.wikidata.wdtk.datamodel.interfaces with type arguments of type SiteLinkModifier and TypeMethodDescriptionDataObjectFactory.getItemDocument
(ItemIdValue itemIdValue, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, Map<String, SiteLink> siteLinks, long revisionId) Creates anItemDocument
.DataObjectFactory.getItemUpdate
(ItemIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements, Collection<SiteLink> modifiedSiteLinks, Collection<String> removedSiteLinks) Creates newItemUpdate
. -
Uses of SiteLink in org.wikidata.wdtk.rdf
Method parameters in org.wikidata.wdtk.rdf with type arguments of type SiteLinkModifier and TypeMethodDescriptionvoid
AbstractRdfConverter.writeSiteLinks
(org.eclipse.rdf4j.model.Resource subject, Map<String, SiteLink> siteLinks) void
RdfConverter.writeSiteLinks
(org.eclipse.rdf4j.model.Resource subject, Map<String, SiteLink> siteLinks)