扩展:EntitySchema
![]() 發佈狀態: 穩定版本 |
|
---|---|
实现 | ContentHandler , 页面操作 , 特殊页面 , API |
描述 | Allows to store Shape Expression Schemas on wiki pages |
作者 | 维基数据团队 |
最新版本 | 持续更新 |
兼容性政策 | 快照跟随MediaWiki发布。 master分支不向後兼容。 |
MediaWiki | master |
数据库更改 | 是 |
表 | entityschema_id_counter |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | readme |
|
|
季度下載量 | 13 (Ranked 158th) |
翻譯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安裝才运行Composer来安装PHP依赖,通过发行
composer install --no-dev
至扩展目录。 (参见任务T173141了解潜在问题。) - 将下列代码放置在您的
LocalSettings.php
的底部:Configure as required.wfLoadExtension( 'EntitySchema' );
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
Configuration
Prerequisites for displaying the optional "check entities against this Schema" link on the Schema page:
- In your "LocalSettings.php", set
$wgEntitySchemaShExSimpleUrl
to a non-empty string which represents the external verification tool to use (e.g. https://tools.wmflabs.org/shex-simple/wikidata/doc/shex-simple.html). - The link is only displayed on pages where the Schema text is not empty
See also
- Schemas and WikiProject Schemas on Wikidata
此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |