Extension:EntitySchema

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎português do Brasil • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
EntitySchema
Release status: beta
Implementation ContentHandler, Page action, Special page, API
Description Store Shape Expression Schemas on wiki pages
Author(s) The Wikidata team
Latest version continuous updates
MediaWiki master
Database changes Yes
License GNU General Public License 2.0 or later
Download
readme
Parameters
  • $wgEntitySchemaShExSimpleUrl
Hooks used
SkinTemplateNavigation
LoadExtensionSchemaUpdates
ExtensionTypes
BeforeDisplayNoArticleText
PageHistoryLineEnding
FormatAutocomments
ContentModelCanBeUsedOn
ImportHandleRevisionXMLTag
NamespaceIsMovable
TitleGetRestrictionTypes
Translate the EntitySchema extension
Check usage and version matrix.
Issues Open tasks · Report a bug

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 #Advanced Configuration.

Installation[edit]

  • Download and place the file(s) in a directory called EntitySchema in your extensions/ folder.
  • Run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See T173141 for potential complications.)
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'EntitySchema' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Advanced Configuration[edit]

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