Extension:EntitySchema

MediaWiki extensions manual
EntitySchema
Release status: stable
Implementation ContentHandler , Page action , Special page , API
Description Allows to store Shape Expression Schemas on wiki pages
Author(s) The Wikidata team
Latest version continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki master
Database changes Yes
Tables entityschema_id_counter
License GNU General Public License 2.0 or later
Download
readme
  • $wgEntitySchemaSkippedIDs
  • $wgEntitySchemaNameBadgeMaxSizeChars
  • $wgEntitySchemaSchemaTextMaxSizeBytes
  • $wgEntitySchemaEnableDatatype
  • $wgEntitySchemaIsRepo
  • $wgEntitySchemaShExSimpleUrl
Quarterly downloads 21 (Ranked 112nd)
Translate the EntitySchema extension
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 #Configuration.

Installation

  • Download and move the extracted EntitySchema folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EntitySchema
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See task T173141 for potential complications.)
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'EntitySchema' );
    
    Configure as required.
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

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

See also