What is it?

Optimus—is a microformats transformer. Easily transform your microformatted content to nice, clean, easily digestible, XML, JSON or JSON-P. You can also easily set filters to only receive particular formats.

Now your web site could really be your API with goodness of microformats and power of Optimus.

 How to use it?

http://microformatique.com/optimus/­?uri=web site URI­[&format=format­[&function=function]]­[&filter=filter]

Where:

web site URI
An address of the page you want to transform
format
Format should be either “xml”, “json” or “rss”. Default is “xml”.
function
Callback function for JSON
filter
Space-separated list of microformats. Default is “vcalendar hcard hatom hresume hreview hlisting xfolkentry adr geo xfn votelinks rel-nofollow rel-tag rel-license”. If format is “rss” filter is ignored.

 Example

http://microformatique.com/optimus/?uri=http://microformats.org

The result will be XML:

<?xml version="1.0" encoding="UTF-8"?>
<microformats from="http://microformats.org" title="Microformats">
    ...
    <hcard>
        <adr type="adr">
            <street-address>747 Howard Street</street-address>
            <region>California</region>
            <locality>San Francisco</locality>
        </adr>
        <fn>Moscone West</fn>
        <org>Moscone West</org>
    </hcard>
    <hcard>
        <fn>John Allsopp</fn>
        <role>author</role>
        <url href="http://westciv.typepad.com/dog_or_higher/"/>
    </hcard>
    <hcard>
        <fn>Jeremy Keith</fn>
        <url href="http://adactio.com/"/>
    </hcard>
    <hcard>
        <fn>Ryan</fn>
        <url href="http://theryanking.com/"/>
    </hcard>
    <hcalendar>
        <description>This means that any page created...</description>
        <dtstart date="2007-12-29">Today</dtstart>
        <summary>we are changing the microformats wiki to require that all contributions be placed into the public domain.</summary>
    </hcalendar>
    <hcalendar>
        <dtstart date="2007-07-17">Five months ago</dtstart>
        <summary>Rohit Khare  introduced the Voluntary Public Domain declaration to the microformats wiki</summary>
        <url href="http://microformats.org/wiki/User:Rohit"/>
    </hcalendar>
    ...
    <hatom>
        <tag href="http://microformats.org/wiki/microformats">microformats</tag>
        <tag href="http://creativecommons.org/licenses/publicdomain">Creative Commons Public Domain license</tag>
        <tag href="http://microformats.org/wiki/data-portability">data portability</tag>
        <tag href="http://creativecommons.org/projects/cczero">CC0</tag>
        <hentry>
            <author type="vcard">
                <fn>Tantek</fn>
                <url href="http://tantek.com/"/>
            </author>
            <bookmark href="http://microformats.org/blog/2007/12/29/making-open-standards-as-open-as-possible/"/>
            <tag href="http://microformats.org/wiki/microformats">microformats</tag>
            <tag href="http://creativecommons.org/licenses/publicdomain">Creative Commons Public Domain license</tag>
            <tag href="http://microformats.org/wiki/data-portability">data portability</tag>
            <tag href="http://creativecommons.org/projects/cczero">CC0</tag>
            <entry-title>Making open standards as open as possible — required public domain licensing of all microformats wiki contributions</entry-title>
            <entry-content>Today we are changing the microformats wiki...</entry-content>
            <entry-summary/>
            <updated date="2007-12-29T21:58:57">December 29th, 2007</updated>
        </hentry>
        ...
    </hatom>
    <adr>
        <region>California</region>
        <locality>San Francisco</locality>
    </adr>
    <adr>
        <street-address>747 Howard Street</street-address>
        <region>California</region>
        <locality>San Francisco</locality>
    </adr>
    <xfn/>
    <votelinks/>
    <rel-tag>
        <tag href="http://microformats.org/wiki/microformats">microformats</tag>
        <tag href="http://creativecommons.org/licenses/publicdomain">Creative Commons Public Domain license</tag>
        <tag href="http://microformats.org/wiki/data-portability">data portability</tag>
        <tag href="http://creativecommons.org/projects/cczero">CC0</tag>
    </rel-tag>
    <rel-nofollow/>
    <rel-license/>
