Status: | effective |
Progress: | 100% |
Version: | 3.2.0+ |
$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 | [[Has default::[];]] |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Internal |
Keyword | schema · schema type |
__NOBREADCRUMBLINKS__
$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 an unknown date unknown versions of MediaWiki 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 an unknown date unknown versions of MediaWiki 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 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 File:Octocat.png hook's documentation and to not confuse it with a configuration parameter). The default schema types are now being mapped in the File:Octocat.png "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 an unknown date unknown versions of MediaWiki.
Default setting
$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 an unknown date unknown versions of MediaWiki.
- See this version of this page for the default setting of this configuration parameter as of Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.
Changing the default setting
Note
Starting with Semantic MediaWiki 3.2.0Released on an unknown date unknown versions of MediaWiki the schema types available for use on the wiki will be shown on special page "SemanticMediaWiki"No description was provided. (Supplementary functions → Configuration settings → Schema types).9
See also
- Help page on schemas
- Overview page on schema types