MediaWiki master
DumpCategoriesAsRdf Class Reference

Maintenance script to provide RDF representation of the category tree. More...

Inherits Maintenance.

Collaboration diagram for DumpCategoriesAsRdf:

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.
 

Detailed Description

Maintenance script to provide RDF representation of the category tree.

Since
1.30

Definition at line 36 of file dumpCategoriesAsRdf.php.

Constructor & Destructor Documentation

◆ __construct()

DumpCategoriesAsRdf::__construct ( )

Definition at line 47 of file dumpCategoriesAsRdf.php.

Member Function Documentation

◆ addDumpHeader()

DumpCategoriesAsRdf::addDumpHeader ( $timestamp)
Parameters
int$timestamp

Definition at line 123 of file dumpCategoriesAsRdf.php.

References PROTO_CANONICAL, and wfTimestamp().

Referenced by execute().

◆ execute()

DumpCategoriesAsRdf::execute ( )

◆ getCategoryIterator()

DumpCategoriesAsRdf::getCategoryIterator ( IReadableDatabase $dbr,
$fname )

Produce row iterator for categories.

Parameters
IReadableDatabase$dbr
string$fnameName of the calling function
Returns
RecursiveIterator

Definition at line 64 of file dumpCategoriesAsRdf.php.

References NS_CATEGORY.

Referenced by execute().

◆ getCategoryLinksIterator()

DumpCategoriesAsRdf::getCategoryLinksIterator ( IReadableDatabase $dbr,
array $ids,
$fname )

Get iterator for links for categories.

Parameters
IReadableDatabase$dbr
int[]$idsList of page IDs
string$fnameName of the calling function
Returns
Traversable

Definition at line 104 of file dumpCategoriesAsRdf.php.

Referenced by execute().


The documentation for this class was generated from the following file: