Update wikidata reconciliation endpoint (#4206)
This commit is contained in:
parent
94ffe4811f
commit
3bca46329c
@ -56,7 +56,7 @@ Here is the manifest of Wikidata:
|
|||||||
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
||||||
},
|
},
|
||||||
"reconciliation": {
|
"reconciliation": {
|
||||||
"endpoint": "https://wdreconcile.toolforge.org/${lang}/api"
|
"endpoint": "https://wikidata.reconci.link/${lang}/api"
|
||||||
},
|
},
|
||||||
"editgroups": {
|
"editgroups": {
|
||||||
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
||||||
@ -132,7 +132,7 @@ The Wikibase instance must have at least a reconciliation service endpoint linke
|
|||||||
|
|
||||||
##### endpoint {#endpoint}
|
##### endpoint {#endpoint}
|
||||||
|
|
||||||
The default reconciliation service endpoint of the Wikibase instance. The endpoint must contain the "${lang}" variable such as "https://wdreconcile.toolforge.org/${lang}/api", since the reconciliation service is expected to work for different languages.
|
The default reconciliation service endpoint of the Wikibase instance. The endpoint must contain the "${lang}" variable such as "https://wikidata.reconci.link/${lang}/api", since the reconciliation service is expected to work for different languages.
|
||||||
|
|
||||||
#### editgroups {#editgroups}
|
#### editgroups {#editgroups}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ WikibaseManager.getSelectedWikibaseEditGroupsURLSchema = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the default reconciliation service URL of the Wikibase,
|
* Returns the default reconciliation service URL of the Wikibase,
|
||||||
* such as "https://wdreconcile.toolforge.org/${lang}/api".
|
* such as "https://wikidata.reconci.link/${lang}/api".
|
||||||
*
|
*
|
||||||
* Notice that there is a "${lang}" variable in the URL, which should
|
* Notice that there is a "${lang}" variable in the URL, which should
|
||||||
* be replaced with the actual language code.
|
* be replaced with the actual language code.
|
||||||
|
@ -104,7 +104,7 @@ const WikibaseManifestSchemaV1 = {
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "url",
|
"format": "url",
|
||||||
"pattern": "^.*\\${lang}.*$",
|
"pattern": "^.*\\${lang}.*$",
|
||||||
"description": "The default reconciliation API endpoint of the Wikibase, the endpoint should include the language variable '${lang}', such as 'https://wdreconcile.toolforge.org/${lang}/api'"
|
"description": "The default reconciliation API endpoint of the Wikibase, the endpoint should include the language variable '${lang}', such as 'https://wikidata.reconci.link/${lang}/api'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["endpoint"]
|
"required": ["endpoint"]
|
||||||
|
@ -84,7 +84,7 @@ const WikidataManifestV1_0 = {
|
|||||||
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
||||||
},
|
},
|
||||||
"reconciliation": {
|
"reconciliation": {
|
||||||
"endpoint": "https://wdreconcile.toolforge.org/${lang}/api"
|
"endpoint": "https://wikidata.reconci.link/${lang}/api"
|
||||||
},
|
},
|
||||||
"editgroups": {
|
"editgroups": {
|
||||||
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
||||||
},
|
},
|
||||||
"reconciliation": {
|
"reconciliation": {
|
||||||
"endpoint": "https://wdreconcile.toolforge.org/${lang}/api"
|
"endpoint": "https://wikidata.reconci.link/${lang}/api"
|
||||||
},
|
},
|
||||||
"editgroups": {
|
"editgroups": {
|
||||||
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
||||||
},
|
},
|
||||||
"reconciliation": {
|
"reconciliation": {
|
||||||
"endpoint": "https://wdreconcile.toolforge.org/${lang}/api"
|
"endpoint": "https://wikidata.reconci.link/${lang}/api"
|
||||||
},
|
},
|
||||||
"editgroups": {
|
"editgroups": {
|
||||||
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
"registration_page": "https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose"
|
||||||
},
|
},
|
||||||
"reconciliation": {
|
"reconciliation": {
|
||||||
"endpoint": "https://wdreconcile.toolforge.org/${lang}/api"
|
"endpoint": "https://wikidata.reconci.link/${lang}/api"
|
||||||
},
|
},
|
||||||
"editgroups": {
|
"editgroups": {
|
||||||
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
"url_schema": "([[:toollabs:editgroups/b/OR/${batch_id}|details]])"
|
||||||
|
@ -20,7 +20,7 @@ public class ManifestV1Test {
|
|||||||
assertEquals(5, manifest.getMaxlag());
|
assertEquals(5, manifest.getMaxlag());
|
||||||
assertEquals("P31", manifest.getInstanceOfPid());
|
assertEquals("P31", manifest.getInstanceOfPid());
|
||||||
assertEquals("P279", manifest.getSubclassOfPid());
|
assertEquals("P279", manifest.getSubclassOfPid());
|
||||||
assertEquals("https://wdreconcile.toolforge.org/${lang}/api", manifest.getReconServiceEndpoint());
|
assertEquals("https://wikidata.reconci.link/${lang}/api", manifest.getReconServiceEndpoint());
|
||||||
assertEquals("P2302", manifest.getConstraintsRelatedId("property_constraint_pid"));
|
assertEquals("P2302", manifest.getConstraintsRelatedId("property_constraint_pid"));
|
||||||
assertEquals("Q19474404", manifest.getConstraintsRelatedId("single_value_constraint_qid"));
|
assertEquals("Q19474404", manifest.getConstraintsRelatedId("single_value_constraint_qid"));
|
||||||
assertEquals("([[:toollabs:editgroups/b/OR/${batch_id}|details]])", manifest.getEditGroupsUrlSchema());
|
assertEquals("([[:toollabs:editgroups/b/OR/${batch_id}|details]])", manifest.getEditGroupsUrlSchema());
|
||||||
|
@ -736,7 +736,7 @@ public class WikitextImporter extends TabularImportingParserBase {
|
|||||||
String wikiUrl = JSONUtilities.getString(options, "wikiUrl", null);
|
String wikiUrl = JSONUtilities.getString(options, "wikiUrl", null);
|
||||||
// Wikidata reconciliation endpoint, hardcoded because the user might not have it in its services
|
// Wikidata reconciliation endpoint, hardcoded because the user might not have it in its services
|
||||||
String reconUrl = JSONUtilities.getString(options, "reconService",
|
String reconUrl = JSONUtilities.getString(options, "reconService",
|
||||||
"https://wdreconcile.toolforge.org/en/api");
|
"https://wikidata.reconci.link/en/api");
|
||||||
StandardReconConfig cfg = getReconConfig(reconUrl);
|
StandardReconConfig cfg = getReconConfig(reconUrl);
|
||||||
|
|
||||||
if (wikiUrl != null) {
|
if (wikiUrl != null) {
|
||||||
|
@ -172,7 +172,7 @@ ReconciliationManager.getOrRegisterServiceFromUrl = function(url, f, silent) {
|
|||||||
|
|
||||||
ReconciliationManager.ensureDefaultServicePresent = function() {
|
ReconciliationManager.ensureDefaultServicePresent = function() {
|
||||||
var lang = $.i18n('core-recon/wd-recon-lang');
|
var lang = $.i18n('core-recon/wd-recon-lang');
|
||||||
var url = "https://wdreconcile.toolforge.org/"+lang+"/api";
|
var url = "https://wikidata.reconci.link/"+lang+"/api";
|
||||||
ReconciliationManager.getOrRegisterServiceFromUrl(url, function(service) { }, true);
|
ReconciliationManager.getOrRegisterServiceFromUrl(url, function(service) { }, true);
|
||||||
return url;
|
return url;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user