w3c / opentrack-cg

Repository for OpenTrack Community Group
https://w3c.github.io/opentrack-cg/spec/competition/
Other
27 stars 10 forks source link

Properties and classes to represent legs in relay races #10

Closed espinr closed 7 years ago

espinr commented 7 years ago

Currently, the model is able to describe results and start list of relay races (as teams), but we need to represent legs and intermediate times.

espinr commented 7 years ago

Included another entity 'RelaysLeg' so, in relays we will have teams results and those team results will have individual results for each leg:

{
    '@type' : 'Result',
    'name' : 'Results 4x100m Men - Heat 1', 
    'competitor' : 'FRA',
    'performance' : '43:39',
    'relaysLegs' : 
      [   
         {
             '@type' : 'RelaysLeg',
             'order' : 1,
             'athlete' : 'http://example.com/athlete:09822',
             'performance' :  { 'value': '10.56' } 
        },
         {
             '@type' : 'RelaysLeg',
             'order' : 2,
             'athlete' : 'http://example.com/athlete:09823',
             'performance' :  { 'value': '10.01' } 
        },
         {
             '@type' : 'RelaysLeg',
             'order' : 3,
             'athlete' : 'http://example.com/athlete:09824',
             'performance' :  { 'value': '10.58' } 
        },
         {
             '@type' : 'RelaysLeg',
             'order' : 4,
             'athlete' : 'http://example.com/athlete:09825',
             'performance' :  { 'value': '09.59' } 
        }
     ]
}
espinr commented 7 years ago

Now included rank, length, start point, end point, course in Legs