hresume parsing tests

This page was design to test the parsing of hresume and its output to the newer JSON structure of micorformats 2. These tests are part of the micorformats 2 test suite.

Theses are backwards compatibility tests for the older version 1 microformats specification. Please do not use this as a reference for authoring microformats.

Just a name (h-resume parsing test)

Tim Berners-Lee, invented the World Wide Web.

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "name": ["Tim Berners-Lee, invented the World Wide Web."]
        }
    }]
}

Contact (h-resume parsing test)

Tim Berners-Lee

MIT

32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)

Tel:+1 (617) 253 5702

Email:

Invented the World Wide Web.

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "contact": [{
                "value": "Tim Berners-Lee MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work) Tel:+1 (617) 253 5702 Email:timbl@w3.org",
                "type": ["h-card"],
                "properties": {
                    "name": ["Tim Berners-Lee"],
                    "org": ["MIT"],
                    "adr": [{
                        "value": "32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)",
                        "type": ["h-adr"],
                        "properties": {
                            "street-address": ["32 Vassar Street"], 
                            "extended-address": ["Room 32-G524"], 
                            "locality": ["Cambridge"], 
                            "region": ["MA"], 
                            "postal-code": ["02139"], 
                            "country-name": ["USA"],
                            "name": ["32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)"]
                        }
                    }],
                    "tel": ["+1 (617) 253 5702"],
                    "email": ["mailto:timbl@w3.org"]
                }
            }],
            "summary": ["Invented the World Wide Web."]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["Tim Berners-Lee"],
            "org": ["MIT"],
            "adr": [{
                "value": "32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)",
                "type": ["h-adr"],
                "properties": {
                    "street-address": ["32 Vassar Street"], 
                    "extended-address": ["Room 32-G524"], 
                    "locality": ["Cambridge"], 
                    "region": ["MA"], 
                    "postal-code": ["02139"], 
                    "country-name": ["USA"],
                    "name": ["32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. (Work)"]
                }
            }],
            "tel": ["+1 (617) 253 5702"],
            "email": ["mailto:timbl@w3.org"]
        }
    }]
}

Work experience (h-resume parsing test)

Tim Berners-Lee

Director of the World Wide Web Foundation

Invented the World Wide Web.


Director

World Wide Web Foundation

– Present

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "contact": [{
                "value": "Tim Berners-Lee Director of the World Wide Web Foundation",
                "type": ["h-card"],
                "properties": {
                    "name": ["Tim Berners-Lee"],
                    "title": ["Director of the World Wide Web Foundation"]
                }
            }],
            "summary": ["Invented the World Wide Web."],
            "experience": [{
                "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)",
                "type": ["h-event", "h-card"],
                "properties": {
                    "title": ["Director"],
                    "name": ["World Wide Web Foundation"],
                    "org": ["World Wide Web Foundation"],
                    "url": ["http://www.webfoundation.org/"],
                    "start": ["2009-01-18"],
                    "duration": ["P2Y11M"]
                }
            }]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["Tim Berners-Lee"],
            "title": ["Director of the World Wide Web Foundation"]
        }
    },{
        "type": ["h-event"],
        "properties": {
            "name": ["World Wide Web Foundation"],
            "url": ["http://www.webfoundation.org/"],
            "start": ["2009-01-18"],
            "duration": ["P2Y11M"]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "title": ["Director"],
            "name": ["World Wide Web Foundation"],
            "org": ["World Wide Web Foundation"],
            "url": ["http://www.webfoundation.org/"]
        }
    }]
}

Educational experience (h-resume parsing test)

Tim Berners-Lee

Director of the World Wide Web Foundation

Invented the World Wide Web.


The Queen's College, Oxford University, BA Hons (I) Physics

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "contact": [{
                "value": "Tim Berners-Lee Director of the World Wide Web Foundation",
                "type": ["h-card"],
                "properties": {
                    "name": ["Tim Berners-Lee"],
                    "title": ["Director of the World Wide Web Foundation"]
                }
            }],
            "summary": ["Invented the World Wide Web."],
            "education": [{
                "value": "The Queen's College, Oxford University, BA Hons (I) Physics 1973 - 1976",
                "type": ["h-event", "h-card"],
                "properties": {
                    "name": ["The Queen's College, Oxford University"],
                    "org": ["The Queen's College, Oxford University"],
                    "description": ["BA Hons (I) Physics"],
                    "start": ["1973-09"],
                    "end": ["1976-06"]
                }
            }]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["Tim Berners-Lee"],
            "title": ["Director of the World Wide Web Foundation"]
        }
    },{
        "type": ["h-event"],
        "properties": {
            "name": ["The Queen's College, Oxford University"],
            "description": ["BA Hons (I) Physics"],
            "start": ["1973-09"],
            "end": ["1976-06"]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["The Queen's College, Oxford University"],
            "org": ["The Queen's College, Oxford University"],
            "description": ["BA Hons (I) Physics"]
        }
    }]
}

Skills (h-resume parsing test)

Tim Berners-Lee, invented the World Wide Web.

Skills:

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "contact": [{
                "value": "Tim Berners-Lee",
                "type": ["h-card"],
                "properties": {
                    "name": ["Tim Berners-Lee"]
                }
            }],
            "summary": ["invented the World Wide Web"]
        }
    }]
}

Affiliations (h-resume parsing test)

Tim Berners-Lee, invented the World Wide Web.

Belongs to following groups:

W3C

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "contact": [{
                "value": "Tim Berners-Lee",
                "type": ["h-card"],
                "properties": {
                    "name": ["Tim Berners-Lee"]
                }
            }],
            "summary": ["invented the World Wide Web"],
            "affiliation": [{
                "value": "",
                "type": ["h-card"],
                "properties": {
                    "name": ["W3C"],
                    "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"],
                    "url": ["http://www.w3.org/"]
                }
            }]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["W3C"],
            "photo": ["http://www.w3.org/Icons/WWW/w3c_home_nb.png"],
            "url": ["http://www.w3.org/"]
        }
    }]
}

Change log:

Contributors:

The orginal test also had contributions from: