$smwg­Schema­Types

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgSchemaTypes
Description Sets the mappings between a specific schema type, an accompanying schema group and a possible schema interpreter
Default setting
[];
Software Semantic MediaWiki
Since version
Until version still available
Configuration Internal
Keyword schema · schema type


$smwgSchemaTypes is an internal configuration parameter that is used to set the mappings between a specific schema type, an accompanying schema group together with a possible schema interpreter which validates the expected schema syntax. Each schema type will have its own interpretation about it's elements and how to define and enact requirements for them. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. together with the LINK_FORMAT_SCHEMA schema and the SEARCH_FORM_SCHEMA schema.1

This configuration parameter was greatly extended with Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. by introducing additional schema types namely the PROPERTY_GROUP_SCHEMA schema2, the PROPERTY_CONSTRAINT_SCHEMA schema3, the CLASS_CONSTRAINT_SCHEMA schema4 and the PROPERTY_PROFILE_SCHEMA schema5.

Starting with Semantic MediaWiki 3.2.0Released on an unknown date and compatible with unknown versions of MediaWiki. this configuration parameter was deprecated6 in favor of the SMW::Schema::RegisterSchemaTypes hook7 allowing external users to define extra schema types (see the Octocat.pnghook's documentation and to not confuse it with a configuration parameter). The default schema types are now being mapped in the Octocat.png"SchemaTypes.php" file.

Note that this configuration parameter was originally introduced as $smwgRuleTypes8 but was renamed prior to the release of Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..

Default setting[edit]

$smwgSchemaTypes = [];

This means that this configuration parameter is no longer used to map schema types.

Changing the default setting[edit]

This configuration parameter must not be modified manually by wiki system administrators or administrators.

Note[edit]

Starting with Semantic MediaWiki 3.2.0Released on an unknown date and compatible with unknown versions of MediaWiki. the schema types available for use on the wiki will be shown on special page "SemanticMediaWiki"Provides functions for wiki administrators that assist in doing their administration work (Supplementary functions → Configuration settings → Schema types).9

See also[edit]



References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:3431
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:3749
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:3746
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:4033
  5. ^  Semantic MediaWiki: GitHub pull request gh:smw:4227
  6. ^  Semantic MediaWiki: GitHub pull request gh:smw:4640
  7. ^  Semantic MediaWiki: GitHub pull request gh:smw:4591
  8. ^  Semantic MediaWiki: GitHub pull request gh:smw:3019
  9. ^  Semantic MediaWiki: GitHub pull request gh:smw:4645