@prefix :        <https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/ExecutionModel.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 schema:  <http://schema.org/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix x3d:     <https://www.web3d.org/specifications/x3d-4.0.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.0#> .

:X3D a owl:NamedIndividual, x3do:X3D ;
  x3do:hasHead :head ;
  x3do:hasScene :Scene ;
  x3do:profile 'Immersive' ;
  x3do:version '4.0' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-4.0.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasMeta :meta_1_1, :meta_1_2, :meta_1_3, :meta_1_4, :meta_1_5, :meta_1_6, :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ExecutionModel.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D encodings example: execution model demonstrated. Click ball to see script-generated text appear.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman and Joe Williams' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '1 June 2002' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 September 2025' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.19 Execution model' ;
  x3do:name 'specificationSection' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19776-1v4.0-CD/Part01/examples.html#ExecutionModel' ;
  x3do:name 'specificationUrl' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/ExecutionModel.x3d' ;
  x3do:name 'identifier' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "ExecutionModel.x3d" .
:meta dcterms:description "X3D encodings example: execution model demonstrated. Click ball to see script-generated text appear." .
:meta dcterms:creator "Don Brutzman and Joe Williams" .
:meta dcterms:created "1 June 2002" .
:meta dcterms:modified "28 September 2025" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/ExecutionModel.x3d" .
:meta dcterms:generator "X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :TS, :Script1, :Script2, :Script3, :Script4, :Script5, :Script6, :Script7, :Collector, :Transform_2_11, :Shape_2_12, :Viewpoint_2_13 ;
  x3do:hasROUTE :ROUTE_2_14, :ROUTE_2_15, :ROUTE_2_16, :ROUTE_2_17, :ROUTE_2_18, :ROUTE_2_19, :ROUTE_2_20, :ROUTE_2_21, :ROUTE_2_22, :ROUTE_2_23, :ROUTE_2_24, :ROUTE_2_25 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'ExecutionModel.x3d' .
:TS a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'TS' ;
  x3do:description 'click to animate' .
:Script1 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_3_1, :field_2_3_2, :field_2_3_3, :field_2_3_4 ;
  x3do:DEF 'Script1' ;
  x3do:sourceCode """
ecmascript:
      function touchTime() {
        toScript2 = true;
      }
      function eventsProcessed() {
        string = 'Script1.eventsProcessed';
        toScript3 = true;
      }
""" .
:field_2_3_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script1 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'touchTime' ;
  x3do:type 'SFTime' .
:field_2_3_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script1 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toScript2' ;
  x3do:type 'SFBool' .
:field_2_3_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script1 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toScript3' ;
  x3do:type 'SFBool' .
:field_2_3_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script1 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'string' ;
  x3do:type 'SFString' .
:Script2 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_4_1, :field_2_4_2, :field_2_4_3 ;
  x3do:DEF 'Script2' ;
  x3do:sourceCode """
ecmascript:
      function fromScript1() {
      }
      function eventsProcessed() {
        string = 'Script2.eventsProcessed';
        toScript4 = true;
      }
""" .
:field_2_4_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromScript1' ;
  x3do:type 'SFBool' .
:field_2_4_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toScript4' ;
  x3do:type 'SFBool' .
:field_2_4_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'string' ;
  x3do:type 'SFString' .
:Script3 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_5_1, :field_2_5_2, :field_2_5_3, :field_2_5_4 ;
  x3do:DEF 'Script3' ;
  x3do:sourceCode """
ecmascript:
      function fromScript1() {
        toScript5 = true;
      }
      function eventsProcessed() {
        string = 'Script3.eventsProcessed';
        toScript6 = true;
      }
""" .
:field_2_5_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script3 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromScript1' ;
  x3do:type 'SFBool' .
:field_2_5_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script3 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toScript5' ;
  x3do:type 'SFBool' .
:field_2_5_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script3 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toScript6' ;
  x3do:type 'SFBool' .
:field_2_5_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script3 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'string' ;
  x3do:type 'SFString' .
:Script4 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_6_1 ;
  x3do:DEF 'Script4' ;
  x3do:sourceCode """
ecmascript:
      function fromScript2() {
      }
""" .
:field_2_6_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script4 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromScript2' ;
  x3do:type 'SFBool' .
:Script5 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_7_1 ;
  x3do:DEF 'Script5' ;
  x3do:sourceCode """
ecmascript:
       function fromScript3() {
      }
""" .
:field_2_7_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script5 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromScript3' ;
  x3do:type 'SFBool' .
