From: Lionel B. <lio...@gm...> - 2007-04-23 23:08:25
|
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 > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |