Help:Namespaces

From semantic-mediawiki.org
(Redirected from Namespaces)
Table of Contents

This help page shows an overview about the namespaces and their usage by Semantic MediaWiki and related extensions.

Extensions[edit]

Semantic MediaWiki[edit]

ID Name Constant Note
100 Relation SMW_NS_RELATION No longer used, as of Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x., support dropped with Semantic MediaWiki 1.5.0Released on 7 March 2010 and compatible with MW 1.14.x - 1.17.x.
101 Relation_talk SMW_NS_RELATION_TALK No longer used, as of Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x., support dropped with Semantic MediaWiki 1.5.0Released on 7 March 2010 and compatible with MW 1.14.x - 1.17.x.
102 Property SMW_NS_PROPERTY
103 Property_talk SMW_NS_PROPERTY_TALK
104 Type SMW_NS_TYPE No longer used, as of Semantic MediaWiki 1.6.0Released on 30 July 2011 and compatible with MW 1.15.x - 1.18.x., support dropped with Semantic MediaWiki 3.0.0Released on and compatible with MW 1.27.0 - 1.30.x.12
105 Type_talk SMW_NS_TYPE_TALK No longer used, as of Semantic MediaWiki 1.6.0Released on 30 July 2011 and compatible with MW 1.15.x - 1.18.x., support dropped with Semantic MediaWiki 3.0.0Released on and compatible with MW 1.27.0 - 1.30.x.12
108 Concept SMW_NS_CONCEPT
109 Concept_talk SMW_NS_CONCEPT_TALK
112 smw/schema SMW_NS_SCHEMA Allows to describe schema types individually according to schema types provided in configuration parameter $smwgSchemaTypes. Support introduced with Semantic MediaWiki 3.0.0Released on and compatible with MW 1.27.0 - 1.30.x..34
113 smw/schema_talk SMW_NS_SCHEMA_TALK Accompanying talk namespace to namespace "smw/schema". Support introduced with Semantic MediaWiki 3.0.0Released on and compatible with MW 1.27.0 - 1.30.x..34

Extension "Page Forms"[edit]

ID Name Constant Note
106 Form PF_NS_FORM In case you are still using extension "Page Forms"Forms for adding and editing pages with and without semantic data the constant is called SF_NS_FORM
107 Form_talk PF_NS_FORM_TALK In case you are still using extension "Page Forms"Forms for adding and editing pages with and without semantic data the constant is called SF_NS_FORM_TALK

Extension "Semantic Drilldown"[edit]

ID Name Constant Note
170 Filter SD_NS_FILTER No longer used, as of version 2.0, still supported
170 Filter_talk SD_NS_FILTER_TALK No longer used, as of version 2.0, still supported

Configuration[edit]

Provided by Semantic MediaWiki[edit]

  1. configuration parameter $smwgNamespacesWithSemanticLinksDefines for which namespaces the semantic links and annotations are to be evaluated - Allows to set which namespaces Semantic MediaWiki should use
  2. configuration parameter $smwgNamespaceIndexSets the index of the first namespace to be used by Semantic MediaWiki - Allows to set the indexes for namespaces for usage by Semantic MediaWiki
  3. configuration parameter $smwgHistoricTypeNamespaceSets whether the namespaces "Type" and "Type talk" can be accessed - Allows to set whether the "Type" namespaces are accessible

Provided by MediaWiki[edit]

Starting with Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x. the namespaces "Property" and "Concept" are automatically added to the following two configuration parameters which are provided by MediaWiki itself.5

1. configuration parameter $wgContentNamespaces (MediaWiki.org) - Allows to set which namespaces are to be acknowledged as containing useful content
NoteNote:
  • If you are upgrading from Semantic MediaWiki 2.4.x and earlier you may want to run maintenance script "updateArticleCount.php" (MediaWiki.org) to update the statistics displayed on special page "Statistics".
  • If you do not want the two namespaces mentioned to be recognized as content namespaces you will have to explicitly set this configuration parameter in you "LocalSettings.php" file after the inclusion of Semantic MediaWiki.
2. configuration parameter $wgNamespacesToBeSearchedDefault (MediaWiki.org) - Allows to set which namespaces are enabled for searching by default
NoteNote: If you do not want the two namespaces mentioned to be searched by default you will have to explicitly set this configuration parameter in you "LocalSettings.php" file after the inclusion of Semantic MediaWiki.

Querying[edit]

See also[edit]

Issues[edit]




References

  1. a b  Semantic MediaWiki: GitHub issue gh:smw:399
  2. a b  Semantic MediaWiki: GitHub pull request gh:smw:3164
  3. a b  Semantic MediaWiki: GitHub pull request gh:smw:3431
  4. a b  Semantic MediaWiki: GitHub pull request gh:smw:3019
  5. ^  Semantic MediaWiki: GitHub pull request gh:smw:2243
  6. ^  Semantic MediaWiki: Developer mailing list thread "MW1.25.1 + SMW 2.2 breaks when installed with DynamicSidebar"
  7. ^  Semantic MediaWiki: GitHub issue gh:smw:1686
  8. ^  |  Semantic MediaWiki: GitHub issue gh:smw:1424