Hi there!
I am going to parse some wiki formatted text from the (german)
Wiktionary project. JWPL seems to be a powerful tool for my
objectives. I already was able to push wiki formatted text into a
MediaWikiParser and now I have two rather simple technical questions:
1) How can I remove contents from a ParsedPage? (I want to e.g. throw
away sections)
2) Is it possible to retrieve back wiki formatted text from a
(modified) ParsedPage?
Example:
I want to extract certain information for the word "German". In
English, it means the language, in German it means a certain chemical
compound (see:
http://de.wiktionary.org/wiki/German) - and in this
case I want to extract only the information from the section about the
German meaning. As part of my extraction process, I would like take
the wiki formatted text from my database and throw away the wiki
formatted text of the second section and save the "cleaned" wiki
formatted text in a new database, which serves as source for the next
step of my process.
Do you think JWPL is suitable, and if not, do you have any other
recommendations?
Thanks in advance,
-Christian