@prefix :        <https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_9DeskLamp.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.0' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.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 'Figure09_9DeskLamp.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Figure 9.9, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland' ;
  x3do:name 'creator' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'http://www.wiley.com/legacy/compbooks/vrml2sbk/ch09/09fig09.htm' ;
  x3do:name 'reference' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'translator' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '12 August 2000' ;
  x3do:name 'created' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'A desk lamp with arm angles that can be adjusted using nested sensors.' ;
  x3do:name 'description' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_9DeskLamp.x3d' ;
  x3do:name 'identifier' .
:meta_1_9 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_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "Figure09_9DeskLamp.x3d" .
:meta dcterms:creator "Figure 9.9, The VRML 2.0 Sourcebook, Copyright [1997] By Andrea L. Ames, David R. Nadeau, and John L. Moreland" .
:meta dcterms:reference "http://www.wiley.com/legacy/compbooks/vrml2sbk/ch09/09fig09.htm" .
:meta dcterms:translator "Don Brutzman" .
:meta dcterms:created "12 August 2000" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:description "A desk lamp with arm angles that can be adjusted using nested sensors." .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter09SensingViewer/Figure09_9DeskLamp.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 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'Figure09_9DeskLamp.x3d' .
:Viewpoint_2_2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Desk lamp' ;
  x3do:position ( 0 0.2 1 ) .
:Transform_2_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :MOVE_LAMP, :LAMP_TRANSFORM ;
  x3do:rotation ( 1 0 0 1.57 ) .
:MOVE_LAMP a owl:NamedIndividual, x3do:PlaneSensor ;
  x3do:hasParent :Transform_2_3 ;
  x3do:DEF 'MOVE_LAMP' ;
  x3do:description 'drag to move lamp' ;
  x3do:maxPosition ( 0.1 0.1 ) ;
  x3do:minPosition ( -0.1 -0.1 ) .
:LAMP_TRANSFORM a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_3 ;
  x3do:hasROUTE :ROUTE_2_3_2_1 ;
  x3do:hasChildren :Transform_2_3_2_2 ;
  x3do:DEF 'LAMP_TRANSFORM' .
:ROUTE_2_3_2_1 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :LAMP_TRANSFORM ;
  x3do:fromField 'translation_changed' ;
  x3do:fromNode 'MOVE_LAMP' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'LAMP_TRANSFORM' .
:Transform_2_3_2_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LAMP_TRANSFORM ;
  x3do:hasChildren :Shape_2_3_2_2_1, :Group_2_3_2_2_2 ;
  x3do:rotation ( 1 0 0 -1.57 ) .
:Shape_2_3_2_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_2_2 ;
  x3do:hasGeometry :Cylinder_2_3_2_2_1_1 ;
  x3do:hasAppearance :WHITE .
:Cylinder_2_3_2_2_1_1 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :Shape_2_3_2_2_1 ;
  x3do:height 0.01 ;
  x3do:radius 0.1 .
:WHITE a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_2_1 ;
  x3do:hasMaterial :Material_2_3_2_2_1_2_1 ;
  x3do:DEF 'WHITE' .
:Material_2_3_2_2_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :WHITE ;
  x3do:diffuseColor ( .9 .9 .9 ) .
:Group_2_3_2_2_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Transform_2_3_2_2 ;
  x3do:hasChildren :MOVE_FIRST_ARM, :FIRST_ARM_TRANSFORM .
:MOVE_FIRST_ARM a owl:NamedIndividual, x3do:SphereSensor ;
  x3do:hasParent :Group_2_3_2_2_2 ;
  x3do:DEF 'MOVE_FIRST_ARM' ;
  x3do:description 'rotate first arm' ;
  x3do:offset ( 1 0 0 -0.7 ) .
:FIRST_ARM_TRANSFORM a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3_2_2_2 ;
  x3do:hasROUTE :ROUTE_2_3_2_2_2_2_1 ;
  x3do:hasChildren :LAMP_ARM, :Group_2_3_2_2_2_2_3 ;
  x3do:DEF 'FIRST_ARM_TRANSFORM' ;
  x3do:center ( 0 -0.15 0 ) ;
  x3do:rotation ( 1 0 0 -0.7 ) ;
  x3do:translation ( 0 0.15 0 ) .
:ROUTE_2_3_2_2_2_2_1 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :FIRST_ARM_TRANSFORM ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'MOVE_FIRST_ARM' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'FIRST_ARM_TRANSFORM' .
:LAMP_ARM a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :FIRST_ARM_TRANSFORM ;
  x3do:hasAppearance :LIGHT_BROWN ;
  x3do:hasGeometry :Cylinder_2_3_2_2_2_2_2_2 ;
  x3do:DEF 'LAMP_ARM' .
:LIGHT_BROWN a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :LAMP_ARM ;
  x3do:hasMaterial :Material_2_3_2_2_2_2_2_1_1 ;
  x3do:DEF 'LIGHT_BROWN' .
:Material_2_3_2_2_2_2_2_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :LIGHT_BROWN ;
  x3do:diffuseColor ( .6 .6 .2 ) .
:Cylinder_2_3_2_2_2_2_2_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :LAMP_ARM ;
  x3do:height 0.3 ;
  x3do:radius 0.01 .
:Group_2_3_2_2_2_2_3 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :FIRST_ARM_TRANSFORM ;
  x3do:hasChildren :MOVE_SECOND_ARM, :SECOND_ARM_TRANSFORM .
