iChessGame

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

Available formats

Specification

@prefix : <http://draft.ottr.xyz/chess/iChessGame#> .
@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/iChessGame( :ID : 1 , :WhiteName : 1 , :WhiteELO : 1 , :BlackName : 1 , :BlackELO : 1 , :ECO : 1 , :Result : 1 , <:MoveListItem> : + )
  ::
  http://draft.ottr.xyz/chess/iBlackPlayerAgent( _:b1 , :BlackName , :BlackELO )
  http://draft.ottr.xyz/chess/iWhitePlayerAgent( _:b2 , :WhiteName , :WhiteELO )
  ( :ID , rdf:type , chess:ChessGame )
  ( :ID , chess:providesAgentRole , _:b2 )
  ( :ID , chess:providesAgentRole , _:b1 )
  ( :ID , chess:hasResult , _:b3 )
  ( :ID , chess:hasOpening , _:b4 )
  ( :ID , chess:hasFirstHalfMove , <:MoveListItem> )
  ( _:b4 , rdf:type , chess:ChessGameOpening )
  ( _:b4 , chess:hasECOCode , :ECO )
  ( _:b3 , rdf:type , chess:ChessGameResult )
  ( _:b3 , chess:encodedAsSAN , :Result )
  ( <:MoveListItem> , rdf:first , :MoveListItem )
  ( <:MoveListItem> , rdf:rest , <> ) .

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/iChessGame#> .
@prefix chess: <http://draft.ottr.xyz/chess/ChessGame.ttl#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

:ID     a                        chess:ChessGame ;
        chess:hasFirstHalfMove   ( :MoveListItem ) ;
        chess:hasOpening         [ a                 chess:ChessGameOpening ;
                                   chess:hasECOCode  :ECO
                                 ] ;
        chess:hasResult          [ a                   chess:ChessGameResult ;
                                   chess:encodedAsSAN  :Result
                                 ] ;
        chess:providesAgentRole  [ a                  chess:WhitePlayerRole , chess:AgentRole ;
                                   chess:performedBy  [ a                chess:ChessPlayer ;
                                                        chess:hasName    :WhiteName ;
                                                        chess:hasRating  :WhiteELO
                                                      ]
                                 ] ;
        chess:providesAgentRole  [ a                  chess:BlackPlayerRole , chess:AgentRole ;
                                   chess:performedBy  [ a                chess:ChessPlayer ;
                                                        chess:hasName    :BlackName ;
                                                        chess:hasRating  :BlackELO
                                                      ]
                                 ] .

Source

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

@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/iChessGame#> .

<http://draft.ottr.xyz/chess/iChessGame> a ottr:Template ;
   ottr:withVariables ( :ID :WhiteName :WhiteELO :BlackName :BlackELO :ECO :Result ( :MoveListItem ) ) .

:ID a chess:ChessGame ;
   chess:providesAgentRole _:white , _:black ;
   chess:hasResult  [ a chess:ChessGameResult ; chess:encodedAsSAN :Result ] ;
   chess:hasOpening [ a chess:ChessGameOpening ; chess:hasECOCode :ECO ] ;
   chess:hasFirstHalfMove ( :MoveListItem ) .

[] ottr:templateRef <http://draft.ottr.xyz/chess/iWhitePlayerAgent> ;
   ottr:withValues ( _:white :WhiteName :WhiteELO ) .

[] ottr:templateRef <http://draft.ottr.xyz/chess/iBlackPlayerAgent> ;
   ottr:withValues ( _:black :BlackName :BlackELO ) .