Extension:EntitySchema

Category:Extensions without an imageCategory:GPL licensed extensions
MediaWiki extensions manual
EntitySchema
Release status: stableCategory:Stable extensions
Implementation ContentHandler Category:ContentHandler extensions, Page action Category:Page action extensions, Special page Category:Special page extensions, API Category:API extensions
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.Category:Extensions with release branches compatibility policy
MediaWiki masterCategory:Extensions with manual MediaWiki version
Database changes Yes
Tables entityschema_id_counter
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
readme
  • $wgEntitySchemaSkippedIDs
  • $wgEntitySchemaNameBadgeMaxSizeChars
  • $wgEntitySchemaSchemaTextMaxSizeBytes
  • $wgEntitySchemaIsRepo
  • $wgEntitySchemaShExSimpleUrl
Quarterly downloads 8 (Ranked 108th)
Translate the EntitySchema extension
Issues Open tasks · Report a bug
Category:All extensions

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 T173141 for potential complications.)Category:Extensions requiring Composer with git
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'EntitySchema' );
    
    Configure as required.
  • Yes 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

Category:Extensions used on Wikimedia#EntitySchema Category:Wikibase extensions
Category:API extensions Category:All extensions Category:BeforeDisplayNoArticleText extensions Category:CanonicalNamespaces extensions Category:ContentHandlerForModelID extensions Category:ContentHandler extensions Category:ContentModelCanBeUsedOn extensions Category:ExtensionTypes extensions Category:Extensions in Wikimedia version control Category:Extensions included in ProWiki Category:Extensions requiring Composer with git Category:Extensions used on Wikimedia Category:Extensions with manual MediaWiki version Category:Extensions with release branches compatibility policy Category:Extensions without an image Category:FormatAutocomments extensions Category:GPL licensed extensions Category:GetContentModels extensions Category:HtmlPageLinkRendererEnd extensions Category:ImportHandleRevisionXMLTag extensions Category:LoadExtensionSchemaUpdates extensions Category:OutputPageParserOutput extensions Category:PageHistoryLineEnding extensions Category:Page action extensions Category:ResourceLoaderRegisterModules extensions Category:SidebarBeforeOutput extensions Category:SkinTemplateNavigation::Universal extensions Category:SpecialPage initList extensions Category:Special page extensions Category:Stable extensions Category:TitleGetRestrictionTypes extensions Category:WikibaseClientDataTypes extensions Category:WikibaseRepoDataTypes extensions Category:WikibaseRepoEntitySearchHelperCallbacks extensions Category:WikibaseRepoOnParserOutputUpdaterConstruction extensions Category:WikibaseRepoSearchableEntityScopesMessages extensions Category:WikibaseRepoSearchableEntityScopes extensions Category:Wikibase extensions