$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
Configuration Internal
Keyword schema · schema type


$smwgSchemaTypes is an internal configuration parameter that was 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

Removed in Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x.. $smwgSchemaTypes no longer has any effect; any entries left in it after upgrading are silently ignored. Register custom schema types through the SMW::Schema::RegisterSchemaTypes hook (available since Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x.) instead.2

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 schema3, the PROPERTY_CONSTRAINT_SCHEMA schema4, the CLASS_CONSTRAINT_SCHEMA schema5 and the PROPERTY_PROFILE_SCHEMA schema6.

Starting with Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. this configuration parameter was deprecated7 in favor of the SMW::Schema::RegisterSchemaTypes hook8 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 $smwgRuleTypes9 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 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. 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).10

See also[edit]



References

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