Extension:EntitySchema
Appearance
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
EntitySchemafolder to yourextensions/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-devin the extension directory. (See T173141 for potential complications.) - Add the following code at the bottom of your LocalSettings.php file: Configure as required.
wfLoadExtension( 'EntitySchema' );
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:
- In your "LocalSettings.php", set
$wgEntitySchemaShExSimpleUrlto 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
- Top Wikibase extensions — Curated list of key Wikibase extensions
| This extension is included in the following wiki farms/hosts and/or packages: |
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
Categories:
- Stable extensions/en
- ContentHandler extensions/en
- Page action extensions/en
- Special page extensions/en
- API extensions/en
- BeforeDisplayNoArticleText extensions/en
- CanonicalNamespaces extensions/en
- ContentHandlerForModelID extensions/en
- ContentModelCanBeUsedOn extensions/en
- ExtensionTypes extensions/en
- FormatAutocomments extensions/en
- GetContentModels extensions/en
- HtmlPageLinkRendererEnd extensions/en
- ImportHandleRevisionXMLTag extensions/en
- LoadExtensionSchemaUpdates extensions/en
- OutputPageParserOutput extensions/en
- PageHistoryLineEnding extensions/en
- ResourceLoaderRegisterModules extensions/en
- SidebarBeforeOutput extensions/en
- SkinTemplateNavigation::Universal extensions/en
- SpecialPage initList extensions/en
- TitleGetRestrictionTypes extensions/en
- WikibaseClientDataTypes extensions/en
- WikibaseRepoDataTypes extensions/en
- WikibaseRepoEntitySearchHelperCallbacks extensions/en
- WikibaseRepoOnParserOutputUpdaterConstruction extensions/en
- WikibaseRepoSearchableEntityScopes extensions/en
- WikibaseRepoSearchableEntityScopesMessages extensions/en
- WikibaseRepoWbui2025InitResourceDependenciesHook extensions/en
- GPL licensed extensions/en
- Extensions in Wikimedia version control/en
- All extensions/en
- Extensions included in ProWiki/en
- Extensions used on Wikimedia/en
- Wikibase extensions/en
