Help:Namespaces

From semantic-mediawiki.org
Jump to: navigation, search
Table of Contents

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

Extensions

Semantic MediaWiki

ID Name Constant Note
100 Relation SMW_NS_RELATION No longer used, as of version SMW 1.0, support dropped with SMW 1.5.0
101 Relation_talk SMW_NS_RELATION_TALK No longer used, as of version SMW 1.0, support dropped with SMW 1.5.0
102 Property SMW_NS_PROPERTY
103 Property_talk SMW_NS_PROPERTY_TALK
104 Type SMW_NS_TYPE No longer used, as of version SMW 1.6.0, support will be dropped with SMW 3.01
105 Type_talk SMW_NS_TYPE_TALK No longer used, as of version SMW 1.6.0, support will be dropped with SMW 3.01
108 Concept SMW_NS_CONCEPT
109 Concept_talk SMW_NS_CONCEPT_TALK

Page Forms

ID Name Constant Note
106 Form PF_NS_FORM In case you are still using the Semantic Forms extension the constant is called SF_NS_FORM
107 Form_talk PF_NS_FORM_TALK In case you are still using the Semantic Forms extension the constant is called SF_NS_FORM_TALK

Semantic Drilldown

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

Provided by Semantic MediaWiki
  1. configuration parameter $smwgNamespacesWithSemanticLinks
    Defines for which namespaces the semantic links and annotations are to be evaluated
    - Allows to set which namespaces which should use Semantic MediaWiki
  2. configuration parameter $smwgNamespaceIndex
    Sets 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 $smwgHistoricTypeNamespace
    Sets whether the namespaces "Type" and "Type talk" can be accessed
    - Allows to set whether the "Type" namespaces are accessible
Provided by MediaWiki

Starting with Semantic MediaWiki 2.5.0 the namespaces "Property" and "Concept" are automatically added to the following two configuration parameters which are provided by MediaWiki itself.2

1. configuration parameter $wgContentNamespaces - 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 the "updateArticleCount.php" maintenance script provided by MediaWiki 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 - 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

See also

Issues