@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExample.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 'Interactive' ;
  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_10, :meta_1_11, :meta_1_12, :meta_1_13 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'BooleanToggleExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'A BooleanToggle button determines whether an animated Cone is jittery or not.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Leonard Daly and Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '9 October 2006' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 April 2023' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'BS Contact BitManagement Bug Report submitted 28 November 2014 http://www.bitmanagement.de/en/contact' ;
  x3do:name 'TODO' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://X3dGraphics.com' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dResources.html' ;
  x3do:name 'reference' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Copyright 2006, Daly Realism and Don Brutzman' ;
  x3do:name 'rights' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com' ;
  x3do:name 'subject' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "BooleanToggleExample.x3d" .
:meta dcterms:description "A BooleanToggle button determines whether an animated Cone is jittery or not." .
:meta dcterms:creator "Leonard Daly and Don Brutzman" .
:meta dcterms:created "9 October 2006" .
:meta dcterms:modified "28 April 2023" .
:meta dcterms:reference "https://X3dGraphics.com" .
:meta dcterms:reference "https://www.web3d.org/x3d/content/examples/X3dResources.html" .
:meta dcterms:rights "Copyright 2006, Daly Realism and Don Brutzman" .
:meta dcterms:subject "X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/BooleanToggleExample.x3d" .
:meta dcterms:generator "X3D-Edit 3.3, 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, :Transform_2_3, :Transform_2_4, :Toggler, :Tee, :PauseOn, :PauseOff, :Timer, :Shaker ;
  x3do:hasROUTE :ROUTE_2_6, :ROUTE_2_8, :ROUTE_2_10, :ROUTE_2_12, :ROUTE_2_14, :ROUTE_2_15, :ROUTE_2_17, :ROUTE_2_18 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'Boolean Toggle Example' .
:Viewpoint_2_2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Select red button to toggle cone jitter' .
:Transform_2_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_3_1, :TouchButton ;
  x3do:rotation ( 1 0 0 1.57 ) .
:Shape_2_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3 ;
  x3do:hasAppearance :Appearance_2_3_1_1 ;
  x3do:hasGeometry :Cylinder_2_3_1_2 .
:Appearance_2_3_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_1 ;
  x3do:hasMaterial :Material_2_3_1_1_1 .
:Material_2_3_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_1_1 ;
  x3do:diffuseColor ( 1 0 0 ) .
:Cylinder_2_3_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_3_1 ;
  x3do:height .5 ;
  x3do:radius .5 .
:TouchButton a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Transform_2_3 ;
  x3do:DEF 'TouchButton' ;
  x3do:description 'touch to activate' .
:Transform_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :ShakingCone ;
  x3do:translation ( 2 0 0 ) .
:ShakingCone a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasChildren :Shape_2_4_1_1 ;
  x3do:DEF 'ShakingCone' .
:Shape_2_4_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :ShakingCone ;
  x3do:hasAppearance :Appearance_2_4_1_1_1 ;
  x3do:hasGeometry :Cone_2_4_1_1_2 .
:Appearance_2_4_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_1 ;
  x3do:hasMaterial :Material_2_4_1_1_1_1 .
:Material_2_4_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_1_1 ;
  x3do:diffuseColor ( 0 .8 0 ) .
:Cone_2_4_1_1_2 a owl:NamedIndividual, x3do:Cone ;
  x3do:hasParent :Shape_2_4_1_1 .
:Toggler a owl:NamedIndividual, x3do:BooleanToggle ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Toggler' .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TouchButton' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Toggler' .
:Tee a owl:NamedIndividual, x3do:BooleanFilter ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Tee' .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'toggle_changed' ;
  x3do:fromNode 'Toggler' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Tee' .
:PauseOn a owl:NamedIndividual, x3do:TimeTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'PauseOn' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'inputTrue' ;
  x3do:fromNode 'Tee' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'PauseOn' .
:PauseOff a owl:NamedIndividual, x3do:TimeTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'PauseOff' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'inputFalse' ;
  x3do:fromNode 'Tee' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'PauseOff' .
:Timer a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Timer' ;
  x3do:cycleInterval '.15' ;
  x3do:loop true ;
  x3do:startTime '1' .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerTime' ;
  x3do:fromNode 'PauseOn' ;
  x3do:toField 'pauseTime' ;
  x3do:toNode 'Timer' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerTime' ;
  x3do:fromNode 'PauseOff' ;
  x3do:toField 'resumeTime' ;
  x3do:toNode 'Timer' .
:Shaker a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Shaker' ;
  x3do:key ( 0 .25 .50 .75 1 ) ;
  x3do:keyValue ( 0 0 0 .4 .2 -0.3 -0.2 .3 .1 -0.1 -0.2 .3 0 0 0 ) .
:ROUTE_2_17 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Timer' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'Shaker' .
:ROUTE_2_18 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'Shaker' ;
  x3do:toField 'translation' ;
  x3do:toNode 'ShakingCone' .
