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, viaManifestParser
.- Author:
- Lu Liu, Antonin Delpeuch
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_EDITS_PER_MINUTE
static String
DEFAULT_TAG_TEMPLATE
static String
ITEM_TYPE
static String
MEDIAINFO_TYPE
static String
PROPERTY_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<String>
getAvailableEntityTypes()
The list of all entity types in use on this instance.String
getConstraintsRelatedId(String name)
Returns an entity or property id used in the WikibaseQualityConstraints extension.String
getEditGroupsUrlSchema()
Returns the template that should be inserted in edit summaries for edits to be tracked by EditGroups.String
getEntityTypeSiteIri(String entityType)
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.String
getInstanceOfPid()
The property id used to link an entity to the entity representing its type (class).int
getMaxEditsPerMinute()
The maximum number of edits to do per minute on this Wikibase instance.int
getMaxlag()
The recommended `maxlag` value for edits on this instance.String
getMediaWikiApiEndpoint()
The MediaWiki API endpoint of this Wikibase instance.String
getMediaWikiApiEndpoint(String entityType)
Get the MediaWiki endpoint of the source Wikibase for the entity type.String
getName()
The name of the Wikibase instance, displayed in the UI.String
getReconServiceEndpoint()
Deprecated.usegetReconServiceEndpoint(String)
with "item" as argumentString
getReconServiceEndpoint(String entityType)
Get the reconciliation service endpoint for a given entity type supported by this Wikibase instance.String
getSiteIri()
The RDF serialization prefix for entities stored in this instance.String
getSubclassOfPid()
The property id used to link a class to its superclasses.String
getTagTemplate()
The tag to apply to edits made from OpenRefine.String
getVersion()
The version of the manifest object, which determines its JSON format.boolean
hideStructuredFieldsInMediaInfo()
Only useful for Wikibase instances to which one can upload files: this is set to true when the Wikibase instance does not support structured data in the form of MediaInfo entities.
-
-
-
Field Detail
-
ITEM_TYPE
static final String ITEM_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_TYPE
static final String PROPERTY_TYPE
- See Also:
- Constant Field Values
-
MEDIAINFO_TYPE
static final String MEDIAINFO_TYPE
- See Also:
- Constant Field Values
-
DEFAULT_MAX_EDITS_PER_MINUTE
static final int DEFAULT_MAX_EDITS_PER_MINUTE
- See Also:
- Constant Field Values
-
DEFAULT_TAG_TEMPLATE
static final String DEFAULT_TAG_TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@Deprecated String getReconServiceEndpoint()
Deprecated.usegetReconServiceEndpoint(String)
with "item" as argumentThe reconciliation service for entities in this Wikibase instance.
-
getReconServiceEndpoint
String getReconServiceEndpoint(String entityType)
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
String getMediaWikiApiEndpoint(String entityType)
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
String getEntityTypeSiteIri(String entityType)
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
List<String> getAvailableEntityTypes()
The list of all entity types in use on this instance.
-
hideStructuredFieldsInMediaInfo
boolean hideStructuredFieldsInMediaInfo()
Only useful for Wikibase instances to which one can upload files: this is set to true when the Wikibase instance does not support structured data in the form of MediaInfo entities. In this case, OpenRefine will still offer editing those files, but hide the Captions and Statements fields.
-
getConstraintsRelatedId
String getConstraintsRelatedId(String name)
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.
-
-