parsers: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
(→‎Python: removed bleeding edge version since it is way behind now)
(23 intermediate revisions by 13 users not shown)
Line 1: Line 1:
HOW THING OUT
<entry-title>Microformats Parsers</entry-title>
HOW ANYTHING OUT
;shortlink
HOW EVERYTHING OUT
:http://ufs.cc/w/ufprs
HOW UNIVERSE OUT
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. There is a separate page for [[validators]].
HOW MAKE THING OUT
 
HOW MAKE ANYTHING OUT
Alphabetical listing by programming language:
HOW MAKE EVERYTHING OUT
 
HOW MAKE UNIVERSE OUT
= microformats2 parsers =
HOW THING BE OUT
{{main|microformats2#Parsers}}
HOW ANYTHING BE OUT
 
HOW EVERYTHING BE OUT
These are modern and maintained [[microformats2]] parsers and are suitable for use in modern web applications.
HOW UNIVERSE BE OUT
 
HOW MAKE THING BE OUT
== Elixir ==
HOW MAKE ANYTHING BE OUT
* [https://github.com/ckruse/microformats2-elixir ckruse/microformats2-elixir] - Elixir microformats2 parser
HOW MAKE EVERYTHING BE OUT
 
HOW MAKE UNIVERSE BE OUT
== Go ==
HOW THING OUT
* [https://github.com/andyleap/microformats andyleap/microformats] - Golang microformats2 parser
HOW ANYTHING OUT
** live textarea entry: http://mf2.vendaria.net
HOW EVERYTHING OUT
 
HOW UNIVERSE OUT
== Haskell ==
HOW MAKE THING OUT
* [https://github.com/myfreeweb/microformats2-parser myfreeweb/microformats2-parser] - Haskell microformats2 parser
HOW MAKE ANYTHING OUT
** live textarea entry: https://unrelenting.technology/mf2/
HOW MAKE EVERYTHING OUT
 
HOW MAKE UNIVERSE OUT
== Java ==
HOW THING BE OUT
* [https://github.com/kylewm/mf2j mf2j] - An early-stage Java microformats2 parser
HOW ANYTHING BE OUT
* live: https://mf2j.herokuapp.com/?url={http://example.com}
HOW EVERYTHING BE OUT
 
HOW UNIVERSE BE OUT
== Javascript ==
HOW MAKE THING BE OUT
=== Microformat Node ===
HOW MAKE ANYTHING BE OUT
* [http://github.com/glennjones/microformat-node microformat-node] microformat-node is a microformat parser for node.js. It is built using a well tested JavaScript parsing engine which already powers a number of browser extensions. Supports microformat v1 and v2. Try it out at http://glennjones.net/tools/microformats/
HOW MAKE EVERYTHING BE OUT
 
HOW MAKE UNIVERSE BE OUT
=== Microformat Shiv ===
HOW THING OUT
* [http://microformatshiv.com/ Microformat Shiv] The microformat shiv provides a simple to use JavaScript microformats parsing library. It can also be used in browser extensions and the web site has example code for Chrome, Firefox and Opera. Try it out http://microformatshiv.com/editor.html
HOW ANYTHING OUT
 
HOW EVERYTHING OUT
== PHP ==
HOW UNIVERSE OUT
=== php-mf2 ===
HOW MAKE THING OUT
* PHP generic microformats2 parser
HOW MAKE ANYTHING OUT
** source: https://github.com/indieweb/php-mf2
HOW MAKE EVERYTHING OUT
 
HOW MAKE UNIVERSE OUT
== Ruby ==
HOW THING BE OUT
* '''G5/microformats2''' Ruby microformats2 parser
HOW ANYTHING BE OUT
** github open source: https://github.com/G5/microformats2
HOW EVERYTHING BE OUT
 
HOW UNIVERSE BE OUT
== Python ==
HOW MAKE THING BE OUT
* [[mf2py]]
HOW MAKE ANYTHING BE OUT
** on PyPI: [https://pypi.python.org/pypi/mf2py/]
HOW MAKE EVERYTHING BE OUT
** source: [https://github.com/tommorris/mf2py github.com/tommorris/mf2py]
HOW MAKE UNIVERSE BE OUT
 
HOW THING OUT
= past parsers =
HOW ANYTHING OUT
These are past parsers of classic microformats some of which have not been maintained.
HOW EVERYTHING OUT
 
HOW UNIVERSE OUT
They may be useful as starting points for developing additional microformats2 parsers.
HOW MAKE THING OUT
 
HOW MAKE ANYTHING OUT
== .Net ==
HOW MAKE EVERYTHING OUT
[http://ufxtract.com/ UfXtract] is an open source .Net microformats parser. It can parse microformats from URLs or HTML strings. The extracted data can be used directly in .Net or converted into JSON, JSON-P or XML. Currently Supports 16 microformats and can easily be extended with new definitions.
HOW MAKE UNIVERSE OUT
 
HOW THING BE OUT
== More Java ==
HOW ANYTHING BE OUT
* [[any23]] (Anything to Triples)] parses microformats into RDF triples: http://any23.apache.org
HOW EVERYTHING BE OUT
** '''MAINTAINED''' but '''[https://issues.apache.org/jira/browse/ANY23-207 not yet supporting Microformats2]''' (&lt;-- help welcome! comment there.)
HOW UNIVERSE BE OUT
 
HOW MAKE THING BE OUT
* [http://zwitserloot.com/org.microformats.hCard/ org.microformats.hCard] by Reinier Zwitserloot
HOW MAKE ANYTHING BE OUT
 
HOW MAKE EVERYTHING BE OUT
== More Javascript ==
HOW MAKE UNIVERSE BE OUT
=== Sumo ===
HOW THING OUT
* [http://www.danwebb.net/2007/2/9/sumo-a-generic-microformats-parser-for-javascript Sumo! A Generic Microformats Parser For JavaScript]
HOW ANYTHING OUT
 
HOW EVERYTHING OUT
== Perl ==
HOW UNIVERSE OUT
=== Data::Microformat ===
HOW MAKE THING OUT
* [http://search.cpan.org/~ussjoin/Data-Microformat-0.01/lib/Data/Microformat/hCard.pm Data::Microformat] is a CPAN module to parse and create hCard, adr, and geo.
HOW MAKE ANYTHING OUT
** By Brendan O'Connor / Six Apart
HOW MAKE EVERYTHING OUT
 
HOW MAKE UNIVERSE OUT
=== HTML::Microformats ===
HOW THING BE OUT
Perhaps we can capture and update this info on a page like [[perl-html-microformats-parser]].
HOW ANYTHING BE OUT
[http://search.cpan.org/~tobyink/HTML-Microformats/ HTML::Microformats] is a CPAN module that has support for:
HOW EVERYTHING BE OUT
* input:
HOW UNIVERSE BE OUT
** rel: [[rel-enclosure]], [[rel-license]], [[rel-tag]], [[VoteLinks]], [[XFN]].
HOW MAKE THING BE OUT
** class: [[adr]], [[figure]], [[geo]], [[hAtom]], [[hAudio]], [[User:TobyInk/hcalendar-1.1|hCalendar]], [[hCard]], [[hListing]], [[hNews]], [[hProduct]], [[hRecipe]], [[hResume]], [[hReview]], [[hReview-aggregate]], [[xFolk]], [[XMDP]], [[XOXO]].
HOW MAKE ANYTHING BE OUT
*** highly experimental: [[measure]], [[species]].
HOW MAKE EVERYTHING BE OUT
** poshformats: [http://ocoins.info/ OpenURL COinS].
HOW MAKE UNIVERSE BE OUT
* output:
HOW THING OUT
** RDF: RDF/XML, Turtle, N-Triples, RDF/JSON, etc.
HOW ANYTHING OUT
** JSON
HOW EVERYTHING OUT
** domain specific: vCard (3.0, 4.0 and XML), iCalendar, Atom, KML.
HOW UNIVERSE OUT
* By [[User:TobyInk|Toby Inkster]].
HOW MAKE THING OUT
 
HOW MAKE ANYTHING OUT
Versions and releases notes:
HOW MAKE EVERYTHING OUT
* 2011-02-05 [http://microformats.org/discuss/mail/microformats-dev/2011-February/000667.html 0.102]
HOW MAKE UNIVERSE OUT
* 2010-12-22 0.101
HOW THING BE OUT
* 2010-12-16 [http://microformats.org/discuss/mail/microformats-discuss/2010-December/013363.html 0.100]
HOW ANYTHING BE OUT
* 2010-10-18 0.00_13
HOW EVERYTHING BE OUT
* 2010-06-25 0.00_12
HOW UNIVERSE BE OUT
* 2010-06-23 0.00_11
HOW MAKE THING BE OUT
* 2010-05-13 0.00_10
HOW MAKE ANYTHING BE OUT
* 2010-05-12 0.00_09
HOW MAKE EVERYTHING BE OUT
* 2010-04-29 0.00_08
HOW MAKE UNIVERSE BE OUT
* 2010-04-28 0.00_07
HOW THING OUT
* 2010-04-16 [http://microformats.org/discuss/mail/microformats-dev/2010-April/000651.html 0.00_06]
HOW ANYTHING OUT
* 2010-04-16 0.00_05
HOW EVERYTHING OUT
* 2010-03-20 [http://microformats.org/discuss/mail/microformats-dev/2010-March/000647.html 0.00_04]
HOW UNIVERSE OUT
* 2010-03-09 [http://microformats.org/discuss/mail/microformats-dev/2010-March/000642.html 0.00_03]
HOW MAKE THING OUT
* 2010-02-28 [http://microformats.org/discuss/mail/microformats-dev/2010-February/000641.html 0.00_02]
HOW MAKE ANYTHING OUT
* 2010-02-24 [http://microformats.org/discuss/mail/microformats-dev/2010-February/000640.html 0.00_01]
HOW MAKE EVERYTHING OUT
* 2010-02-20 [http://microformats.org/discuss/mail/microformats-dev/2010-February/000639.html 0.00_00]
HOW MAKE UNIVERSE OUT
* see also the "Changes" file included in the CPAN distribution.
HOW THING BE OUT
 
HOW ANYTHING BE OUT
==== XML::Atom::Microformats ====
HOW EVERYTHING BE OUT
 
HOW UNIVERSE BE OUT
[http://search.cpan.org/~tobyink/XML-Atom-Microformats/ XML::Atom::Microformats] provides the same functionality for Atom. It finds microformats in Atom entry content elements.
HOW MAKE THING BE OUT
 
HOW MAKE ANYTHING BE OUT
===Swignition ===
HOW MAKE EVERYTHING BE OUT
* [http://buzzword.org.uk/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.
HOW MAKE UNIVERSE BE OUT
** By Toby Inkster
HOW THING OUT
** Active development has moved to HTML::Microformats (see above).
HOW ANYTHING OUT
 
HOW EVERYTHING OUT
=== Text::Microformat ===
HOW UNIVERSE OUT
* Text::Microformat is a microformats parser hosted on [http://code.google.com/p/ufperl/ Google Code] that supports:
HOW MAKE THING OUT
** [[hCard]], [[hCalendar]], [[rel-tag]]
HOW MAKE ANYTHING OUT
 
HOW MAKE EVERYTHING OUT
== More PHP ==
HOW MAKE UNIVERSE OUT
=== XMFP ===
HOW THING BE OUT
<span id="xmfp">[http://code.google.com/p/xmfp/ XMFP]</span> (eXtensible MicroFormats Parser for PHP 5) by [http://www.metonymie.com Emiliano Martínez Luque] is a set of PHP 5 classes providing a simple API for extracting Microformated Content either from a URI or a String representing HTML/XML. It can return the results as a PHP associative array, a JSON definition or an XML representation of the data. It supports most of the currently accepted microformats and can be easily extended to add new ones, it also has full support of the include pattern and provides basic validation of microformated data.
HOW ANYTHING BE OUT
 
HOW EVERYTHING BE OUT
=== hKit Microformats Toolkit for PHP5 ===
HOW UNIVERSE BE OUT
[http://allinthehead.com/hkit hKit Microformats Toolkit for PHP5] as [http://allinthehead.com/retro/291/hkit-microformats-toolkit-for-php announced by Drew McLellan]. See also [[hkit|hKit on this wiki]].
HOW MAKE THING BE OUT
 
HOW MAKE ANYTHING BE OUT
===PHP Microformats parser===
HOW MAKE EVERYTHING BE OUT
[http://www.phpclasses.org/browse/package/3597.html 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. [http://malatestapunk-stuff.blogspot.com/2007/01/php-microformats-parser.html 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.
HOW MAKE UNIVERSE BE OUT
 
HOW THING OUT
===Transformr===
HOW ANYTHING OUT
A Simple set of XSLT and PHP tools for Transforming Microformats Source [http://github.com/WebOrganics/TransFormr available from github] Live webservice available at [http://microform.at/ microform.at].
HOW EVERYTHING OUT
 
HOW UNIVERSE OUT
=== hCard Validator ===
HOW MAKE THING OUT
[http://code.google.com/p/hcardvalidator/ Source code] of the [http://hcard.geekhood.net/ hCard Validator] contains XSLT and PHP code for hCard and include microformats.
HOW MAKE ANYTHING OUT
 
HOW MAKE EVERYTHING OUT
=== ARC2 ===
HOW MAKE UNIVERSE OUT
[http://arc.semsol.org/ ARC2] is a semantic web toolkit which includes support for hCard, adr, geo, XFN, hCalendar, hAtom, hResume, hReview, xFolk, rel-license and rel-tag. It's tri-licensed under the GPL 2 and 3, and the W3C Software licence.
HOW THING BE OUT
 
HOW ANYTHING BE OUT
== Python ==
HOW EVERYTHING BE OUT
===AUMP===
HOW UNIVERSE BE OUT
* [http://aump.googlecode.com AUMP] is a parser written by David Janes. It supports hCard, hCalendar, hAtom, hReview and hListing.
HOW MAKE THING BE OUT
** 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].
HOW MAKE ANYTHING BE OUT
 
HOW MAKE EVERYTHING BE OUT
===Microtron===
HOW MAKE UNIVERSE BE OUT
{{main|Microtron}}
HOW THING OUT
* [[Microtron]] is a general-purpose microformat parser/transformer. 
HOW ANYTHING OUT
 
HOW EVERYTHING OUT
It can operate on the definition file included in [[Optimus]], making it a close replacement for certain tasks, and can easily be extended with new formats without modifying the source.  The primary advantages are speed (> 100x faster that [[Optimus]] for some operations), simplicity (single file) and small code size (currently < 150 lines).
HOW UNIVERSE OUT
 
HOW MAKE THING OUT
=== python-hcalendar ===
HOW MAKE ANYTHING OUT
[http://pypi.python.org/pypi/python-hcalendar/0.1dev python-hcalendar] is a basic hCalendar parser.
HOW MAKE EVERYTHING OUT
 
HOW MAKE UNIVERSE OUT
== More Ruby ==
HOW THING BE OUT
===Prism ===
HOW ANYTHING BE OUT
* [[Prism]]
HOW EVERYTHING BE OUT
** by [[implementors#Mark_Wunsch|Mark Wunsch]]
HOW UNIVERSE BE OUT
** Library and command line tool for parsing POSH/Microformats
HOW MAKE THING BE OUT
** Uses the [http://nokogiri.org/ Nokogiri] HTML, XML, SAX, and Reader parser
HOW MAKE ANYTHING BE OUT
 
HOW MAKE EVERYTHING BE OUT
=== mofo ruby microformats parser===
HOW MAKE UNIVERSE BE OUT
* [http://mofo.rubyforge.org/ mofo], [http://groups.google.com/group/mofo-rb mofo Google Group], [http://github.com/defunkt/mofo/tree/master GitHub repository]
HOW THING OUT
** by [[implementors#Chris Wanstrath|Chris Wanstrath]]
HOW ANYTHING OUT
** Uses the [http://wiki.github.com/why/hpricot Hpricot] HTML/XML parser
HOW EVERYTHING OUT
 
HOW UNIVERSE OUT
=== Microformat Parser for Ruby ===
HOW MAKE THING OUT
* [http://blog.labnotes.org/2005/11/20/microformat-parser-for-ruby/ Microformat Parser for Ruby]
HOW MAKE ANYTHING OUT
** by [[implementors#Assaf Arkin|Assaf Arkin]]
HOW MAKE EVERYTHING OUT
 
HOW MAKE UNIVERSE OUT
=== uformats ===
HOW THING BE OUT
* [http://rubyforge.org/projects/uformats uformats]
HOW ANYTHING BE OUT
 
HOW EVERYTHING BE OUT
=== scrAPI ===
HOW UNIVERSE BE OUT
* [http://rubyforge.org/projects/scrapi scrAPI]
HOW MAKE THING BE OUT
 
HOW MAKE ANYTHING BE OUT
== XSLT ==
HOW MAKE EVERYTHING BE OUT
===Optimus===
HOW MAKE UNIVERSE BE OUT
* [[Optimus]] is open source XSLT that parses microformats, converts them into JSON or XML, and validates them too.
HOW THING OUT
 
HOW ANYTHING OUT
===X2V===
HOW EVERYTHING OUT
* [[X2V]] is [http://hg.microformats.org/ open source XSLT for extracting microformats].
HOW UNIVERSE OUT
** by Brian Suda
HOW MAKE THING OUT
 
HOW MAKE ANYTHING OUT
== editing this page ==
HOW MAKE EVERYTHING OUT
For now, this page ''copies'' (rather than ''moves'') information from the existing [[implementations | Implementations]] page.
HOW MAKE UNIVERSE OUT
 
HOW THING BE OUT
== see also ==
HOW ANYTHING BE OUT
* [[implementations]]
HOW EVERYTHING BE OUT
* [[implementors]]
HOW UNIVERSE BE OUT
* [[open-source]]
HOW MAKE THING BE OUT
* [[user-interface]]
HOW MAKE ANYTHING BE OUT
* [[validators]]
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT
HOW THING OUT
HOW ANYTHING OUT
HOW EVERYTHING OUT
HOW UNIVERSE OUT
HOW MAKE THING OUT
HOW MAKE ANYTHING OUT
HOW MAKE EVERYTHING OUT
HOW MAKE UNIVERSE OUT
HOW THING BE OUT
HOW ANYTHING BE OUT
HOW EVERYTHING BE OUT
HOW UNIVERSE BE OUT
HOW MAKE THING BE OUT
HOW MAKE ANYTHING BE OUT
HOW MAKE EVERYTHING BE OUT
HOW MAKE UNIVERSE BE OUT

Revision as of 17:51, 23 September 2016

<entry-title>Microformats Parsers</entry-title>

shortlink
http://ufs.cc/w/ufprs

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. There is a separate page for validators.

Alphabetical listing by programming language:

microformats2 parsers

Main article: microformats2#Parsers

These are modern and maintained microformats2 parsers and are suitable for use in modern web applications.

Elixir

Go

Haskell

Java

Javascript

Microformat Node

Microformat Shiv

PHP

php-mf2

Ruby

Python

past parsers

These are past parsers of classic microformats some of which have not been maintained.

They may be useful as starting points for developing additional microformats2 parsers.

.Net

UfXtract is an open source .Net microformats parser. It can parse microformats from URLs or HTML strings. The extracted data can be used directly in .Net or converted into JSON, JSON-P or XML. Currently Supports 16 microformats and can easily be extended with new definitions.

More Java

More 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

HTML::Microformats

Perhaps we can capture and update this info on a page like perl-html-microformats-parser. HTML::Microformats is a CPAN module that has support for:

Versions and releases notes:

  • 2011-02-05 0.102
  • 2010-12-22 0.101
  • 2010-12-16 0.100
  • 2010-10-18 0.00_13
  • 2010-06-25 0.00_12
  • 2010-06-23 0.00_11
  • 2010-05-13 0.00_10
  • 2010-05-12 0.00_09
  • 2010-04-29 0.00_08
  • 2010-04-28 0.00_07
  • 2010-04-16 0.00_06
  • 2010-04-16 0.00_05
  • 2010-03-20 0.00_04
  • 2010-03-09 0.00_03
  • 2010-02-28 0.00_02
  • 2010-02-24 0.00_01
  • 2010-02-20 0.00_00
  • see also the "Changes" file included in the CPAN distribution.

XML::Atom::Microformats

XML::Atom::Microformats provides the same functionality for Atom. It finds microformats in Atom entry content elements.

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
    • Active development has moved to HTML::Microformats (see above).

Text::Microformat

More PHP

XMFP

XMFP (eXtensible MicroFormats Parser for PHP 5) by Emiliano Martínez Luque is a set of PHP 5 classes providing a simple API for extracting Microformated Content either from a URI or a String representing HTML/XML. It can return the results as a PHP associative array, a JSON definition or an XML representation of the data. It supports most of the currently accepted microformats and can be easily extended to add new ones, it also has full support of the include pattern and provides basic validation of microformated data.

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 Source available from github Live webservice available at microform.at.

hCard Validator

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

ARC2

ARC2 is a semantic web toolkit which includes support for hCard, adr, geo, XFN, hCalendar, hAtom, hResume, hReview, xFolk, rel-license and rel-tag. It's tri-licensed under the GPL 2 and 3, and the W3C Software licence.

Python

AUMP

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

Microtron

Main article: Microtron
  • Microtron is a general-purpose microformat parser/transformer.

It can operate on the definition file included in Optimus, making it a close replacement for certain tasks, and can easily be extended with new formats without modifying the source. The primary advantages are speed (> 100x faster that Optimus for some operations), simplicity (single file) and small code size (currently < 150 lines).

python-hcalendar

python-hcalendar is a basic hCalendar parser.

More Ruby

Prism

  • Prism
    • by Mark Wunsch
    • Library and command line tool for parsing POSH/Microformats
    • Uses the Nokogiri HTML, XML, SAX, and Reader parser

mofo ruby microformats parser

Microformat Parser for Ruby

uformats

scrAPI

XSLT

Optimus

  • Optimus is open source XSLT that parses microformats, converts them into JSON or XML, and validates them too.

X2V

editing this page

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

see also