Event-2

IRI: http://draft.ottr.xyz/chess/Event-2

Available formats

Specification

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

t-chess:Event-2( :xEvent : 1 class , :xRole : 1 class )
  ::
  t-chess:AgentRole-2( :xRole , :xEvent )
  ( :xEvent , rdf:type , owl:Class )
  ( :xEvent , rdfs:subClassOf , chess:Event ) .

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/Event-2#> .
@prefix chess: <http://draft.ottr.xyz/chess/ChessGame.ttl#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

:xRole  a                owl:Class ;
        rdfs:subClassOf  chess:AgentRole ;
        rdfs:subClassOf  [ a                         owl:Restriction ;
                           owl:onClass               :xEvent ;
                           owl:onProperty            [ a              owl:ObjectProperty ;
                                                       owl:inverseOf  chess:providesAgentRole
                                                     ] ;
                           owl:qualifiedCardinality  1
                         ] .

chess:providesAgentRole
        a       owl:ObjectProperty .

:xEvent  a               owl:Class ;
        rdfs:subClassOf  chess:Event ;
        rdfs:subClassOf  [ a                   owl:Restriction ;
                           owl:onProperty      chess:providesAgentRole ;
                           owl:someValuesFrom  :xRole
                         ] .

Source

Raw source - http://draft.ottr.xyz/chess/Event-2:

@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 t-chess:         <http://draft.ottr.xyz/chess/> .
@prefix chess:           <http://draft.ottr.xyz/chess/ChessGame.ttl#> .

@prefix :     <http://draft.ottr.xyz/chess/Event-2#> .

<http://draft.ottr.xyz/chess/Event-2>  a ottr:Template ;
  ottr:hasParameter :pEvent, :pRole .

:pEvent      ottr:index 1;  ottr:classVariable  :xEvent .
:pRole       ottr:index 2;  ottr:classVariable  :xRole .

:xEvent a owl:Class ;
  rdfs:subClassOf chess:Event .

[] ottr:templateRef t-chess:AgentRole-2 ;
  ottr:withValues ( :xRole :xEvent ) .