WikiPipes
From semanticweb.org
Revision as of 16:12, 7 October 2009 by 141.21.7.184 (Talk)
| WikiPipes | |
|---|---|
| wikipipes.semweb4j.org | |
| Status: | unknown |
| Last release: | (11.04.2008) |
| License: | BSD |
| Affiliation: | FZI |
| Web resources | |
WikiPipes is a Java library for programatic wiki usage. It can be used to migrate wiki pages from one wiki to another one, using a different syntax.
Contents |
[edit] What it does
WikiPipes can
- log into a wiki
- fetch a page by name
- download it locally as wiki snytax or STIF (essentially XHTML)
- upload STIF or native wiki syntax
For MediaWiki it can also return the link to the Semantic MediaWiki RDF feed.
[edit] Status
Adapters supporting read and write (and login) exist for:
- JSPWiki
- MediaWiki
- Google Code Wiki
[edit] Download
Latest release: http://semweb4j.org/repo/de/fzi/wikipipes.dist/1.0.0/wikipipes.dist-1.0.0.zip (fixed broken link on 1.7.2008)
[edit] Usage
- API JavaDocs
- Example code How to copy a MediaWiki to a JSPWiki
- Copying to the local file system is similar, just replace the target wiki with a WikiPageFS.
- See also WikiPipes/FAQ
[edit] IWikiPage
You have three options:
- page.getContentAsWif() -- returns the content as a STIF document as a Java Reader. This format is ideal for conversion to other syntaxes. It contains only the relevant parts of the visible HTML rendering of the page.
- page.rawWikiPage().getNativeWikitext() -- returns the raw, unparsed wiki syntax
- page.rawWikiPage().getRawHtmlContent() -- returns the HTML content of the page
[edit] Future
- We currently work on exporting a complete wiki (page content + page graph) as a single CDS model.
- We also work on support for reading the previous versions of a MediaWiki.
[edit] Developing
We manage our issues in JIRA .