I had to edit function edit Updates in Article.php added:

$dbw = wfGetDB( DB_MASTER );
$dbw->begin();   

# Update the links tables
        $u = new LinksUpdate( $this->mTitle, $editInfo->output );
        $u->doUpdate();

$dbw->commit();

to commit semantic and category updates made with api based 
Article->doEdit() calls

peace,
--michael


Andreas Wombacher wrote:
> Hio,
>
> I wrote a little extension which creates new wiki pages and uses the 
> doEdit method of Article class to add the content. In previous versions 
> of SMW this was sufficient to get the data in the semantic data 
> collection. This is now not the case anymore.
> Any help is appreciated.
>
> I am using
> MediaWiki     1.13.0
> PHP   5.2.4 (apache2handler)
> MySQL         5.1.23-rc-community
> Semantic MediaWiki (Version 1.2.1)
> Semantic mediawiki is using the store2.
>
> best regards
> Andreas
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to