:Script6 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_8_1, :field_2_8_2, :field_2_8_3 ;
  x3do:DEF 'Script6' ;
  x3do:sourceCode """
ecmascript:
      function fromScript3() {
        toScript7 = true;
      }
      function eventsProcessed() {
        string = 'Script6.eventsProcessed';
      }
""" .
:field_2_8_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script6 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromScript3' ;
  x3do:type 'SFBool' .
:field_2_8_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script6 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toScript7' ;
  x3do:type 'SFBool' .
:field_2_8_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script6 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'string' ;
  x3do:type 'SFString' .
:Script7 a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_9_1 ;
  x3do:DEF 'Script7' ;
  x3do:sourceCode """
ecmascript:
      function fromScript6 () {
      }
""" .
:field_2_9_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Script7 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromScript6' ;
  x3do:type 'SFBool' .
:Collector a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_10_1, :field_2_10_2 ;
  x3do:DEF 'Collector' ;
  x3do:sourceCode """
ecmascript:
      function initialize() {
        string[0] = 'Event Sequence:';
      }
      function fromString(s) {
        i = string.length;
        string[i] = ' ( ' + i + ' ) ' + s + ' occurred';
      }
""" .
:field_2_10_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Collector ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'string' ;
  x3do:type 'MFString' .
:field_2_10_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :Collector ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'fromString' ;
  x3do:type 'SFString' .
:Transform_2_11 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_11_1 ;
  x3do:translation ( 0 2 0 ) .
:Shape_2_11_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_11 ;
  x3do:hasAppearance :Appearance_2_11_1_1 ;
  x3do:hasGeometry :Sphere_2_11_1_2 .
:Appearance_2_11_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_11_1 ;
  x3do:hasMaterial :Material_2_11_1_1_1 .
:Material_2_11_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_11_1_1 ;
  x3do:diffuseColor ( 0 0.6 0 ) .
:Sphere_2_11_1_2 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :Shape_2_11_1 .
:Shape_2_12 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Scene ;
  x3do:hasGeometry :Result ;
  x3do:hasAppearance :Appearance_2_12_2 .
:Result a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_12 ;
  x3do:DEF 'Result' .
:Appearance_2_12_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_12 ;
  x3do:hasMaterial :Material_2_12_2_1 .
:Material_2_12_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_12_2 ;
  x3do:diffuseColor ( 0.101961 0.839216 1 ) .
:Viewpoint_2_13 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Execution model example' ;
  x3do:position ( 7 -1 18 ) .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TS' ;
  x3do:toField 'touchTime' ;
  x3do:toNode 'Script1' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toScript2' ;
  x3do:fromNode 'Script1' ;
  x3do:toField 'fromScript1' ;
  x3do:toNode 'Script2' .
:ROUTE_2_16 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toScript3' ;
  x3do:fromNode 'Script1' ;
  x3do:toField 'fromScript1' ;
  x3do:toNode 'Script3' .
:ROUTE_2_17 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toScript4' ;
  x3do:fromNode 'Script2' ;
  x3do:toField 'fromScript2' ;
  x3do:toNode 'Script4' .
:ROUTE_2_18 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toScript5' ;
  x3do:fromNode 'Script3' ;
  x3do:toField 'fromScript3' ;
  x3do:toNode 'Script5' .
:ROUTE_2_19 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toScript6' ;
  x3do:fromNode 'Script3' ;
  x3do:toField 'fromScript3' ;
  x3do:toNode 'Script6' .
:ROUTE_2_20 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toScript7' ;
  x3do:fromNode 'Script6' ;
  x3do:toField 'fromScript6' ;
  x3do:toNode 'Script7' .
:ROUTE_2_21 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'string' ;
  x3do:fromNode 'Script1' ;
  x3do:toField 'fromString' ;
  x3do:toNode 'Collector' .
:ROUTE_2_22 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'string' ;
  x3do:fromNode 'Script2' ;
  x3do:toField 'fromString' ;
  x3do:toNode 'Collector' .
:ROUTE_2_23 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'string' ;
  x3do:fromNode 'Script3' ;
  x3do:toField 'fromString' ;
  x3do:toNode 'Collector' .
:ROUTE_2_24 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'string' ;
  x3do:fromNode 'Script6' ;
  x3do:toField 'fromString' ;
  x3do:toNode 'Collector' .
:ROUTE_2_25 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'string' ;
  x3do:fromNode 'Collector' ;
  x3do:toField 'string' ;
  x3do:toNode 'Result' .
