iChessGameReport

IRI: http://draft.ottr.xyz/chess/iChessGameReport

Available formats

Specification

@prefix : <http://draft.ottr.xyz/chess/iChessGameReport#> .
@prefix chess: <http://draft.ottr.xyz/chess/ChessGame.ttl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

http://draft.ottr.xyz/chess/iChessGameReport( :EventName : 1 , :EventSite : 1 , :EventDate : 1 , :WhiteName : 1 , :BlackName : 1 , :Result : 1 , :WhiteELO : 1 , :BlackELO : 1 , :ECO : 1 , <:MoveListItem> : + )
  ::
  http://draft.ottr.xyz/chess/iChessGame( _:b1 , :WhiteName , :WhiteELO , :BlackName , :BlackELO , :ECO , :Result , <:MoveListItem> )
  http://draft.ottr.xyz/chess/iTournament( _:b2 , :EventName , :EventSite , :EventDate )
  ( _:b3 , rdf:type , chess:ChessGameReport )
  ( _:b1 , chess:subEventOf , _:b2 )
  ( _:b1 , chess:hasReport , _:b3 ) .

Direct dependency templates

Templates instantiated in the body of this template:

Diagram of pattern

RDF graph visualisation of the expanded body:

Pattern

The pattern the template represents, i.e., the expanded template body.

@prefix :      <http://draft.ottr.xyz/chess/iChessGameReport#> .
@prefix chess: <http://draft.ottr.xyz/chess/ChessGame.ttl#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

[ a                        chess:ChessGame ;
  chess:hasFirstHalfMove   ( :MoveListItem ) ;
  chess:hasOpening         [ a                 chess:ChessGameOpening ;
                             chess:hasECOCode  :ECO
                           ] ;
  chess:hasReport          [ a  chess:ChessGameReport ] ;
  chess:hasResult          [ a                   chess:ChessGameResult ;
                             chess:encodedAsSAN  :Result
                           ] ;
  chess:providesAgentRole  [ a                  chess:AgentRole , chess:BlackPlayerRole ;
                             chess:performedBy  [ a                chess:ChessPlayer ;
                                                  chess:hasName    :BlackName ;
                                                  chess:hasRating  :BlackELO
                                                ]
                           ] ;
  chess:providesAgentRole  [ a                  chess:AgentRole , chess:WhitePlayerRole ;
                             chess:performedBy  [ a                chess:ChessPlayer ;
                                                  chess:hasName    :WhiteName ;
                                                  chess:hasRating  :WhiteELO
                                                ]
                           ] ;
  chess:subEventOf         [ a              chess:ChessTournament ;
                             chess:atPlace  [ a           chess:Place ;
                                              rdfs:label  :EventSite
                                            ] ;
                             chess:atTime   [ a           chess:TemporalExtent ;
                                              rdfs:label  :EventDate
                                            ] ;
                             chess:hasName  :EventName
                           ]
] .

Source

Raw source - http://draft.ottr.xyz/chess/iChessGameReport:

@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

@prefix ottr:   <http://ns.ottr.xyz/templates#> .

@prefix chess:  <http://draft.ottr.xyz/chess/ChessGame.ttl#> .
@prefix :       <http://draft.ottr.xyz/chess/iChessGameReport#> .

<http://draft.ottr.xyz/chess/iChessGameReport> a ottr:Template ;
   ottr:withVariables ( :EventName :EventSite :EventDate :WhiteName :BlackName :Result :WhiteELO :BlackELO :ECO ( :MoveListItem ) ) .

_:game chess:subEventOf _:tournament ;
       chess:hasReport [ a chess:ChessGameReport ] .

[] ottr:templateRef <http://draft.ottr.xyz/chess/iTournament> ;
   ottr:withValues ( _:tournament :EventName :EventSite :EventDate ) .

[] ottr:templateRef <http://draft.ottr.xyz/chess/iChessGame> ;
   ottr:withValues ( _:game :WhiteName :WhiteELO :BlackName :BlackELO :ECO :Result ( :MoveListItem ) ) .