Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.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
Modifier 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
.Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Modifier and TypeMethodDescriptionItemUpdateImpl.getModifiedSiteLinks()
ItemDocumentImpl.getSiteLinks()
Modifier 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) ModifierConstructorDescriptionItemUpdateImpl
(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
Modifier and TypeMethodDescriptionDataObjectFactory.getSiteLink
(String title, String siteKey, List<ItemIdValue> badges) Creates aSiteLink
.Modifier and TypeMethodDescriptionItemUpdate.getModifiedSiteLinks()
Returns site links added or modified in this update.ItemDocument.getSiteLinks()
Get a Map of site keys toSiteLink
objects.Modifier and TypeMethodDescriptionSites.getSiteLinkUrl
(SiteLink siteLink) Returns the URL for the given site link, or null if its site key is not known.Modifier 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
Modifier 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)