Skip to content

Instantly share code, notes, and snippets.

@tfgrahame
Last active April 27, 2020 09:19
Show Gist options
  • Save tfgrahame/e1e5d87227566de4efce05565c0d1643 to your computer and use it in GitHub Desktop.
Save tfgrahame/e1e5d87227566de4efce05565c0d1643 to your computer and use it in GitHub Desktop.
Example stats model
@prefix sport: <http://www.bbc.co.uk/ontologies/sport/> .
@prefix stat: <http://example-ontology/statistics/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<event1> a sport:SportsCompetition ;
sport:awayCompetitor <team1> ;
sport:homeCompetitor <team2> ;
stat:hasTeamStatistics <teamStats1> , <teamStats2> .
<team1> a sport:CompetitiveSportingOrganisation ;
stat:hasStatistics <teamStats1> .
<team2> a sport:CompetitiveSportingOrganisation ;
stat:hasStatistics <teamStats2> .
<teamStats1> a stat:Statistics ;
stat:score "1"^^xsd:integer .
<teamStats2> a stat:Statistics ;
stat:score "0"^^xsd:integer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment