RandomSec/extensions/wikidata/tests/data/langcode/wikidata-monolingualtext-langcode.json

2 lines
11 KiB
JSON
Raw Normal View History

Extend Wikidata extension to support arbitrary Wikibase instances (#2810) Closes #1640. All Wikibase-dependent parameters, which were previously hard-coded for Wikidata, are now described in a JSON manifest. The manifest is currently constructed by hand, but, in the future, will hopefully be published by each Wikibase instance at a standard location. * setup the manifest framework * add dependency mechanism to scrutinizers & update tests * add json creators to constraint entities * adapt the backend (units tests are to be updated) * remove the call to prepareDependencies() in the constructor * update code according to review feedback * update scrutinizers tests * fix typo & update ConstraintsV1 * log if a scrutinizer is skipped * update versioning handling in the backend * correct the order of "actual" and "expected" for assertEquals method * use regex to check manifest versions * 1. add wikibase-manager.js, wikibase-dialog.js, etc. 2. move dialog/schema-alignment-dialog.js -> schema-alignment.js 3. remove unused schema-alignment-dialog.html 4. change most mentions of "Wikidata" to "Wikibase" * support saving cookies for different Wikibases & fix LoginCommandTest * fix schema related tests * removed unused WikibaseCredentials * include MediaWiki API endpoint in the schema * fetch language codes for different Wikibases * fix lgtm-bot alerts * keep a connection map (MediaWiki API endpoint => Connection) in ConnectionManager * simplify the constraint configurations of the manifest and remove lots of unnecessary code. * add slash to the end of mediawiki.root * add manifest schema and use ajv to validate the manifest * remove JSONP support (Wikibase manifest host should support CORS) * save manifests on manifest update * add unit tests for Manifest * include the exception in logger.error() method to make it easier to debug * include the message of ManifestException when calling respondError * test multiple connections * test no manifest & test invalid manifest * adapt manage-account-dialog.js to support multiple Wikibase connections * update instance/subclass of related translations * beautify import-schema-dialog.html * use "${lang}" variable in the reconciliation service endpoint of the manifest * adapt schema-alignment.js after introducing "${lang}" variable in the reconciliation service endpoint * use WikibaseManager.getSelectedWikibaseApi() in SchemaAlignment._getPropertyType * replace more mentions of "Wikidata" to "Wikibase" * use WikibaseManager.getSelectedWikibaseApi() in previewrenderer.js * support fetching language codes of different Wikibases in the frontend * skip EditInspector if missing 'property_constraint_pid' in the manifest * improve unit tests for fetching lang codes * skip scrutinizers depending on fetcher if 'property_constraint_pid' is missing in the manifest * make sure the schema alignment panel is set up before rendering * fix preview bug * add getters of "instance of" and "subclass of" to the Manifest interface and use them in NewItemScrutinizer * fix hardcode for Wikidata in WbItemVariable * rename 'entity_prefix' to 'site_iri' and move it from 'manifest.wikibase.properties' to 'manifest.wikibase' * include oauth configurations in the manifest & support logging in with owner-only consumer for Wikibases with the OAuth extension * correct schema fallback logic * select default wikibase according to the saved schema * include maxlag in the manifest * [backend] move maxlag setting from preferences to request parameter * support setting maxlag when uploading edits * rename "Manage Wikibase" to "Select Wikibase instance" and localize it * fix manifest updating bug * include EditGroups in the manifest * add the reconciliation service from the manifest to standard services if it's not present yet when adding a new manifest * update according to review feedback 1. use inherited color variable 2. rename 'gridwroks' to 'openrefine' 3. remove unnecessary 'async: true' 4. add 'format: url' validation to urls to the schema * rename 'wikibasePrefix' to 'siteIri'
2020-08-22 17:58:56 +02:00
{"batchcomplete":"","query":{"wbcontentlanguages":{"aa":{"code":"aa"},"ab":{"code":"ab"},"abs":{"code":"abs"},"ace":{"code":"ace"},"ady":{"code":"ady"},"ady-cyrl":{"code":"ady-cyrl"},"aeb":{"code":"aeb"},"aeb-arab":{"code":"aeb-arab"},"aeb-latn":{"code":"aeb-latn"},"af":{"code":"af"},"ak":{"code":"ak"},"aln":{"code":"aln"},"als":{"code":"als"},"alt":{"code":"alt"},"am":{"code":"am"},"ami":{"code":"ami"},"an":{"code":"an"},"ang":{"code":"ang"},"anp":{"code":"anp"},"ar":{"code":"ar"},"arc":{"code":"arc"},"arn":{"code":"arn"},"arq":{"code":"arq"},"ary":{"code":"ary"},"arz":{"code":"arz"},"as":{"code":"as"},"ase":{"code":"ase"},"ast":{"code":"ast"},"atj":{"code":"atj"},"av":{"code":"av"},"avk":{"code":"avk"},"awa":{"code":"awa"},"ay":{"code":"ay"},"az":{"code":"az"},"azb":{"code":"azb"},"ba":{"code":"ba"},"ban":{"code":"ban"},"bar":{"code":"bar"},"bbc":{"code":"bbc"},"bbc-latn":{"code":"bbc-latn"},"bcc":{"code":"bcc"},"bcl":{"code":"bcl"},"be":{"code":"be"},"be-tarask":{"code":"be-tarask"},"bg":{"code":"bg"},"bgn":{"code":"bgn"},"bh":{"code":"bh"},"bho":{"code":"bho"},"bi":{"code":"bi"},"bjn":{"code":"bjn"},"bm":{"code":"bm"},"bn":{"code":"bn"},"bo":{"code":"bo"},"bpy":{"code":"bpy"},"bqi":{"code":"bqi"},"br":{"code":"br"},"brh":{"code":"brh"},"bs":{"code":"bs"},"btm":{"code":"btm"},"bto":{"code":"bto"},"bug":{"code":"bug"},"bxr":{"code":"bxr"},"ca":{"code":"ca"},"cbk-zam":{"code":"cbk-zam"},"cdo":{"code":"cdo"},"ce":{"code":"ce"},"ceb":{"code":"ceb"},"ch":{"code":"ch"},"cho":{"code":"cho"},"chr":{"code":"chr"},"chy":{"code":"chy"},"ckb":{"code":"ckb"},"co":{"code":"co"},"cps":{"code":"cps"},"cr":{"code":"cr"},"crh":{"code":"crh"},"crh-cyrl":{"code":"crh-cyrl"},"crh-latn":{"code":"crh-latn"},"cs":{"code":"cs"},"csb":{"code":"csb"},"cu":{"code":"cu"},"cv":{"code":"cv"},"cy":{"code":"cy"},"da":{"code":"da"},"de":{"code":"de"},"de-at":{"code":"de-at"},"de-ch":{"code":"de-ch"},"din":{"code":"din"},"diq":{"code":"diq"},"dsb":{"code":"dsb"},"dtp":{"code":"dtp"},"dty":{"code":"dty"},"dv":{"code":"dv"},"dz":{"code":"dz"},"ee":{"code":"ee"},"egl":{"code":"egl"},"el":{"code":"el"},"eml":{"code":"eml"},"en":{"code":"en"},"en-ca":{"code":"en-ca"},"en-gb":{"code":"en-gb"},"eo":{"code":"eo"},"es":{"code":"es"},"es-419":{"code":"es-419"},"et":{"code":"et"},"eu":{"code":"eu"},"ext":{"code":"ext"},"fa":{"code":"fa"},"ff":{"code":"ff"},"fi":{"code":"fi"},"fit":{"code":"fit"},"fj":{"code":"fj"},"fkv":{"code":"fkv"},"fo":{"code":"fo"},"fr":{"code":"fr"},"frc":{"code":"frc"},"frp":{"code":"frp"},"frr":{"code":"frr"},"fur":{"code":"fur"},"fy":{"code":"fy"},"ga":{"code":"ga"},"gag":{"code":"gag"},"gan":{"code":"gan"},"gan-hans":{"code":"gan-hans"},"gan-hant":{"code":"gan-hant"},"gcr":{"code":"gcr"},"gd":{"code":"gd"},"gl":{"code":"gl"},"glk":{"code":"glk"},"gn":{"code":"gn"},"gom":{"code":"gom"},"gom-deva":{"code":"gom-deva"},"gom-latn":{"code":"gom-latn"},"gor":{"code":"gor"},"got":{"code":"got"},"grc":{"code":"grc"},"gsw":{"code":"gsw"},"gu":{"code":"gu"},"gv":{"code":"gv"},"ha":{"code":"ha"},"hak":{"code":"hak"},"haw":{"code":"haw"},"he":{"code":"he"},"hi":{"code":"hi"},"hif":{"code":"hif"},"hif-latn":{"code":"hif-latn"},"hil":{"code":"hil"},"ho":{"code":"ho"},"hr":{"code":"hr"},"hrx":{"code":"hrx"},"hsb":{"code":"hsb"},"ht":{"code":"ht"},"hu":{"code":"hu"},"hy":{"code":"hy"},"hyw":{"code":"hyw"},"hz":{"code":"hz"},"ia":{"code":"ia"},"id":{"code":"id"},"ie":{"code":"ie"},"ig":{"code":"ig"},"ii":{"code":"ii"},"ik":{"code":"ik"},"ike-cans":{"code":"ike-cans"},"ike-latn":{"code":"ike-latn"},"ilo":{"code":"ilo"},"inh":{"code":"inh"},"io":{"code":"io"},"is":{"code":"is"},"it":{"code":"it"},"iu":{"code":"iu"},"ja":{"code":"ja"},"jam":{"code":"jam"},"jbo":{"code":"jbo"},"jut":{"code":"jut"},"jv":{"code":"jv"},"ka":{"code":"ka"},"kaa":{"code":"kaa"},"kab":{"code":"kab"},"kbd":{"code":"kbd"},"kbd-cyrl":{"code":"kbd-cyrl"},"kbp":{"code":"kbp"},"kea":{"code":"kea"},"kg":{"code":"kg"},"khw":{"code":"khw"},"ki":{"code":"ki"},"kiu":{"code":"kiu"},"kj":{"code":"kj"},"kjp":{"code":"kjp"},"kk":{"code":"kk"},"kk-arab":{"code":"kk-arab"},"kk-cn":{"code":"kk-cn"}