[EMAIL PROTECTED] wrote:

> I have a current installation of semantic mediawiki, I originally 
> had 1 extra namespace defined in localsettings like this:
> 
> $wgExtraNamespaces =
>     array(101 => "Policy",
>           101 => "Policy Discussion"
>           );
> 
> $smwgNamespaceIndex = 102;
> 
> include_once('extensions/SemanticMediaWiki/includes/SMW_
> Settings.php'); 
> enableSemantics('domainname'); 
> 
> Everything worked great.
> 
> Now I need to add some additional namespaces,
 > ...
> But now all my attributes and datatypes are just broken red 
> links.

Lots of links in the pagelinks database table, and all the properties in 
the smw_attributes, smw_relations, and smw_specialprops database tables 
will have the wrong namespace identifiers.  Database records that 
pointed to the Relation namespace now point to your Forum namespace, etc.

If you create a new relation on a new page, does that show up in the 
factbox?  If so, your installation is OK but you'll have to purge a lot 
of pages, starting with the Type namespace, then Attribute namespace, 
then Relation, then regular pages.

Perhaps you could have given those new namespaces IDs starting higher up 
e.g. at 110, thus
           101 => "Policy Discussion",
          # Note: gap here for SMW namespaces
           110 => "Forum",
           111 => "Forum Discussion",
           112 => "Glossary",
          etc.


--
=S

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to