{
	"name": "MathSearch",
	"version": "0.2.0",
	"author": "Moritz Schubotz",
	"url": "https://www.mediawiki.org/wiki/Extension:MathSearch",
	"descriptionmsg": "mathsearch-desc",
	"license-name": "GPL-2.0-or-later",
	"callback": "MathSearchHooks::registerExtension",
	"type": "specialpage",
	"requires": {
		"MediaWiki": ">= 1.46.0",
		"extensions": {
			"Math": "*"
		}
	},
	"AutoloadClasses": {
		"MathSearchHooks": "includes/MathSearchHooks.php",
		"SpecialMathSearch": "includes/Specials/SpecialMathSearch.php",
		"SpecialMlpEval": "includes/Specials/SpecialMlpEval.php",
		"FormulaInfo": "includes/FormulaInfo.php",
		"MathObject": "includes/MathObject.php",
		"MathQueryObject": "includes/MathQueryObject.php",
		"SpecialMathDebug": "includes/Specials/SpecialMathDebug.php",
		"SpecialDisplayTopics": "includes/Specials/SpecialDisplayTopics.php",
		"ImportCsv": "includes/ImportCsv.php",
		"MathSearchUtils": "includes/MathSearchUtils.php",
		"MathSearchTerm": "includes/MathSearchTerm.php",
		"MwsDumpWriter": "includes/MwsDumpWriter.php",
		"SpecialLaTeXTranslator": "includes/Specials/SpecialLaTeXTranslator.php",
		"LaTeXTranslator": "includes/LaTeXTranslator.php",
		"SpecialUploadResult": "includes/Specials/SpecialUploadResult.php",
		"SpecialMathDownloadResult": "includes/Specials/SpecialMathDownloadResult.php",
		"MathoidDriver": "includes/MathoidDriver.php",
		"MathosphereDriver": "includes/MathosphereDriver.php",
		"MathIdGenerator": "includes/MathIdGenerator.php",
		"MathHighlighter": "includes/MathHighlighter.php",
		"MlpEvalForm": "includes/MlpEvalForm.php",
		"WikidataDriver": "includes/WikidataDriver.php"
	},
	"AvailableRights": [
		"mathwmcsubmit"
	],
	"ExtensionMessagesFiles": {
		"MathSearchAlias": "MathSearch.alias.php"
	},
	"GroupPermissions": {
		"sysop": {
			"mathwmcsubmit": true
		}
	},
	"HookHandlers": {
		"main": {
			"class": "MathSearchHooks",
			"services": [
				"ConnectionProvider"
			]
		},
		"WikibaseChangeNotification": {
			"class": "MediaWiki\\Extension\\MathSearch\\Wikidata\\ChangeNotificationHook",
			"services": [
				"MainConfig",
				"JobQueueGroup"
			]
		},
		"EditFilterMergedContent": {
			"class": "MediaWiki\\Extension\\MathSearch\\Wikidata\\ProtectUpstreamEntitiesHook",
			"services": [
				"MainConfig"
			]
		}
	},
	"Hooks": {
		"LoadExtensionSchemaUpdates": "MathSearchHooks::onLoadExtensionSchemaUpdates",
		"MathFormulaPostRenderRevision": "main",
		"PageDeleteComplete": "main",
		"PageUndeleteComplete": "main",
		"ParserBeforeInternalParse": "main",
		"PageSaveComplete": "main",
		"ParserFirstCallInit": "main",
		"WikibaseClientDataTypes": [
			"MediaWiki\\Extension\\MathSearch\\Wikidata\\Content\\ContentMathWikidataHook::onWikibaseClientDataTypes",
			"MediaWiki\\Extension\\MathSearch\\Wikidata\\MathML\\MathMLWikidataHook::onWikibaseClientDataTypes"
		],
		"WikibaseRepoDataTypes": [
			"MediaWiki\\Extension\\MathSearch\\Wikidata\\Content\\ContentMathWikidataHook::onWikibaseRepoDataTypes",
			"MediaWiki\\Extension\\MathSearch\\Wikidata\\MathML\\MathMLWikidataHook::onWikibaseRepoDataTypes"
		],
		"EditFilterMergedContent": "EditFilterMergedContent",
		"WikibaseChangeNotification": "WikibaseChangeNotification"
	},
	"config": {
		"MathDebug": {
			"value": false
		},
		"MathDefaultLaTeXMLSetting": {
			"value": {
				"format": "xhtml",
				"whatsin": "math",
				"whatsout": "math",
				"0": "pmml",
				"1": "cmml",
				"2": "mathtex",
				"3": "nodefaultresources",
				"preload": [
					"LaTeX.pool",
					"article.cls",
					"amsmath.sty",
					"amsthm.sty",
					"amstext.sty",
					"amssymb.sty",
					"eucal.sty",
					"[dvipsnames]xcolor.sty",
					"url.sty",
					"hyperref.sty",
					"[ids]latexml.sty",
					"texvc"
				],
				"linelength": 90
			}
		},
		"MathLaTeXMLTimeout": {
			"value": 240
		},
		"MathLaTeXMLUrl": {
			"value": "https://latexml.formulasearchengine.com/convert"
		},
		"MathMathMLUrl": {
			"value": "https://mathoid-beta.wmflabs.org"
		},
		"MathSearchBaseXBackendUrl": {
			"value": "http://localhost:8080/rest"
		},
		"MathSearchBaseXDatabaseName": {
			"value": "mathsearch"
		},
		"MathSearchBaseXRequestOptions": {
			"value": {
				"timeout": 60,
				"username": "admin",
				"password": "admin"
			}
		},
		"MathSearchBaseXRequestOptionsReadonly": {
			"value": {
				"timeout": 60,
				"username": "test",
				"password": "test"
			}
		},
		"MathSearchTranslationUrl": {
			"value": "http://vmext-demo.wmflabs.org/math/translation"
		},
		"MathUpdateObservations": {
			"value": false
		},
		"MathUploadEnabled": {
			"value": false
		},
		"MathWmcMaxResults": {
			"value": 10000
		},
		"MathWmcServer": {
			"value": false
		},
		"MathSearchWikidataUrl": {
			"value": "https://wikidata.org"
		},
		"MathSearchMinimumEditableIds": {
			"description": "Minimum editable entity IDs by entity prefix. Use 0 to disable protection for a prefix. Only P (properties) and Q (items) are checked; other prefixes such as lexemes are ignored for forward compatibility. Protected low-numbered entities are intended to stay as cached upstream copies for resilience when the upstream Wikibase is unavailable.",
			"value": {
				"P": 0,
				"Q": 0
			}
		},
		"ContentMathEnableWikibaseDataType": {
			"value": true
		},
		"MathSearchMathMLSchema": {
			"description": "RELAX NG schema that MathML from users, such as the MathML data type, has to match. It must not allow anything that can run script, such as event handlers, links or HTML. The default is MathML Core plus the parts of full MathML that MaRDI uses, minus those.",
			"value": "schema/mathml-mardi.rng",
			"path": true
		},
		"MathSearchContentTexMaxLength": {
			"description": "Maximum length of the TeX input of the Wikibase data types of MathSearch. The longest valid formula in Wikimedia projects has about 10,700 characters.",
			"value": 20000
		},
		"MathSearchInfoPage": {
			"value": "FormulaInfo"
		},
		"MathSearchLinkToInfoPage": {
			"value": false
		},
		"MathSearchImporterUrl": {
			"value": "http://importer"
		},
		"MathSearchPropertySwhid": {
			"value": "P1454"
		},
		"MathSearchPropertyDoi": {
			"value": "P27"
		},
		"MathSearchPropertyScrUrl": {
			"value": "P339"
		},
		"MathSearchPropertyPointInTime": {
			"value": "P140"
		},
		"MathSearchPropertyProfileType": {
			"value": "P1460"
		},
		"MathSearchPropertyIpfs": {
			"value": "P1633"
		},
		"MathSearchMode": {
			"value": "latexml"
		},
		"MathProfileQueries": {
			"value": {
				"person": "?item wdt:P31 wd:Q57162",
				"formula": "?item wdt:P31 wd:Q1025939",
				"publication": "?item wdt:P1451 ?zblno",
				"software": "?item wdt:P13 ?swmathID"
			}
		},
		"MathOpenAlexQIdMap": {
			"value": {
				"prime_landing_page_url": "P205",
				"best_landing_page_url": "P205",
				"best_pdf_url": "P205",
				"doi": "P27",
				"document": "P1451",
				"openalex_id": "P388",
				"openalex_title": "P159"
			}
		},
		"MathString2QMap": {
			"value": {
				"P1460": {
					"academic_discipline": "Q6534268",
					"algorithm": "Q6503323",
					"community": "Q6205095",
					"concept": "Q7283889",
					"dataset": "Q5984635",
					"formula": "Q5981696",
					"model": "Q6534270",
					"person": "Q5976445",
					"publication": "Q5976449",
					"quantity": "Q6534271",
					"research_field": "Q6534268",
					"research_problem": "Q6534269",
					"service": "Q6503324",
					"software": "Q5976450",
					"task": "Q6534272",
					"theorem": "Q6534201",
					"workflow": "Q6534216"
				},
				"P31": {
					"chapter": "Q56552",
					"definition": "Q6775803",
					"eqnarray": "Q6481152",
					"equation": "Q6481152",
					"example": "Q6775866",
					"exercise": "Q6775867",
					"lemma": "Q6481077",
					"part": "Q56943",
					"proposition": "Q6775804",
					"remark": "Q6775863",
					"remarks": "Q6775863",
					"section": "Q56939",
					"situation": "Q6775864",
					"subsection": "Q6775865",
					"theorem": "Q6480559"
				}
			}
		},
		"MathIntentsQIdMap": {
			"value": {
				"characters": "P233",
				"concept": "P1511",
				"arity": "P1515",
				"mathml": "P1455",
				"urls": "P1690",
				"property": "P1883",
				"area": "P1882"
			}
		}
	},
	"MessagesDirs": {
		"MathSearch": [
			"i18n"
		]
	},
	"ResourceModules": {
		"ext.mathsearch.styles": {
			"styles": "ext.mathsearch.css",
			"targets": [
				"desktop",
				"mobile"
			]
		},
		"ext.math-svg.styles": {
			"styles": "ext.math-svg.css",
			"targets": [
				"desktop",
				"mobile"
			]
		},
		"ext.math-mathml.styles": {
			"styles": "ext.math-mathml.css",
			"targets": [
				"desktop",
				"mobile"
			]
		}
	},
	"ResourceFileModulePaths": {
		"localBasePath": "resources",
		"remoteExtPath": "MathSearch/resources"
	},
	"SpecialPages": {
		"MathSearch": {
			"class": "SpecialMathSearch",
			"services": [
				"RevisionLookup"
			]
		},
		"MlpEval": {
			"class": "SpecialMlpEval",
			"services": [
				"ConnectionProvider",
				"Math.RendererFactory",
				"ParserFactory",
				"RevisionLookup",
				"SpecialPageFactory",
				"UserOptionsManager"
			]
		},
		"FormulaInfo": {
			"class": "FormulaInfo",
			"services": [
				"Math.Config",
				"Math.RendererFactory",
				"RevisionLookup"
			]
		},
		"GetEquationsByQuery": {
			"class": "\\MediaWiki\\Extension\\MathSearch\\Specials\\GetEquationsByQuery",
			"services": [
				"ConnectionProvider",
				"Math.RendererFactory"
			]
		},
		"ImportFromPid": {
			"class": "\\MediaWiki\\Extension\\MathSearch\\Specials\\SpecialImport",
			"services": [
				"HttpRequestFactory",
				"MainConfig"
			]
		},
		"MathDebug": {
			"class": "SpecialMathDebug",
			"services": [
				"HttpRequestFactory",
				"Math.RendererFactory",
				"ExtensionRegistry"
			]
		},
		"MathIndex": {
			"class": "\\MediaWiki\\Extension\\MathSearch\\Specials\\SpecialMathIndex",
			"services": [
				"JobQueueGroup"
			]
		},
		"DisplayTopics": {
			"class": "SpecialDisplayTopics",
			"services": [
				"ConnectionProvider"
			]
		},
		"LaTeXTranslator": {
			"class": "SpecialLaTeXTranslator",
			"services": [
				"HttpRequestFactory",
				"MainWANObjectCache",
				"RevisionLookup"
			]
		},
		"MathUpload": {
			"class": "SpecialUploadResult",
			"services": [
				"ConnectionProvider",
				"Math.RendererFactory",
				"RevisionLookup"
			]
		},
		"MathDownload": {
			"class": "SpecialMathDownloadResult",
			"services": [
				"ConnectionProvider",
				"Math.RendererFactory",
				"RevisionLookup"
			]
		},
		"QuickSparqlStatements": {
			"class": "\\MediaWiki\\Extension\\MathSearch\\Specials\\SpecialQuickSparqlStatements",
			"services": [
				"LanguageNameUtils",
				"WikiPageFactory"
			]
		},
		"PidRedirect": "\\MediaWiki\\Extension\\MathSearch\\Specials\\SpecialPidRedirect"
	},
	"AutoloadNamespaces": {
		"MediaWiki\\Extension\\MathSearch\\": "includes/"
	},
	"TestAutoloadClasses": {
		"MediaWiki\\Extension\\MathSearch\\Tests\\WikiTexVC\\MMLComparator": "tests/phpunit/integration/WikiTexVC/MMLComparator.php",
		"MediaWiki\\Extension\\MathSearch\\Tests\\WikiTexVC\\XMLNode": "tests/phpunit/integration/WikiTexVC/XMLNode.php"
	},
	"JobClasses": {
		"SeLineReader": "\\MathSearch\\StackExchange\\LineReaderJob",
		"CreateProfilePages": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\PageCreation",
		"SetProfileType": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\SetProfileType",
		"OpenAlex": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\OpenAlex",
		"MathMLIntents": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\MathMLIntents",
		"NormalizeDoi": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\NormalizeDoi",
		"FetchIdsFromWd": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\FetchIdsFromWd",
		"QuickStatements": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\QuickStatements",
		"Recommendation": "\\MediaWiki\\Extension\\MathSearch\\Graph\\Job\\Recommendation"
	},
	"RestRoutes": [
		{
			"path": "/math/v0/arq/getPost/{fId}",
			"method": "GET",
			"class": "\\MediaWiki\\Extension\\MathSearch\\Rest\\ArqTask\\GetPostId",
			"services": [
				"DBLoadBalancer"
			]
		},
		{
			"path": "/math/v0/render/{format}/{hash}",
			"method": "GET",
			"class": "\\MediaWiki\\Extension\\MathSearch\\Rest\\Render",
			"services": [
				"MathSearch.FormulaStore",
				"Math.RendererFactory"
			]
		},
		{
			"path": "/math/v0/check/{type}",
			"method": "POST",
			"class": "\\MediaWiki\\Extension\\MathSearch\\Rest\\Check",
			"services": [
				"Math.CheckerFactory",
				"MathSearch.FormulaStore"
			]
		},
		{
			"path": "/math/v0/formula/{hash}",
			"method": "GET",
			"class": "\\MediaWiki\\Extension\\MathSearch\\Rest\\Formula",
			"services": [
				"MathSearch.FormulaStore"
			]
		}
	],
	"manifest_version": 2,
	"ServiceWiringFiles": [
		"includes/ServiceWiring.php"
	]
}
