Ah, and since the rest of this was discussed only on the devel list: there now 
is an improved version of Yaron's update script in SVN.

http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php

(copy to MW's maintenance directory to run)

-- Markus

On Tuesday 24 April 2007 01:08, Lionel Brits wrote:
> This is helpful, but I think the logical place to have it would be as a
> Special: page, perhaps Special:SemanticRefresh or something.... It's
> just a matter of putting the code inside the special page .php template.
>
> Regards,
>
> - Lionel
>
> Yaron Koren wrote:
> > Hi,
> >
> > Every so often someone on this list asks about the ability to refresh
> > all the semantic data in the database; it just came up again last
> > week. It's a helpful feature for anyone who uses templates for storing
> > semantic data, since currently, if you change the data in a template,
> > the pages that already use that template won't get updated unless you
> > resave.
> >
> > So, I wrote a script called, which is attached, which does exactly
> > that: it's called  "SMW_recreateData.php". To use it, drop it into the
> > "maintenance" folder under the main SMW directory. You have to make
> > one other change, which is to add the following line among the
> > require_once() calls at the top of the file
> > "/includes/SMW_InlineQueries.php":
> >
> > require_once( "$IP/includes/Defines.php" );
> >
> > The script is then called as:
> >
> > php SMW_recreateData.php
> >
> > It might be worthwhile to also create a way to call this code directly
> > from the web interface somehow, but this should be a good first step.
> >
> > Also, I don't have write access to the code in the SVN repository, but
> > it would be great if someone could add the file there, along with
> > adding that one line to SMW_InlineQueries.php.
> >
> > Yaron
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > 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
>
> -------------------------------------------------------------------------
> 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

-- 
Markus Krötzsch
Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe
[EMAIL PROTECTED]        phone +49 (0)721 608 7362
www.aifb.uni-karlsruhe.de/WBS/     fax +49 (0)721 693  717

Attachment: pgpazUsK8cuNq.pgp
Description: PGP signature

-------------------------------------------------------------------------
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