</microformats>
http://microformatique.com/optimus/­?uri=http://microformats.org­&format=json­&function=parseJSON

The result will be JavaScript code:

parseJSON({
    from: "http://microformats.org",
    title: "Microformats",
    "hcard": [...{
        "adr": {
            "street-address": "747 Howard Street",
            "region": "California",
            "locality": "San Francisco"
        },
        "fn": "Moscone West",
        "org": "Moscone West"
    },
    {
        "fn": "John Allsopp",
        "role": "author",
        "url": "http://westciv.typepad.com/dog_or_higher/"
    },
    {
        "fn": "Jeremy Keith",
        "url": "http://adactio.com/"
    },
    {
        "fn": "Ryan",
        "url": "http://theryanking.com/"
    }],
    "hcalendar": [{
        "description": "This means that any page created, or any content added to the microformats wiki from here forward is placed into the public domain for maximum possible reuse.",
        "dtstart": "2007-12-29",
        "summary": "we are changing themicroformats wiki to require that all contributions be placed into the public domain."
    },
    {
        "dtstart": "2007-07-17",
        "summary": "Rohit Khare  introduced the Voluntary Public Domain declaration to the microformats wiki",
        "url": "http://microformats.org/wiki/User:Rohit"
    },
    {
        "description": "primary editors and authors of pages should start cleaning microformats.org wiki pages created before today of non-public-domain content, and then submitting them for review. After reviewing them, one of the admins will add theCreative Commons Public Domain License template (CC-PD license) to the bottom of the page.",
        "dtstart": "2008-02-01",
        "summary": "start cleaning microformats.org wiki pages"
    }...],
    "hatom": {
        tag: [{
            href: "http://microformats.org/wiki/microformats",
            value: "microformats"
        },
        {
            href: "http://creativecommons.org/licenses/publicdomain",
            value: "Creative Commons Public Domain license"
        },
        {
            href: "http://microformats.org/wiki/data-portability",
            value: "data portability"
        },
        {
            href: "http://creativecommons.org/projects/cczero",
            value: "CC0"
        }],
        hentry: [{
            "author": {
                "fn": "Tantek",
                "url": "http://tantek.com/"
            },
            "bookmark": "http://microformats.org/blog/2007/12/29/making-open-standards-as-open-as-possible/",
            tag: [{
                href: "http://microformats.org/wiki/microformats",
                value: "microformats"
            },
            {
                href: "http://creativecommons.org/licenses/publicdomain",
                value: "Creative Commons Public Domain license"
            },
            {
                href: "http://microformats.org/wiki/data-portability",
                value: "data portability"
            },
            {
                href: "http://creativecommons.org/projects/cczero",
                value: "CC0"
            }],
            "entry-title": "Making open standards as open as possible — required public domain licensing of all microformats wiki contributions",
            "entry-content": "Today  we are changing the microformats wiki...",
            "updated": "2007-12-29T21:58:57"
        },
        ...]
    },
    "adr": [{
        "region": "California",
        "locality": "San Francisco"
    },
    {
        "street-address": "747 Howard Street",
        "region": "California",
        "locality": "San Francisco"
    }],
    "rel-tag": {
        tag: [{
            href: "http://microformats.org/wiki/microformats",
            value: "microformats"
        },
        {
            href: "http://creativecommons.org/licenses/publicdomain",
            value: "Creative Commons Public Domain license"
        },
        {
            href: "http://microformats.org/wiki/data-portability",
            value: "data portability"
        },
        {
            href: "http://creativecommons.org/projects/cczero",
            value: "CC0"
        }]
    }
});