MediaWiki master
|
Maintenance script to provide RDF representation of the category tree. More...
Inherits Maintenance.
Public Member Functions | |
__construct () | |
addDumpHeader ( $timestamp) | |
execute () | |
getCategoryIterator (IReadableDatabase $dbr, $fname) | |
Produce row iterator for categories. | |
getCategoryLinksIterator (IReadableDatabase $dbr, array $ids, $fname) | |
Get iterator for links for categories. | |
Maintenance script to provide RDF representation of the category tree.
Definition at line 36 of file dumpCategoriesAsRdf.php.
DumpCategoriesAsRdf::__construct | ( | ) |
Definition at line 47 of file dumpCategoriesAsRdf.php.
DumpCategoriesAsRdf::addDumpHeader | ( | $timestamp | ) |
int | $timestamp |
Definition at line 123 of file dumpCategoriesAsRdf.php.
References PROTO_CANONICAL, and wfTimestamp().
Referenced by execute().
DumpCategoriesAsRdf::execute | ( | ) |
Definition at line 140 of file dumpCategoriesAsRdf.php.
References addDumpHeader(), DB_REPLICA, getCategoryIterator(), and getCategoryLinksIterator().
DumpCategoriesAsRdf::getCategoryIterator | ( | IReadableDatabase | $dbr, |
$fname ) |
Produce row iterator for categories.
IReadableDatabase | $dbr | |
string | $fname | Name of the calling function |
Definition at line 64 of file dumpCategoriesAsRdf.php.
References NS_CATEGORY.
Referenced by execute().
DumpCategoriesAsRdf::getCategoryLinksIterator | ( | IReadableDatabase | $dbr, |
array | $ids, | ||
$fname ) |
Get iterator for links for categories.
IReadableDatabase | $dbr | |
int[] | $ids | List of page IDs |
string | $fname | Name of the calling function |
Definition at line 104 of file dumpCategoriesAsRdf.php.
Referenced by execute().