include pattern tests

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

itemref include pattern - h-card (h-card parsing test)

Brendan Eich
Mitchell Baker

Mozilla

665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.

The expected JSON output:


{
    "items": [{
        "type": ["h-card"],
        "properties": {
            "name": ["Brendan Eich"],
            "org": ["Mozilla"],
            "adr": [{
                "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.",           
                "type": ["h-adr"],
                "properties": {
                    "street-address": ["665 3rd St."], 
                    "extended-address": ["Suite 207"], 
                    "locality": ["San Francisco"], 
                    "region": ["CA"], 
                    "postal-code": ["94107"], 
                    "country-name": ["U.S.A."], 
                    "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
                }
            }]
        }
    },{
        "type": ["h-card"],
        "properties": {
            "name": ["Mitchell Baker"],
            "org": ["Mozilla"],
            "adr": [{
                "value": "665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A.",        
                "type": ["h-adr"],
                "properties": {
                    "street-address": ["665 3rd St."], 
                    "extended-address": ["Suite 207"], 
                    "locality": ["San Francisco"], 
                    "region": ["CA"], 
                    "postal-code": ["94107"], 
                    "country-name": ["U.S.A."], 
                    "name": ["665 3rd St. Suite 207 San Francisco, CA 94107 U.S.A."]
                }
            }]
        }
    }]
}

itemref include pattern - h-event (h-card parsing test)

Monetizing Android Apps - spaekers: Chrix Finne, Kenneth Lui - Room 10
New Low-Level Media APIs in Android - spaekers: Dave Burke - Room 11

Session 01 is between: to

Moscone Center, San Francisco

The expected JSON output:


{
    "items": [{
            "type": ["h-event"],
            "properties": {
                "name": ["Monetizing Android Apps"],
                "speaker": ["Chrix Finne","Kenneth Lui"],
                "location": [{
                    "value": "Room 10 Moscone Center, San Francisco",        
                    "type": ["h-adr"],
                    "properties": {
                        "extended-address": ["Room 10", "Moscone Center"], 
                        "locality": ["San Francisco"], 
                        "name": ["Room 10 Moscone Center, San Francisco"]
                    }
                }],
                "start": ["2012-06-27T15:45:00-0800"],
                "end": ["2012-06-27T16:45:00-0800"]
            }
        },{
            "type": ["h-event"],
            "properties": {
                "name": ["New Low-Level Media APIs in Android"],
                "speaker": ["Dave Burke"],
                "location": [{
                    "value": "Room 11 Moscone Center, San Francisco",        
                    "type": ["h-adr"],
                    "properties": {
                        "extended-address": ["Room 11", "Moscone Center"], 
                        "locality": ["San Francisco"], 
                        "name": ["Room 11 Moscone Center, San Francisco"]
                    }
                }],
                "start": ["2012-06-27T15:45:00-0800"],
                "end": ["2012-06-27T16:45:00-0800"]
            }
        },{        
            "type": ["h-adr"],
            "properties": {
                "extended-address": ["Room 10", "Moscone Center"], 
                "locality": ["San Francisco"], 
                "name": ["Room 10 Moscone Center, San Francisco"]
            }
        },{        
            "type": ["h-adr"],
            "properties": {
                "extended-address": ["Room 11", "Moscone Center"], 
                "locality": ["San Francisco"], 
                "name": ["Room 11 Moscone Center, San Francisco"]
            }
        }
    ]
}

Table header include pattern (h-card parsing test)

Opera
Chris Mills
Erik Möller

The expected JSON output:


{
    "items": [{
            "type": ["h-card"],
            "properties": {
                "name": ["Chris Mills"],
                "url": ["http://dev.opera.com/"],
                "org": ["Opera"]
            }
        },{
            "type": ["h-card"],
            "properties": {
                "name": ["Erik Möller"],
                "url": ["http://dev.opera.com/"],
                "org": ["Opera"]
            }
        }
    ]
}

Hyperlink header include pattern (h-card parsing test)

Ben Ward Twitter
Dan Webb Twitter

Twitter

1355 Market St, San Francisco, CA 94103

The expected JSON output:


{
    "items": [{
            "type": ["h-card"],
            "properties": {
                "name": ["Ben Ward"],
                "org": ["Twitter"],
                "adr": [{
                    "value": "1355 Market St, San Francisco, CA 94103",           
                    "type": ["h-adr"],
                    "properties": {
                        "street-address": ["1355 Market St"],  
                        "locality": ["San Francisco"], 
                        "region": ["CA"], 
                        "postal-code": ["94103"],
                        "name": ["1355 Market St, San Francisco, CA 94103"]
                    }
                }]
            }
        },{
            "type": ["h-card"],
            "properties": {
                "name": ["Dan Webb"],
                "org": ["Twitter"],
                "adr": [{
                    "value": "1355 Market St, San Francisco, CA 94103",           
                    "type": ["h-adr"],
                    "properties": {
                        "street-address": ["1355 Market St"],  
                        "locality": ["San Francisco"], 
                        "region": ["CA"], 
                        "postal-code": ["94103"],
                        "name": ["1355 Market St, San Francisco, CA 94103"]
                    }
                }]
            }
        }
    ]
}

Object include pattern (h-card parsing test)

HTML5 & CSS3 latest features in action! - David Rousset -
Building High-Performing JavaScript for Modern Engines - John-David Dalton and Amanda Silver -

Build Conference

Redmond, Washington, USA

The expected JSON output:


{
    "items": [{
            "type": ["h-event"],
            "properties": {
                "name": ["HTML5 & CSS3 latest features in action!"],
                "speaker": ["David Rousset"],
                "summary": ["Build Conference"],
                "start": ["2012-10-30T11:45:00-0800"],
                "location": [{
                    "value": "Redmond, Washington, USA",        
                    "type": ["h-adr"],
                    "properties": {
                        "locality": ["Redmond"], 
                        "region": ["Washington"], 
                        "country-name": ["USA"], 
                        "name": ["Redmond, Washington, USA"]
                    }
                }]
            }
        },{
            "type": ["h-event"],
            "properties": {
                "name": ["Building High-Performing JavaScript for Modern Engines"],
                "speaker": ["John-David Dalton","Amanda Silver"],
                "summary": ["Build Conference"],
                "start": ["2012-10-31T11:15:00-0800"],
                "location": [{
                    "value": "Redmond, Washington, USA",        
                    "type": ["h-adr"],
                    "properties": {
                        "locality": ["Redmond"], 
                        "region": ["Washington"], 
                        "country-name": ["USA"], 
                        "name": ["Redmond, Washington, USA"]
                    }
                }]
            }
        }
    ]
}

Change log:

Contributors :