:MOVE_SECOND_ARM a owl:NamedIndividual, x3do:SphereSensor ;
  x3do:hasParent :Group_2_3_2_2_2_2_3 ;
  x3do:DEF 'MOVE_SECOND_ARM' ;
  x3do:description 'rotate second arm' ;
  x3do:offset ( 1 0 0 1.9 ) .
:SECOND_ARM_TRANSFORM a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3_2_2_2_2_3 ;
  x3do:hasROUTE :ROUTE_2_3_2_2_2_2_3_2_1 ;
  x3do:hasChildren :LAMP_ARM-USE-1, :Group_2_3_2_2_2_2_3_2_3 ;
  x3do:DEF 'SECOND_ARM_TRANSFORM' ;
  x3do:center ( 0 -0.15 0 ) ;
  x3do:rotation ( 1 0 0 1.9 ) ;
  x3do:translation ( 0 0.3 0 ) .
:ROUTE_2_3_2_2_2_2_3_2_1 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :SECOND_ARM_TRANSFORM ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'MOVE_SECOND_ARM' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'SECOND_ARM_TRANSFORM' .
:LAMP_ARM-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :SECOND_ARM_TRANSFORM ;
  owl:sameAs :LAMP_ARM . # DEF matching this USE
:Group_2_3_2_2_2_2_3_2_3 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :SECOND_ARM_TRANSFORM ;
  x3do:hasChildren :MOVE_LAMP_SHADE, :LAMP_SHADE_TRANSFORM .
:MOVE_LAMP_SHADE a owl:NamedIndividual, x3do:SphereSensor ;
  x3do:hasParent :Group_2_3_2_2_2_2_3_2_3 ;
  x3do:DEF 'MOVE_LAMP_SHADE' ;
  x3do:description 'rotate lamp shade' ;
  x3do:offset ( 1 0 0 -1.25 ) .
:LAMP_SHADE_TRANSFORM a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3_2_2_2_2_3_2_3 ;
  x3do:hasROUTE :ROUTE_2_3_2_2_2_2_3_2_3_2_1 ;
  x3do:hasChildren :Shape_2_3_2_2_2_2_3_2_3_2_2, :Transform_2_3_2_2_2_2_3_2_3_2_3 ;
  x3do:DEF 'LAMP_SHADE_TRANSFORM' ;
  x3do:center ( 0 0.07 0 ) ;
  x3do:rotation ( 1 0 0 -1.25 ) ;
  x3do:translation ( 0 0.075 0 ) .
:ROUTE_2_3_2_2_2_2_3_2_3_2_1 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :LAMP_SHADE_TRANSFORM ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'MOVE_LAMP_SHADE' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'LAMP_SHADE_TRANSFORM' .
:Shape_2_3_2_2_2_2_3_2_3_2_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :LAMP_SHADE_TRANSFORM ;
  x3do:hasAppearance :Appearance_2_3_2_2_2_2_3_2_3_2_2_1 ;
  x3do:hasGeometry :Cone_2_3_2_2_2_2_3_2_3_2_2_2 .
:Appearance_2_3_2_2_2_2_3_2_3_2_2_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_2_2_2_3_2_3_2_2 ;
  x3do:hasMaterial :Material_2_3_2_2_2_2_3_2_3_2_2_1_1 .
:Material_2_3_2_2_2_2_3_2_3_2_2_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_2_2_2_2_3_2_3_2_2_1 ;
  x3do:diffuseColor ( .1 .6 .6 ) .
:Cone_2_3_2_2_2_2_3_2_3_2_2_2 a owl:NamedIndividual, x3do:Cone ;
  x3do:hasParent :Shape_2_3_2_2_2_2_3_2_3_2_2 ;
  x3do:bottom false ;
  x3do:bottomRadius 0.12 ;
  x3do:height 0.15 .
:Transform_2_3_2_2_2_2_3_2_3_2_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LAMP_SHADE_TRANSFORM ;
  x3do:hasChildren :Shape_2_3_2_2_2_2_3_2_3_2_3_1, :SpotLight_2_3_2_2_2_2_3_2_3_2_3_2 ;
  x3do:translation ( 0 -0.05 0 ) .
:Shape_2_3_2_2_2_2_3_2_3_2_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_2_2_2_2_3_2_3_2_3 ;
  x3do:hasAppearance :Appearance_2_3_2_2_2_2_3_2_3_2_3_1_1 ;
  x3do:hasGeometry :Sphere_2_3_2_2_2_2_3_2_3_2_3_1_2 .
:Appearance_2_3_2_2_2_2_3_2_3_2_3_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_2_2_2_3_2_3_2_3_1 ;
  x3do:hasMaterial :Material_2_3_2_2_2_2_3_2_3_2_3_1_1_1 .
:Material_2_3_2_2_2_2_3_2_3_2_3_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_2_2_2_2_3_2_3_2_3_1_1 ;
  x3do:diffuseColor ( .4 .4 .1 ) ;
  x3do:emissiveColor ( .8 .8 .2 ) .
:Sphere_2_3_2_2_2_2_3_2_3_2_3_1_2 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :Shape_2_3_2_2_2_2_3_2_3_2_3_1 ;
  x3do:radius 0.05 .
:SpotLight_2_3_2_2_2_2_3_2_3_2_3_2 a owl:NamedIndividual, x3do:SpotLight ;
  x3do:hasParent :Transform_2_3_2_2_2_2_3_2_3_2_3 ;
  x3do:beamWidth 1.570796 ;
  x3do:color ( .8 .8 .1 ) ;
  x3do:cutOffAngle .785398 ;
  x3do:direction ( 0 -1 0 ) .
