SemanticMediaWiki/maintenance/SMW_refreshData.php File Reference

Recreates all the semantic data in the database, by cycling through all the pages that might have semantic data, and calling functions that re-save semantic data for each one. More...

Go to the source code of this file.

Variables

 $optionsWithArgs = array( 'd', 's', 'e', 'n', 'b', 'startidfile', 'server', 'page' )
global $smwgEnableUpdateJobs = false
global $wgServer
global $wgTitle = Title::newFromText( 'SMW_refreshData.php' )
 $filterarray = array()
if(array_key_exists( 'c',
$options)) if(array_key_exists(
'p', $options)) if(array_key_exists(
't', $options)) 
$filter = count( $filterarray ) > 0 ? $filterarray : false
if(array_key_exists( 'f',
$options)) 
$linkCache = LinkCache::singleton()
 $num_files = 0


Detailed Description

Recreates all the semantic data in the database, by cycling through all the pages that might have semantic data, and calling functions that re-save semantic data for each one.

Note: if SMW is not installed in its standard path under ./extensions then the MW_INSTALL_PATH environment variable must be set. See README in the maintenance directory.

Usage: php SMW_refreshData.php [options...]

-d <delay> Wait for this many milliseconds after processing an article, useful for limiting server load. -s <startid> Start refreshing at given article ID, useful for partial refreshing -e <endid> Stop refreshing at given article ID, useful for partial refreshing -n <numids> Stop refreshing after processing a given number of IDs, useful for partial refreshing --startidfile <startidfile> Read <startid> from a file instead of the arguments and write the next id to the file when finished. Useful for continual partial refreshing from cron. -b <backend> Execute the operation for the storage backend of the given name (default is to use the current backend) -v Be verbose about the progress. -c Will refresh only category pages (and other explicitly named namespaces) -p Will refresh only property pages (and other explicitly named namespaces) -t Will refresh only type pages (and other explicitly named namespaces) --page=<pagelist> will refresh only the pages of the given names, with | used as a separator. Example: --page="Page 1|Page 2" refreshes Page 1 and Page 2 Options -s, -e, -n, --startidfile, -c, -p, -t are ignored if --page is given. -f Fully delete all content instead of just refreshing relevant entries. This will also rebuild the whole storage structure. May leave the wiki temporarily incomplete. --server=<server> The protocol and server name to as base URLs, e.g. http://en.wikipedia.org. This is sometimes necessary because server name detection may fail in command line scripts.

Author:
Yaron Koren

Markus Krötzsch

Definition in file SMW_refreshData.php.


Variable Documentation

if (array_key_exists( 'c', $options)) if (array_key_exists( 'p', $options)) if (array_key_exists( 't', $options)) $filter = count( $filterarray ) > 0 ? $filterarray : false

$filterarray = array()

Definition at line 100 of file SMW_refreshData.php.

if (array_key_exists( 'f', $options)) $linkCache = LinkCache::singleton()

$num_files = 0

Definition at line 133 of file SMW_refreshData.php.

$optionsWithArgs = array( 'd', 's', 'e', 'n', 'b', 'startidfile', 'server', 'page' )

Definition at line 41 of file SMW_refreshData.php.

$smwgEnableUpdateJobs = false

global $wgServer

Definition at line 45 of file SMW_refreshData.php.

$wgTitle = Title::newFromText( 'SMW_refreshData.php' )


Generated on Sun Mar 18 07:15:41 2012 for Semantic MediaWiki by  doxygen 1.5.6