Jump to content

User:Hogü-456/Reusing Functions from Wikifunctions

From Wikifunctions

This is an overview about how to reuse functions of Wikifunctions.

Downloading the Dump

You can find the dump of Wikifunctions at dumps.wikimedia.org. Download the file with the name wikifunctionswiki-latest-pages-meta-current.xml.bz2. After downloading using a decompression program to unpack the file.

Analyzing the Dump content

At the dump you can see the different pages. The namespace number for Z-Objects is 0. To parse the dump it is important to understand the JSON-Structure and the XML-Structure. Some information about the Function model is at this page. While trying to parse the dump I found unescape: lookup from JSON list, python (Z11427). This is a very huge function.

Parser for the dump

There is a implementation of a parser written in COBOL. You can use these parser to analyze the dump.