This page is a translated version of the page Extension:EntitySchema and the translation is 29% complete.
MediaWiki扩展手册
EntitySchema
发行状态: 稳定版
实现 ContentHandler , 页面操作 , 特殊页面 , API
描述 Allows to store Shape Expression Schemas on wiki pages
作者 维基数据团队
最新版本 持续更新
兼容性政策 快照跟随MediaWiki发布。 master分支不向后兼容。
MediaWiki master
数据库更改
entityschema_id_counter
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
readme
  • $wgEntitySchemaSkippedIDs
  • $wgEntitySchemaNameBadgeMaxSizeChars
  • $wgEntitySchemaSchemaTextMaxSizeBytes
  • $wgEntitySchemaEnableDatatype
  • $wgEntitySchemaShExSimpleUrl
季度下載量 8 (Ranked 141st)
翻译EntitySchema扩展
問題 开启的任务 · 报告错误

The EntitySchema extension allows storing Shape Expressions Schemas on wiki pages (using ShExC syntax), as well as validating entities against those Schemas using the ShEx2 — Simple Online Validator. For more information on enabling this second part, see #Configuration.

安裝

  • 下载文件,并将其放置在您extensions/文件夹中的EntitySchema目录内。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EntitySchema
  • 只有從git安裝才运行Composer来安装PHP依赖,通过发行composer install --no-dev至扩展目录。 (参见任务T173141了解潜在问题。)
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'EntitySchema' );
    
    Configure as required.
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

Configuration

Prerequisites for displaying the optional "check entities against this Schema" link on the Schema page:

See also