Class ManifestV1
java.lang.Object
org.openrefine.wikidata.manifests.ManifestV1
- All Implemented Interfaces:
Manifest
-
Field Summary
Fields inherited from interface org.openrefine.wikidata.manifests.Manifest
DEFAULT_MAX_EDITS_PER_MINUTE, DEFAULT_TAG_TEMPLATE, ITEM_TYPE, MEDIAINFO_TYPE, PROPERTY_TYPE -
Constructor Summary
Constructors -
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.The reconciliation service for entities in this Wikibase instance.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.
-
Constructor Details
-
ManifestV1
public ManifestV1(com.fasterxml.jackson.databind.JsonNode manifest)
-
-
Method Details
-
getVersion
Description copied from interface:ManifestThe version of the manifest object, which determines its JSON format.- Specified by:
getVersionin interfaceManifest
-
getName
Description copied from interface:ManifestThe name of the Wikibase instance, displayed in the UI. -
getSiteIri
Description copied from interface:ManifestThe RDF serialization prefix for entities stored in this instance.- Specified by:
getSiteIriin interfaceManifest
-
getMaxlag
public int getMaxlag()Description copied from interface:ManifestThe recommended `maxlag` value for edits on this instance. -
getInstanceOfPid
Description copied from interface:ManifestThe property id used to link an entity to the entity representing its type (class). In Wikidata, this is P31 (instance of)- Specified by:
getInstanceOfPidin interfaceManifest
-
getSubclassOfPid
Description copied from interface:ManifestThe property id used to link a class to its superclasses. In Wikidata, this is P279 (subclass of)- Specified by:
getSubclassOfPidin interfaceManifest
-
getMediaWikiApiEndpoint
Description copied from interface:ManifestThe MediaWiki API endpoint of this Wikibase instance.- Specified by:
getMediaWikiApiEndpointin interfaceManifest
-
getReconServiceEndpoint
Description copied from interface:ManifestThe reconciliation service for entities in this Wikibase instance.- Specified by:
getReconServiceEndpointin interfaceManifest
-
getConstraintsRelatedId
Description copied from interface:ManifestReturns an entity or property id used in the WikibaseQualityConstraints extension.- Specified by:
getConstraintsRelatedIdin interfaceManifest- Parameters:
name- our internal identifier for the entity id- Returns:
- the entity id
-
getEditGroupsUrlSchema
Description copied from interface:ManifestReturns the template that should be inserted in edit summaries for edits to be tracked by EditGroups.- Specified by:
getEditGroupsUrlSchemain interfaceManifest
-
getReconServiceEndpoint
Description copied from interface:ManifestGet the reconciliation service endpoint for a given entity type supported by this Wikibase instance.- Specified by:
getReconServiceEndpointin interfaceManifest- Returns:
- null if there is no recon service for this entity type.
-
getEntityTypeSiteIri
Description copied from interface:ManifestGets 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.- Specified by:
getEntityTypeSiteIriin interfaceManifest- Returns:
- null if the entity type is not supported by the Wikibase instance
-
getMediaWikiApiEndpoint
Description copied from interface:ManifestGet 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.- Specified by:
getMediaWikiApiEndpointin interfaceManifest- Returns:
- null if there is no recon service for this entity type.
-
getAvailableEntityTypes
Description copied from interface:ManifestThe list of all entity types in use on this instance.- Specified by:
getAvailableEntityTypesin interfaceManifest
-
getTagTemplate
Description copied from interface:ManifestThe 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.- Specified by:
getTagTemplatein interfaceManifest
-
getMaxEditsPerMinute
public int getMaxEditsPerMinute()Description copied from interface:ManifestThe maximum number of edits to do per minute on this Wikibase instance. Set to zero to disable any throttling.- Specified by:
getMaxEditsPerMinutein interfaceManifest
-