iptc / sport-schema

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

camelCase property names from spsocstat etc in sample data (XSLT) #115

Closed bquinn closed 1 year ago

bquinn commented 1 year ago

We agreed previously that we could leave "objects" as URIs, but anything used as a "predicate" had to be camelCase to stick with RDF conventions.

We have already created ontologies for the sport stats, eg ontologies/soccer-statistics.ttl defines the property spsocstat:cornerKicks. But the sample data files don't use those camelCased property names (yet).

So

<http://example.com/Participation/E2128610-EPLT13>
        rdf:type                       spact:TeamParticipation ;
        rdfs:label                     "Leicester City participation in Event E2128610" ;
        spsocstat:clearances-successful
                "12" ;
        spsocstat:corner-kicks         "7" ;
        spsocstat:fouls-commited       "13" ;
        spsocstat:free-kicks           "1" ;
        spsocstat:goals-against-total  "1" ;
        spsocstat:interceptions        "9" ;
        spsocstat:line-formation       "3412" ;
        spsocstat:offsides             "2" ;
        spsocstat:passes-total         "597" ;
        spsocstat:shots-blocked        "2" ;
        spsocstat:shots-on-goal-total  "5" ;
        spsocstat:shots-total          "13" ;
        spsocstat:tackles-lost         "7" ;
        spsocstat:tackles-total        "18" ;
        spsocstat:tackles-won          "11" ;
        spsocstat:tackles-won-percentage
                "0.611" ;
        spstat:event-outcome           speventoutcome:win ;
        spstat:score-opposing          "1" ;
        spstat:time-of-possession-percentage
                "67.1" ;
        spact:alignment                "home" ;
        spact:participationBy          <http://example.com/Team/EPLT13> ;
        spact:score                    "2" .

should become

<http://example.com/Participation/E2128610-EPLT13>
        rdf:type                       spact:TeamParticipation ;
        rdfs:label                     "Leicester City participation in Event E2128610" ;
        spsocstat:clearancesSuccessful
                "12" ;
        spsocstat:cornerKicks         "7" ;
        spsocstat:foulsCommited       "13" ;
        spsocstat:freeKicks           "1" ;
        spsocstat:goalsAgainstTotal  "1" ;
etc... up to
        sport:alignment                "home" ;
        sport:participationBy          <http://example.com/Team/EPLT13> ;
        sport:score                    "2" .

Note for the last three, the prefix should be sport, not spact.

bquinn commented 1 year ago

Fixed by PR #120