Microformats Parsers

(Difference between revisions)

Jump to: navigation, search
(Microformat Node updated url to online parser)
Current revision (18:31, 28 March 2017) (view source)
m
 
(4 intermediate revisions not shown.)
Line 10: Line 10:
These are modern and maintained [[microformats2]] parsers and are suitable for use in modern web applications.
These are modern and maintained [[microformats2]] parsers and are suitable for use in modern web applications.
 +
 +
== Elixir ==
 +
* [https://github.com/ckruse/microformats2-elixir ckruse/microformats2-elixir] - Elixir microformats2 parser
== Go ==
== Go ==
* [https://github.com/andyleap/microformats andyleap/microformats] - Golang microformats2 parser
* [https://github.com/andyleap/microformats andyleap/microformats] - Golang microformats2 parser
** live textarea entry: http://mf2.vendaria.net
** live textarea entry: http://mf2.vendaria.net
 +
 +
== Haskell ==
 +
* [https://github.com/myfreeweb/microformats2-parser myfreeweb/microformats2-parser] - Haskell microformats2 parser
 +
** live textarea entry: https://unrelenting.technology/mf2/
== Java ==
== Java ==
 +
* [[any23]] Apache Any23 (Anything to Triples)] a library, a web service and a command line tool that extracts structured data in RDF format from a variety of Web documents: http://any23.apache.org
* [https://github.com/kylewm/mf2j mf2j] - An early-stage Java microformats2 parser
* [https://github.com/kylewm/mf2j mf2j] - An early-stage Java microformats2 parser
* live: https://mf2j.herokuapp.com/?url={http://example.com}
* live: https://mf2j.herokuapp.com/?url={http://example.com}
Line 24: Line 32:
=== Microformat Shiv ===
=== Microformat Shiv ===
-
* [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.
+
* [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
== PHP ==
== PHP ==
Line 39: Line 47:
** on PyPI: [https://pypi.python.org/pypi/mf2py/]
** on PyPI: [https://pypi.python.org/pypi/mf2py/]
** source: [https://github.com/tommorris/mf2py github.com/tommorris/mf2py]
** source: [https://github.com/tommorris/mf2py github.com/tommorris/mf2py]
-
** bleeding edge development: [https://github.com/kartikprabhu/mf2py github.com/kartikprabhu/mf2py]
 
= past parsers =
= past parsers =
Line 50: Line 57:
== More Java ==
== More Java ==
-
* [[any23]] (Anything to Triples)] parses microformats into RDF triples: http://any23.apache.org
 
-
** '''MAINTAINED''' but '''[https://issues.apache.org/jira/browse/ANY23-207 not yet supporting Microformats2]''' (<-- help welcome! comment there.)
 
* [http://zwitserloot.com/org.microformats.hCard/ org.microformats.hCard] by Reinier Zwitserloot
* [http://zwitserloot.com/org.microformats.hCard/ org.microformats.hCard] by Reinier Zwitserloot

Current revision

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:

Contents

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

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:

XML::Atom::Microformats

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

Swignition

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

Microtron

Main article: Microtron

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

mofo ruby microformats parser

Microformat Parser for Ruby

uformats

scrAPI

XSLT

Optimus

X2V

editing this page

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

see also

Microformats Parsers was last modified: Tuesday, March 28th, 2017

Views