$smwgSchemaTypes
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 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. this configuration parameter was deprecated6 in favor of the SMW::Schema::RegisterSchemaTypes
hook7 allowing external users to define extra schema types (see the hook's documentation and to not confuse it with a configuration parameter). The default schema types are now being mapped in the "SchemaTypes.php" file.
Note that this configuration parameter was originally introduced as $smwgRuleTypes
8 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.
- See this version of this page for the default setting of this configuration parameter as of Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x..
- See this version of this page for the default setting of this configuration parameter as of Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..
Changing the default setting[edit]
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).9
See also[edit]
- Help page on schemas
- Overview page on schema types
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:3431
- ^ Semantic MediaWiki: GitHub pull request gh:smw:3749
- ^ Semantic MediaWiki: GitHub pull request gh:smw:3746
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4033
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4227
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4640
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4591
- ^ Semantic MediaWiki: GitHub pull request gh:smw:3019
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4645