iptc / sport-schema

The next generation of sports data, based on IPTC’s SportsML and semantic web principles
12 stars 1 forks source link

How to link Athletes to the Teams they are playing for during events? #191

Open Pupix opened 1 month ago

Pupix commented 1 month ago

Hello,

While looking over some of the samples, I noticed that IndividualParticipation is used in both, individual and team sports, and there's no way to distinguish between the two use cases.

Say I wanted to know What's the list of events an athlete participated in and for what team in each event?.

Taking the esports sample as an example.

Any given Athlete has his IndividualParticipation that links him to the Event. The Team for Athlete X can be figured out using the Membership (sample queries here and here), however if the Athlete is no longer a member of the Team, the link is broken and the Team can't be figured out anymore.

Even if the Membership link to a Team remains forever but it ends, so there's an endDate, now I have to figure out in which of the two teams the Athlete was a part of at that time using date ranges, if they are both available on the Event, otherwise I have to use the end of the day the Event started probably. At this point it feels like using heuristics to figure stuff out instead of being certain.

Is there a property or could there be one to denote this link between the two Participation types? Something akin to alignment in TeamParticipation to assign home/away sides. Perhaps a parent-child relationship since the IndividualParticipation can't exist without the TeamParticipation for team sports.

Cheers, Robert

pauljkelly commented 1 month ago

I see what you mean. We thought of something like a property called hasTeamParticipation for IndividualParticipation that would make a direct link. What do you think? (Obviously, you'd leave it out for an individual sport)

Since you are immersing yourself so much in the schema would you be interested in joining one of our regular meetings to discuss your work? We're always interested in getting feedback and use cases.

Pupix commented 1 month ago

That's exactly what I am doing right now too, naming may differ but the idea behind it is that. My first line of thought was creating a parent-child relationship for Participation since it seems much more flexible, but then when actually using it, I noticed it was way too generic and didn't convey the relationship properly. After more thinking I settled by adding something similar to what you suggested and linking the TeamParticipation.

As for the question about the meetings, I'd be glad to participate and see what's going on. Let me know if I should participate on a specific date or just come in whenever. I found the schedule here.

pauljkelly commented 1 month ago

Yes, next meeting is Tuesday July 30

Pupix commented 3 weeks ago

Unfortunately I won't be able to attend this week. I will drop in on the 6th.

bquinn commented 2 weeks ago

Here's what we're considering... adding a hasTeamParticipation property to IndividualParticipation that would link the two.

Screenshot 2024-08-06 at 16 56 19
bquinn commented 4 days ago

@Pupix what are your views on our proposal? @riannella you may also have views on this? We're planning on releasing a Sport Schema v1.1 in a couple of months so it would be great to include a fix for this.