Interface Manifest
- All Known Implementing Classes:
ManifestV1,ManifestV2
public interface Manifest
A configuration object for a Wikibase instance.
The deserialization of this object is versioned, via
ManifestParser.- Author:
- Lu Liu, Antonin Delpeuch
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe list of all entity types in use on this instance.Returns an entity or property id used in the WikibaseQualityConstraints extension.Returns the template that should be inserted in edit summaries for edits to be tracked by EditGroups.getEntityTypeSiteIri(String entityType) Gets the site IRI used for a particular entity type.The property id used to link an entity to the entity representing its type (class).intThe maximum number of edits to do per minute on this Wikibase instance.intThe recommended `maxlag` value for edits on this instance.The MediaWiki API endpoint of this Wikibase instance.getMediaWikiApiEndpoint(String entityType) Get the MediaWiki endpoint of the source Wikibase for the entity type.getName()The name of the Wikibase instance, displayed in the UI.Deprecated.getReconServiceEndpoint(String entityType) Get the reconciliation service endpoint for a given entity type supported by this Wikibase instance.The RDF serialization prefix for entities stored in this instance.The property id used to link a class to its superclasses.The tag to apply to edits made from OpenRefine.The version of the manifest object, which determines its JSON format.
-
Field Details
-
ITEM_TYPE
- See Also:
-
PROPERTY_TYPE
- See Also:
-
MEDIAINFO_TYPE
- See Also:
-
DEFAULT_MAX_EDITS_PER_MINUTE
static final int DEFAULT_MAX_EDITS_PER_MINUTE- See Also:
-
DEFAULT_TAG_TEMPLATE
- See Also:
-
-
Method Details
-
getVersion
String getVersion()The version of the manifest object, which determines its JSON format. -
getName
String getName()The name of the Wikibase instance, displayed in the UI. -
getSiteIri
String getSiteIri()The RDF serialization prefix for entities stored in this instance. -
getMaxlag
int getMaxlag()The recommended `maxlag` value for edits on this instance. -
getTagTemplate
String getTagTemplate()The tag to apply to edits made from OpenRefine. If the string contains the ${version} string, it should be replaced by the major.minor OpenRefine version. -
getMaxEditsPerMinute
int getMaxEditsPerMinute()The maximum number of edits to do per minute on this Wikibase instance. Set to zero to disable any throttling. -
getInstanceOfPid
String getInstanceOfPid()The property id used to link an entity to the entity representing its type (class). In Wikidata, this is P31 (instance of) -
getSubclassOfPid
String getSubclassOfPid()The property id used to link a class to its superclasses. In Wikidata, this is P279 (subclass of) -
getMediaWikiApiEndpoint
String getMediaWikiApiEndpoint()The MediaWiki API endpoint of this Wikibase instance. -
getReconServiceEndpoint
String getReconServiceEndpoint()Deprecated.usegetReconServiceEndpoint(String)with "item" as argumentThe reconciliation service for entities in this Wikibase instance. -
getReconServiceEndpoint
Get the reconciliation service endpoint for a given entity type supported by this Wikibase instance.- Parameters:
entityType-- Returns:
- null if there is no recon service for this entity type.
-
getMediaWikiApiEndpoint
Get the MediaWiki endpoint of the source Wikibase for the entity type. This can be different than the MediaWiki endpoint for this Wikibase instance, when federation is used.- Parameters:
entityType-- Returns:
- null if there is no recon service for this entity type.
-
getEntityTypeSiteIri
Gets the site IRI used for a particular entity type. - if the entity type is editable on this Wikibase instance, then it should be identical to the site IRI for this instance. - if the entity type is federated from another instance, then it should be the site IRI for that instance.- Parameters:
entityType-- Returns:
- null if the entity type is not supported by the Wikibase instance
-
getAvailableEntityTypes
The list of all entity types in use on this instance. -
getConstraintsRelatedId
Returns an entity or property id used in the WikibaseQualityConstraints extension.- Parameters:
name- our internal identifier for the entity id- Returns:
- the entity id
-
getEditGroupsUrlSchema
String getEditGroupsUrlSchema()Returns the template that should be inserted in edit summaries for edits to be tracked by EditGroups.
-
getReconServiceEndpoint(String)with "item" as argument