From: Markus <ma...@ai...> - 2007-04-24 14:15:03
|
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. The refresh operation takes several minutes even on small wikis. This is no= t=20 what you normally trigger through a web interface (e.g. there are timeouts)= =2E=20 Also not all "admins" (which is a fairly large group of users on many wikis= )=20 should be able to directly trigger this for a large site. =46uture versions of SMW will take care about fixing their inconsistencies= =20 automatically while using the wiki, but the "fix all" batch operation will= =20 continue to be a server-side script. Regards, Markus > > 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 > > ------------------------------------------------------------------------ > > > > -----------------------------------------------------------------------= =2D- > > 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 > > ------------------------------------------------------------------------- > 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 =2D-=20 Markus Kr=F6tzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe ma...@ai... phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 |