Jump to content
MediaWiki

扩展:EntitySchema

From mediawiki.org
This page is a translated version of the page Extension:EntitySchema and the translation is 24% complete.
MediaWiki扩展手册
EntitySchema
发行状态: 稳定版
实现 ContentHandler , 页面操作 , 特殊页面 , API
描述 Allows to store Shape Expression Schemas on wiki pages
作者 维基数据团队
最新版本 持续更新
兼容性政策 快照跟随MediaWiki发布。 master分支不向后兼容。
MediaWiki master
数据库更改
  • $wgEntitySchemaSkippedIDs
  • $wgEntitySchemaNameBadgeMaxSizeChars
  • $wgEntitySchemaSchemaTextMaxSizeBytes
  • $wgEntitySchemaIsRepo
  • $wgEntitySchemaShExSimpleUrl
许可证 GNU General Public License 2.0 or later
下載
readme
翻译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.

Requirements

Wikibase must be installed.

安裝

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

Configuration

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

See also

此扩展在以下wiki农场/托管网站和/或软件包中提供:
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.phpInitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。

AltStyle によって変換されたページ (->オリジナル) /