Extension:EntitySchema
![]() وضعیت انتشار: پایدار |
|
---|---|
انجام | ContentHandler , Page action , Special page , API |
توضیحات | Allows to store Shape Expression Schemas on wiki pages |
نویسنده(گان) | تیم ویکیداده |
آخرین نسخه: | بهروزرسانیهای پیوسته |
سیاست سازگاری | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | master |
تغییر پایگاه داده | بله |
جدولها | entityschema_id_counter |
مجوز | GNU General Public License 2.0 or later |
بارگیری | readme |
|
|
Quarterly downloads | 10 (Ranked 160th) |
Translate the EntitySchema extension | |
Issues | Open tasks · گزارش یک مشکل |
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.
نصب
- Download and place the file(s) in a directory called
EntitySchema
in yourextensions/
folder. - Only when installing from Git, run Composer to install PHP dependencies, by issuing
composer install --no-dev
in the extension directory. (See وظیفه T173141 for potential complications.) - کد زیر را در انتهای $LocalSettings خودتان اضافه کنید: براساس نیاز پیکربندی کنید.
wfLoadExtension( 'EntitySchema' );
- انجام شد – به 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 ویکیمدیا بگردید تا جایی که آنها نصب شده را ببینید. یک فهرست کامل از افزونهها نصبشده روی یک ویکی مشخص را میتوان در صفحۀ Special:Version دید. |