parsers: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
m (Cognition is now called Swignition)
(added details of the parsing methods used by mofo and aump. seems like a useful thing to know: namely, whether it's using tagsoup parsing, Tidy-to-XHTML then parse as XML, loading to DOM etc.)
Line 44: Line 44:


* [http://aump.googlecode.com AUMP] is a parser written by David Janes. It supports hCard, hCalendar, hAtom, hReview and hListing.
* [http://aump.googlecode.com AUMP] is a parser written by David Janes. It supports hCard, hCalendar, hAtom, hReview and hListing.
** Uses Python's [http://docs.python.org/library/xml.dom.minidom.html xml.dom.minidom] after cleaning input through [http://www.w3.org/People/Raggett/tidy/ HTML Tidy].


== Ruby ==
== Ruby ==


=== mofo ruby microformats parser===
=== mofo ruby microformats parser===
* [http://mofo.rubyforge.org/ mofo], [http://groups.google.com/group/mofo-rb mofo Google Group]
* [http://mofo.rubyforge.org/ mofo], [http://groups.google.com/group/mofo-rb mofo Google Group], [http://github.com/defunkt/mofo/tree/master GitHub repository]
** by [[implementors#Chris Wanstrath|Chris Wanstrath]]
** by [[implementors#Chris Wanstrath|Chris Wanstrath]]
** Uses the [http://wiki.github.com/why/hpricot Hpricot] HTML/XML parser


=== Microformat Parser for Ruby ===
=== Microformat Parser for Ruby ===
* [http://blog.labnotes.org/2005/11/20/microformat-parser-for-ruby/ Microformat Parser for Ruby]
* [http://blog.labnotes.org/2005/11/20/microformat-parser-for-ruby/ Microformat Parser for Ruby]
** by [[implementors#Assaf Arkin|Assaf Arkin]]
** by [[implementors#Assaf Arkin|Assaf Arkin]]
=== uformats ===
* [http://rubyforge.org/projects/uformats uformats]
=== scrAPI ===
* [http://rubyforge.org/projects/scrapi scrAPI]


== XSLT ==
== XSLT ==

Revision as of 19:41, 26 May 2009

Microformats Parsers

This page lists libraries that consume, transform or convert microformats. This is only a partial list. If you know of other such tools for microformats, please add them and list what specific microformats they support.

For now, this page copies (rather than moves) information from the existing Implementations page.

Javascript

Sumo

Perl

Data::Microformat

  • Data::Microformat is a CPAN module to parse and create hCard, adr, and geo.
    • By Brendan O'Connor / Six Apart

Swignition

  • Swignition is a parser for both “upper case Semantic Web” (RDF, RDFa) and “lower case semantic web” (microformats) technologies. It includes modules for exporting parsed data in a variety of formats, including RDF, vCard, iCalendar, Atom and KML.
    • By Toby Inkster

Text::Microformat

Google Code

PHP

hKit Microformats Toolkit for PHP5

hKit Microformats Toolkit for PHP5 as announced by Drew McLellan. See also hKit on this wiki.

PHP Microformats parser

Microformats parser is a PHP package for extracting the microformats data embedded into HTML. The gathered data is stored as an xArray of objects - one for each microformat type container found. Announcement. The parser supports most of the hCard (missing SOUND), hCalendar, hReview (missing item info; spec really needs some clarification) and rel elements, according to their respective specification on microformats Wiki.

Transformr

A Simple set of XSLT and PHP tools for Transforming Microformats available from Google code and as a web service.

hCard Validator

Source code of the hCard Validator contains XSLT and PHP code for hCard and include microformats.

Python

AUMP

  • AUMP is a parser written by David Janes. It supports hCard, hCalendar, hAtom, hReview and hListing.

Ruby

mofo ruby microformats parser

Microformat Parser for Ruby

uformats

scrAPI

XSLT

X2V

see also