iptc / sportsml-3

Development of SportsML 3
9 stars 1 forks source link

teamCoverage: enum or CV? #66

Open bquinn opened 1 year ago

bquinn commented 1 year ago

in coverageAttributes we have:

    <xs:attributeGroup name="coverageAttributes">
        <xs:attribute name="stats-coverage" type="QCodeType" use="optional">
            <xs:annotation>
                <xs:documentation>A relative indication of how many statistics are included in the item. SportsML vocab uri: http://cv.iptc.org/newscodes/spstatscoverage/</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="team-coverage" use="optional">
            <xs:annotation>
                <xs:documentation>Indicates whether the item contains information about one team, or
                    many teams.</xs:documentation>
            </xs:annotation>
            <xs:simpleType id="teamCoverage">
                <xs:restriction base="xs:string">
                    <xs:enumeration id="teamCoverageSingle-team" value="single-team">
                        <xs:annotation>
                            <xs:documentation>Contains only information about a single
                                team.</xs:documentation>
                        </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration id="teamCoverageMulti-team" value="multi-team">
                        <xs:annotation>
                            <xs:documentation>Contains information about many or all teams in a
                                league.</xs:documentation>
                        </xs:annotation>
                    </xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>

https://cv.iptc.org/newscodes/spteamcoverage/ exists. So I think it's supposed to be a CV. But currently the schema defines it as an enum.

I guess this would be a breaking change so would need to go into SportsML 4.0 ??

pauljkelly commented 1 year ago

Or we get rid of https://cv.iptc.org/newscodes/spteamcoverage/

A two-item vocab that I doubt will ever change.