h-resume parsing tests

This page was design to test the parsing of h-resume. These tests are part of the micorformats 2 test suite.

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

Invented the World Wide Web.


MIT

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

Tel:+1 (617) 253 5702

Email:timbl@w3.org

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "name": ["Tim Berners-Lee"],
            "summary": ["Invented the World Wide Web."],
             "contact": [{
                "value": "MIT 32 Vassar Street, Room 32-G524, Cambridge, MA 02139, USA. Tel:+1 (617) 253 5702 Email:timbl@w3.org",
                "type": ["h-card"],
                "properties": {
                    "name": ["MIT"],
                    "street-address": ["32 Vassar Street"], 
                    "extended-address": ["Room 32-G524"], 
                    "locality": ["Cambridge"], 
                    "region": ["MA"], 
                    "postal-code": ["02139"], 
                    "country-name": ["USA"],
                    "tel": ["+1 (617) 253 5702"],
                    "email": ["mailto:timbl@w3.org"]
                }
            }]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["MIT"],
            "street-address": ["32 Vassar Street"], 
            "extended-address": ["Room 32-G524"], 
            "locality": ["Cambridge"], 
            "region": ["MA"], 
            "postal-code": ["02139"], 
            "country-name": ["USA"],
            "tel": ["+1 (617) 253 5702"],
            "email": ["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": {
            "name": ["Tim Berners-Lee"],
            "summary": ["Invented the World Wide Web."],
            "contact": [{
                "value": "Director of the World Wide Web Foundation",
                "type": ["h-card"],
                "properties": {
                    "name": ["Director of the World Wide Web Foundation"],
                    "title": ["Director of the World Wide Web Foundation"]
                }
            }],
            "experience": [{
                "value": "Director World Wide Web Foundation Jan 2009 - Present (2 years 11 month)",
                "type": ["h-event", "h-card"],
                "properties": {
                    "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": ["Director of the World Wide Web Foundation"],
            "title": ["Director of the World Wide Web Foundation"]
        }
    },{
        "type": ["h-event"],
        "properties": {
            "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": ["World Wide Web Foundation"],
            "org": ["World Wide Web Foundation"],
            "url": ["http://www.webfoundation.org/"],
            "start": ["2009-01-18"],
            "duration": ["P2Y11M"]
        }
    }]
}

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": {
            "name": ["Tim Berners-Lee"],
            "summary": ["Invented the World Wide Web."],
            "contact": [{
                "value": "Director of the World Wide Web Foundation",
                "type": ["h-card"],
                "properties": {
                    "name": ["Director of the World Wide Web Foundation"],
                    "title": ["Director of the World Wide Web Foundation"]
                }
            }],
            "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": ["Director of the World Wide Web Foundation"],
            "title": ["Director of the World Wide Web Foundation"]
        }
    },{
        "type": ["h-event"],
        "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": ["World Wide Web Foundation"],
            "org": ["World Wide Web Foundation"],
            "url": ["http://www.webfoundation.org/"],
            "start": ["2009-01-18"],
            "duration": ["P2Y11M"]
        }
    }]
}

Skills (h-resume parsing test)

Tim Berners-Lee, invented the World Wide Web.

Skills:
  • information systems
  • advocacy
  • leadership

The expected JSON output:


{
    "items": [{
        "type": ["h-resume"],
        "properties": {
            "name": ["Tim Berners-Lee"],
            "summary": ["invented the World Wide Web"],
            "skill": ["information systems", "advocacy", "leadership"]
        }
    }]
}

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": {
            "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 :