@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/TimeSensorChaining.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 '3.3' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.3.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'TimeSensorChaining.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Connecting TimeSensor nodes so that the completion of one behavior chain triggers another.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman and MV3204 class' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '2 September 2009' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '27 August 2023' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'under development' ;
  x3do:name 'warning' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/TimeSensorChaining.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 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_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "TimeSensorChaining.x3d" .
:meta dcterms:description "Connecting TimeSensor nodes so that the completion of one behavior chain triggers another." .
:meta dcterms:creator "Don Brutzman and MV3204 class" .
:meta dcterms:created "2 September 2009" .
:meta dcterms:modified "27 August 2023" .
:meta dcterms:warning "under development" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/TimeSensorChaining.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, :Viewpoint_2_2, :DoorHingeTransform, :Transform_2_4, :Clock1, :DoorOpener, :SetTextInMotion, :DoorOpenComplete, :TriggerOpeningAnimation, :Clock2, :SetTextOpen, :DoorColorInterpolator, :Clock3, :ClockReversal, :Clock3CompleteTrigger, :SetTextClosed ;
  x3do:hasROUTE :ROUTE_2_6, :ROUTE_2_8, :ROUTE_2_9, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_14, :ROUTE_2_15, :ROUTE_2_17, :ROUTE_2_19, :ROUTE_2_21, :ROUTE_2_22, :ROUTE_2_24, :ROUTE_2_25, :ROUTE_2_27, :ROUTE_2_28, :ROUTE_2_29, :ROUTE_2_31, :ROUTE_2_32, :ROUTE_2_33, :ROUTE_2_35, :ROUTE_2_37, :ROUTE_2_38 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'TimeSensorChaining.x3d' .
:Viewpoint_2_2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'TimeSensor chaining example' ;
  x3do:position ( 0 1 6 ) .
:DoorHingeTransform a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :UserSelectDoor, :Shape_2_3_2 ;
  x3do:DEF 'DoorHingeTransform' ;
  x3do:center ( -0.65 0 0 ) ;
  x3do:translation ( 0 1 0 ) .
:UserSelectDoor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :DoorHingeTransform ;
  x3do:DEF 'UserSelectDoor' ;
  x3do:description 'click to operate door' .
:Shape_2_3_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :DoorHingeTransform ;
  x3do:hasGeometry :Box_2_3_2_1 ;
  x3do:hasAppearance :Appearance_2_3_2_2 .
:Box_2_3_2_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_3_2 ;
  x3do:size ( 1.3 2.5 0.08 ) .
:Appearance_2_3_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2 ;
  x3do:hasMaterial :DoorColor .
:DoorColor a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_2_2 ;
  x3do:DEF 'DoorColor' ;
  x3do:diffuseColor ( 1 0 0 ) .
:Transform_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TextSwitcher ;
  x3do:scale ( 0.6 0.6 0.6 ) ;
  x3do:translation ( 0 -1 0 ) .
:TextSwitcher a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasChildren :Group_2_4_1_1, :Group_2_4_1_2, :Group_2_4_1_3 ;
  x3do:DEF 'TextSwitcher' ;
  x3do:whichChoice 0 .
:Group_2_4_1_1 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :TextSwitcher ;
  x3do:hasChildren :Shape_2_4_1_1_1 .
:Shape_2_4_1_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_1_1 ;
  x3do:hasGeometry :Text_2_4_1_1_1_1 ;
  x3do:hasAppearance :TextAppearance .
:Text_2_4_1_1_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_1_1 ;
  x3do:hasFontStyle :MiddleJustify ;
  x3do:string '"Door is closed"' .
:MiddleJustify a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_1_1_1 ;
  x3do:DEF 'MiddleJustify' ;
  x3do:justify '"MIDDLE" "MIDDLE"' .
:TextAppearance a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_1_1 ;
  x3do:hasMaterial :Material_2_4_1_1_1_2_1 ;
  x3do:DEF 'TextAppearance' .
:Material_2_4_1_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :TextAppearance .
:Group_2_4_1_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :TextSwitcher ;
  x3do:hasChildren :Shape_2_4_1_2_1 .
:Shape_2_4_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_1_2 ;
  x3do:hasGeometry :Text_2_4_1_2_1_1 ;
  x3do:hasAppearance :TextAppearance-USE-1 .
:Text_2_4_1_2_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_2_1 ;
  x3do:hasFontStyle :MiddleJustify-USE-1 ;
  x3do:string '"Door in motion..."' .
:MiddleJustify-USE-1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_2_1_1 ;
  owl:sameAs :MiddleJustify . # DEF matching this USE
:TextAppearance-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_2_1 ;
  owl:sameAs :TextAppearance . # DEF matching this USE
