Extensão: WikiLambda
Estado de lançamento: experimental |
|
|---|---|
| Implementação | Função do analisador, ContentHandler |
| Descrição | Fornecer às wikis da Wikimédia uma função de analisador de texto wiki para chamar a avaliação de funções escritas, geridas, e avaliadas numa wiki central. |
| Autor(es) | Wikimedia Foundation |
| Política de compatibilidade | Lançamentos de capturas de ecrã em conjunto com o MediaWiki. Original não é compatível com as versões anteriores. |
| Alterações à base de dados | Sim |
| Licença | Licença MIT |
| Transferência | |
|
|
|
|
| Traduza a extensão WikiLambda se esta estiver disponível em translatewiki.net | |
| Problemas | Tarefas em aberto · Reportar um erro |
A extensão WikiLambda fornece uma wiki para alojar as funções escritas, geridas, e avaliadas pelos utilizadores, que é utilziada para alimentar wikifunctions.org. Ela forma o núcleo da pilha de programa "Wikifunções", como parte do trabalho para a Wikipédia Abstrata. O sistema está atualmente em desenvolvimento ativo, com o front-end escrito em Vue.js e utilizando a nova biblioteca de interface de Codex. A Wikifunções via WikiLambda mais tarde fornecerá às wikis da Wikimédia uma função de analisador de texto wiki para realizar avaliações da Wikifunções na sua wiki local.
Introdução

Wikifunctions is a MediaWiki installation on which function content, but not output, is stored. This content takes the form of programmatic descriptions of each available function ("Functions"), actual user-written code for these functions ("Implementations"), test suites for these functions ("Testers"), and human-facing documentation about these functions, alongside the usual wiki community management content like village pumps, discussion areas, and policy pages.
Requests for function calls can come in directly via a Web request, or via MediaWiki (probably through a parser function like {{#wikifunction:…}}, but this is not yet decided). The function orchestrator determines the specifics of the request, checks the cache to see if the output value has been recently provided, and either returns that or proceeds to trigger an evaluation. To do that, it fetches all relevant content from the cluster, be that published function content (or mid-edit as-yet-unpublished function content being "previewed") from Wikifunctions, or structured content on which functions can operate from Wikidata and Wikimedia Commons. The complete bundle of code to execute and inputs on which to execute are then passed to the appropriate function executor, which then securely tries to execute the input and returns the output (or a failure error). The orchestrator then writes the successful result to the cache and transmits it to the consumer.
The WikiLambda extension is responsible for content management of the content on the Wikifunctions wiki (like the Wikibase Repository extension), providing editing interfaces, restricting users from or warning about certain actions, and providing a reading and test execution interface, and the integration of content requests on all Wikimedia wikis (like the Wikibase Client extension). User-written code is never executed in the context of the production environment, and thus never has access to sensitive content, but is only run in isolated, disposable instances.
Começar
Instalar
- Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado
WikiLambda, na sua pastaextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone --recurse-submodules https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiLambda
- Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-devin the extension directory. (See T173141 for potential complications.) - Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
wfLoadExtension( 'WikiLambda' );
- Execute o script de atualização que irá criar automaticamente as tabelas da base de dados necessárias para esta extensão.
Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.
Instalação dos serviços de back-end
If you wish you install the back-end services to use the WikiLambda software, you must do so and configure them. Instructions are subject to change, and so only provided within the repo.
Testar localmente
(TODO)
Administração do código
- Maintained by Abstract Wikipedia team.
- Live chat (IRC): #wikipedia-abstract-tech connect
- Issue tracker: Phabricator wikilambda (Report an issue)
Consultar também
- MediaWiki-Docker/Extension/WikiLambda
- Documentação do código:
- Para PHP
- Para JS
- Cobertura do código (PHP)
- Serviço função-avaliador
- function-orchestrator service
- Biblioteca partilhada função-esquemas
- Arquitetura da Wikipédia Abstrata
- Cábula do programador da Wikipédia Abstrata
Subpáginas
- API
- Approving Implementations and Testers
- Approving Implementations and Testers/de
- Approving Implementations and Testers/en
- Approving Implementations and Testers/ru
- Approving Implementations and Testers/uk
- CLI
- Coding Conventions
- Core objects
- Creating Objects
- Development environment
- Discovery needs
- Frontend Architecture
- Granular Edit Authorization
- Jupyter kernel proposal
- Metrics
- Metrics Implementation
- User stories
- de
- en
- examples/multiply.json
- ja
- pl
- pt
- uk
- wikilambda zlanguages table
- wikilambda zobject function join table
- wikilambda zobject join table
- wikilambda zobject label conflicts table
- wikilambda zobject labels table
- wikilambda ztester results table
| Este extensão está a ser utilizado em um ou mais projetos da Wikimedia. Isso provavelmente significa que a extensão é estável e funciona bem o suficiente para ser usada por esses sites de alto tráfego. Procure o nome desta extensão nos arquivos de configuração CommonSettings.php e InitialiseSettings.php da Wikimedia para ver onde está instalado. Uma lista completa das extensões instaladas em um determinado wiki pode ser vista na página Special:Version do wiki. |
- Experimental extensions/pt
- Parser function extensions/pt
- ContentHandler extensions/pt
- MIT licensed extensions/pt
- Extensions in Wikimedia version control/pt
- GetUserPermissionsErrors extensions/pt
- MultiContentSave extensions/pt
- NamespaceIsMovable extensions/pt
- ParserFirstCallInit extensions/pt
- HtmlPageLinkRendererEnd extensions/pt
- All extensions/pt
- Extensions requiring Composer with git/pt
- Extensions used on Wikimedia/pt
