Composition

Data Dictionary for Event Composition

The following example shows how the Golf event composition data is identified. The data tables below will identify the properties available within the metadata.

{
  "round1": {
    "code": "scope:round1",
    "name": "Round 1",
    "entrants": [
      {
        "id": 8217031,
        "number": 1,
        "participant": {
          "id": 198332,
          "name": "Byeong-Hun An",
          "firstName": "Byeong-Hun",
          "lastName": "An",
          "gender": "male",
          "type": "athlete",
          "country": {
            "id": 88,
            "name": "South Korea"
          }
        },
        "meta": {
          "starting-hole": {
            "code": "entrant:starting-hole",
            "name": "Number Of Hole Where Player Starts",
            "value": "1"
          },
          "par1": {
            "code": "entrant:par1",
            "name": "Par For Hole 1",
            "value": "4"
          },
          "par2": {
            "code": "entrant:par2",
            "name": "Par For Hole 2",
            "value": "5"
          },          
          "par18": {
            "code": "entrant:par18",
            "name": "Par For Hole 18",
            "value": "4"
          },
          "strokes1": {
            "code": "entrant:strokes1",
            "name": "Strokes For Hole 1",
            "value": "4"
          },
          "strokes2": {
            "code": "entrant:strokes2",
            "name": "Strokes For Hole 2",
            "value": "5"
          },          
          "tee-time": {
            "code": "entrant:tee-time",
            "name": "Tee Time",
            "value": "2017-04-06T15:40:00Z"
          },
          "venue-fk": {
            "code": "entrant:venue-fk",
            "name": "Venue Id",
            "value": "4193"
          }
        }
      }      
    ],
    "updated": "2017-04-04T21:33:21Z"
  }  
}
<?xml version="1.0" encoding="utf-8" ?>
<pa:sports-content xmlns="http://iptc.org/std/nar/2006-10-01/" xmlns:pa="http://sport-api.pa.press.net/2016-09-30/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <pa:sports-metadata doc-id="http://sport.api.press.net/v1/event/2314552/composition" document-class="pa:event-composition"></pa:sports-metadata>
    <pa:sports-event id="event.2314552">
        <event-metadata>
            <sports-property formal-name="common:updated" value="2017-04-09T04:24:46Z"/>
            <sports-property formal-name="common:updated:round1" value="2017-04-04T21:33:21Z"/>
            <sports-property formal-name="common:updated:round2" value="2017-04-04T21:34:48Z"/>
            <sports-property formal-name="common:updated:round3" value="2017-04-08T00:44:07Z"/>
            <sports-property formal-name="common:updated:round4" value="2017-04-09T04:24:46Z"/>
        </event-metadata>
        <player>
            <player-metadata key="player:60018" gender="male" nationality="Italy">
                <name>Francesco Molinari</name>
            </player-metadata>
            <player-stats>
                <stats>
                    <stat stat-type="collection:round">
                        <stat stat-type="scope:round1">
                            <stat stat-type="entrant:starting-hole" value="1"></stat>
                            <stat stat-type="collection:par">
                                <stat stat-type="entrant:par1" value="4"></stat>
                                <stat stat-type="entrant:par2" value="5"></stat>
                                <stat stat-type="entrant:par3" value="4"></stat>
                                <stat stat-type="entrant:par4" value="3"></stat>
                                <stat stat-type="entrant:par5" value="4"></stat>
                                <stat stat-type="entrant:par6" value="3"></stat>
                                <stat stat-type="entrant:par7" value="4"></stat>
                                <stat stat-type="entrant:par8" value="5"></stat>
                                <stat stat-type="entrant:par9" value="4"></stat>
                                <stat stat-type="entrant:par10" value="4"></stat>
                                <stat stat-type="entrant:par11" value="4"></stat>
                                <stat stat-type="entrant:par12" value="3"></stat>
                                <stat stat-type="entrant:par13" value="5"></stat>
                                <stat stat-type="entrant:par14" value="4"></stat>
                                <stat stat-type="entrant:par15" value="5"></stat>
                                <stat stat-type="entrant:par16" value="3"></stat>
                                <stat stat-type="entrant:par17" value="4"></stat>
                                <stat stat-type="entrant:par18" value="4"></stat>
                            </stat>
                            <stat stat-type="collection:strokes">
                                <stat stat-type="entrant:strokes1" value="5"></stat>
                                <stat stat-type="entrant:strokes2" value="5"></stat>
                                <stat stat-type="entrant:strokes3" value="5"></stat>
                                <stat stat-type="entrant:strokes4" value="5"></stat>
                                <stat stat-type="entrant:strokes5" value="4"></stat>
                                <stat stat-type="entrant:strokes6" value="3"></stat>
                                <stat stat-type="entrant:strokes7" value="4"></stat>
                                <stat stat-type="entrant:strokes8" value="4"></stat>
                                <stat stat-type="entrant:strokes9" value="4"></stat>
                                <stat stat-type="entrant:strokes10" value="5"></stat>
                                <stat stat-type="entrant:strokes11" value="5"></stat>
                                <stat stat-type="entrant:strokes12" value="3"></stat>
                                <stat stat-type="entrant:strokes13" value="4"></stat>
                                <stat stat-type="entrant:strokes14" value="4"></stat>
                                <stat stat-type="entrant:strokes15" value="5"></stat>
                                <stat stat-type="entrant:strokes16" value="5"></stat>
                                <stat stat-type="entrant:strokes17" value="4"></stat>
                                <stat stat-type="entrant:strokes18" value="4"></stat>
                            </stat>
                            <stat stat-type="entrant:tee-time" value="2017-04-06T13:39:00Z"></stat>
                            <stat stat-type="entrant:venue-fk" value="4193"></stat>
                        </stat>
                        <stat stat-type="scope:round2">
                            <stat stat-type="entrant:starting-hole" value="1"></stat>
                            <stat stat-type="collection:par">
                                <stat stat-type="entrant:par1" value="4"></stat>
                                <stat stat-type="entrant:par2" value="5"></stat>
                                <stat stat-type="entrant:par3" value="4"></stat>
                                <stat stat-type="entrant:par4" value="3"></stat>
                                <stat stat-type="entrant:par5" value="4"></stat>
                                <stat stat-type="entrant:par6" value="3"></stat>
                                <stat stat-type="entrant:par7" value="4"></stat>
                                <stat stat-type="entrant:par8" value="5"></stat>
                                <stat stat-type="entrant:par9" value="4"></stat>
                                <stat stat-type="entrant:par10" value="4"></stat>
                                <stat stat-type="entrant:par11" value="4"></stat>
                                <stat stat-type="entrant:par12" value="3"></stat>
                                <stat stat-type="entrant:par13" value="5"></stat>
                                <stat stat-type="entrant:par14" value="4"></stat>
                                <stat stat-type="entrant:par15" value="5"></stat>
                                <stat stat-type="entrant:par16" value="3"></stat>
                                <stat stat-type="entrant:par17" value="4"></stat>
                                <stat stat-type="entrant:par18" value="4"></stat>
                            </stat>
                            <stat stat-type="collection:strokes">
                                <stat stat-type="entrant:strokes1" value="5"></stat>
                                <stat stat-type="entrant:strokes2" value="4"></stat>
                                <stat stat-type="entrant:strokes3" value="4"></stat>
                                <stat stat-type="entrant:strokes4" value="2"></stat>
                                <stat stat-type="entrant:strokes5" value="5"></stat>
                                <stat stat-type="entrant:strokes6" value="3"></stat>
                                <stat stat-type="entrant:strokes7" value="4"></stat>
                                <stat stat-type="entrant:strokes8" value="4"></stat>
                                <stat stat-type="entrant:strokes9" value="4"></stat>
                                <stat stat-type="entrant:strokes10" value="4"></stat>
                                <stat stat-type="entrant:strokes11" value="5"></stat>
                                <stat stat-type="entrant:strokes12" value="3"></stat>
                                <stat stat-type="entrant:strokes13" value="5"></stat>
                                <stat stat-type="entrant:strokes14" value="4"></stat>
                                <stat stat-type="entrant:strokes15" value="5"></stat>
                                <stat stat-type="entrant:strokes16" value="3"></stat>
                                <stat stat-type="entrant:strokes17" value="4"></stat>
                                <stat stat-type="entrant:strokes18" value="4"></stat>
                            </stat>
                            <stat stat-type="entrant:tee-time" value="2017-04-07T16:57:00Z"></stat>
                            <stat stat-type="entrant:venue-fk" value="4193"></stat>
                        </stat>
                    </stat>
                </stats>
            </player-stats>
        </player>              
    </pa:sports-event>
</pa:sports-content>

Composition Property Location

Content TypePath
JSON$['key']
XML/:sports-content/:sports-event/:player/:player-stats/:stats/:stat
PropertyCodeDesscription
round{n}*scope:round{n}*Used to record results for each round played.
final-resultscope:final-resultUsed to record results for match play games.




##Composition Entrant Property Location

Content TypePath
JSON$..entrants..meta
XML/:sports-content/:sports-event/:player/:player-stats/:stats/:stat/:stat/:stat
KeyCodeExampleUnit
mpscore-{n}*entrant:mpscore-{n}*1upString
par-{n}*entrant:par-{n}*3Number
starting-holeentrant:starting-hole1Number
strokes-{n}*entrant:strokes-{n}*1Number
tee-timeentrant:tee-time06:00Time
venue-fkentrant:venue-fk4012Number

*{n} = hole number, for example; {n} par-1 = the par for hole one, {n} par-2 = the par for hole 2 etc.


What’s Next