:Group_2_4_1_3 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :TextSwitcher ;
  x3do:hasChildren :Shape_2_4_1_3_1 .
:Shape_2_4_1_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_1_3 ;
  x3do:hasGeometry :Text_2_4_1_3_1_1 ;
  x3do:hasAppearance :TextAppearance-USE-2 .
:Text_2_4_1_3_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_3_1 ;
  x3do:hasFontStyle :MiddleJustify-USE-2 ;
  x3do:string '"Door is open"' .
:MiddleJustify-USE-2 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_3_1_1 ;
  owl:sameAs :MiddleJustify . # DEF matching this USE
:TextAppearance-USE-2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_3_1 ;
  owl:sameAs :TextAppearance . # DEF matching this USE
:Clock1 a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock1' ;
  x3do:cycleInterval '2' .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'UserSelectDoor' ;
  x3do:toField 'startTime' ;
  x3do:toNode 'Clock1' .
:DoorOpener a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'DoorOpener' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 1 0 0 0 1 0 4.7124 0 1 0 3 ) .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'DoorOpener' .
:ROUTE_2_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'DoorOpener' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'DoorHingeTransform' .
:SetTextInMotion a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'SetTextInMotion' ;
  x3do:integerKey 1 .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'UserSelectDoor' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'SetTextInMotion' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'SetTextInMotion' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'TextSwitcher' .
:DoorOpenComplete a owl:NamedIndividual, x3do:BooleanFilter ;
  x3do:hasParent :Scene ;
  x3do:DEF 'DoorOpenComplete' .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'Clock1' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'DoorOpenComplete' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'Clock1' ;
  x3do:toField 'enabled' ;
  x3do:toNode 'Clock1' .
:TriggerOpeningAnimation a owl:NamedIndividual, x3do:TimeTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'TriggerOpeningAnimation' .
:ROUTE_2_17 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'inputFalse' ;
  x3do:fromNode 'DoorOpenComplete' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'TriggerOpeningAnimation' .
:Clock2 a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock2' ;
  x3do:cycleInterval '0.5' .
:ROUTE_2_19 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerTime' ;
  x3do:fromNode 'TriggerOpeningAnimation' ;
  x3do:toField 'startTime' ;
  x3do:toNode 'Clock2' .
:SetTextOpen a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'SetTextOpen' ;
  x3do:integerKey 2 .
:ROUTE_2_21 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'inputFalse' ;
  x3do:fromNode 'DoorOpenComplete' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'SetTextOpen' .
:ROUTE_2_22 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'SetTextOpen' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'TextSwitcher' .
:DoorColorInterpolator a owl:NamedIndividual, x3do:ColorInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'DoorColorInterpolator' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 1 0 0 0.1 0.1 0.1 0.203922 0.701961 0 ) .
:ROUTE_2_24 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock2' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'DoorColorInterpolator' .
:ROUTE_2_25 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'DoorColorInterpolator' ;
  x3do:toField 'diffuseColor' ;
  x3do:toNode 'DoorColor' .
:Clock3 a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock3' ;
  x3do:cycleInterval '2' ;
  x3do:enabled false .
:ROUTE_2_27 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'UserSelectDoor' ;
  x3do:toField 'startTime' ;
  x3do:toNode 'Clock3' .
:ROUTE_2_28 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'inputFalse' ;
  x3do:fromNode 'DoorOpenComplete' ;
  x3do:toField 'enabled' ;
  x3do:toNode 'Clock3' .
:ROUTE_2_29 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'Clock3' ;
  x3do:toField 'enabled' ;
  x3do:toNode 'Clock3' .
:ClockReversal a owl:NamedIndividual, x3do:ScalarInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ClockReversal' ;
  x3do:key ( 0 1 ) ;
  x3do:keyValue ( 1 0 ) .
:ROUTE_2_31 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock3' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'ClockReversal' .
:ROUTE_2_32 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ClockReversal' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'DoorOpener' .
:ROUTE_2_33 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ClockReversal' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'DoorColorInterpolator' .
:Clock3CompleteTrigger a owl:NamedIndividual, x3do:BooleanTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock3CompleteTrigger' .
:ROUTE_2_35 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'stopTime' ;
  x3do:fromNode 'Clock3' ;
  x3do:toField 'set_triggerTime' ;
  x3do:toNode 'Clock3CompleteTrigger' .
:SetTextClosed a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'SetTextClosed' ;
  x3do:integerKey 0 .
:ROUTE_2_37 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerTrue' ;
  x3do:fromNode 'Clock3CompleteTrigger' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'SetTextClosed' .
:ROUTE_2_38 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'SetTextClosed' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'TextSwitcher' .
