@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/Switch.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Switch.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Example for Switch node' ;
  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 '13 November 2005' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://X3dGraphics.com' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dResources.html' ;
  x3do:name 'reference' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Copyright (c) 2005, Daly Realism and Don Brutzman' ;
  x3do:name 'rights' .
:meta_1_9 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_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter03Grouping/Switch.x3d' ;
  x3do:name 'identifier' .
:meta_1_11 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_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "Switch.x3d" .
:meta dcterms:description "Example for Switch node" .
:meta dcterms:creator "Leonard Daly and Don Brutzman" .
:meta dcterms:created "13 November 2005" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:reference "https://X3dGraphics.com" .
:meta dcterms:reference "https://www.web3d.org/x3d/content/examples/X3dResources.html" .
:meta dcterms:rights "Copyright (c) 2005, 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/Chapter03Grouping/Switch.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, :Background_2_2, :Viewpoint_2_3, :Switcher, :AnimationGroup .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'Switch.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 1 1 1 ) .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Switch among multiple children' ;
  x3do:orientation ( -0.668 -0.724 -0.174 0.7 ) ;
  x3do:position ( -1.93 1.78 3.28 ) .
:Switcher a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :BoxShape, :ConeShape, :CylinderShape, :SphereShape ;
  x3do:DEF 'Switcher' ;
  x3do:whichChoice 0 .
:BoxShape a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Switcher ;
  x3do:hasAppearance :Appearance_2_4_1_1 ;
  x3do:hasGeometry :Box_2_4_1_2 ;
  x3do:DEF 'BoxShape' .
:Appearance_2_4_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :BoxShape ;
  x3do:hasMaterial :Material_2_4_1_1_1 .
:Material_2_4_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_1 ;
  x3do:diffuseColor ( 1 0 0 ) .
:Box_2_4_1_2 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :BoxShape .
:ConeShape a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Switcher ;
  x3do:hasAppearance :Appearance_2_4_2_1 ;
  x3do:hasGeometry :Cone_2_4_2_2 ;
  x3do:DEF 'ConeShape' .
:Appearance_2_4_2_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :ConeShape ;
  x3do:hasMaterial :Material_2_4_2_1_1 .
:Material_2_4_2_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_2_1 ;
  x3do:diffuseColor ( 1 1 0 ) .
:Cone_2_4_2_2 a owl:NamedIndividual, x3do:Cone ;
  x3do:hasParent :ConeShape .
:CylinderShape a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Switcher ;
  x3do:hasAppearance :Appearance_2_4_3_1 ;
  x3do:hasGeometry :Cylinder_2_4_3_2 ;
  x3do:DEF 'CylinderShape' .
:Appearance_2_4_3_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :CylinderShape ;
  x3do:hasMaterial :Material_2_4_3_1_1 .
:Material_2_4_3_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_3_1 ;
  x3do:diffuseColor ( 0 1 0 ) .
:Cylinder_2_4_3_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :CylinderShape .
:SphereShape a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Switcher ;
  x3do:hasAppearance :Appearance_2_4_4_1 ;
  x3do:hasGeometry :Sphere_2_4_4_2 ;
  x3do:DEF 'SphereShape' .
:Appearance_2_4_4_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :SphereShape ;
  x3do:hasMaterial :Material_2_4_4_1_1 .
:Material_2_4_4_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_4_1 ;
  x3do:diffuseColor ( 0 0 1 ) .
:Sphere_2_4_4_2 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :SphereShape .
:AnimationGroup a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Timer, :Counter ;
  x3do:hasROUTE :ROUTE_2_5_3, :ROUTE_2_5_4 ;
  x3do:DEF 'AnimationGroup' .
:Timer a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :AnimationGroup ;
  x3do:DEF 'Timer' ;
  x3do:cycleInterval '8' ;
  x3do:enabled false ;
  x3do:loop true .
:Counter a owl:NamedIndividual, x3do:IntegerSequencer ;
  x3do:hasParent :AnimationGroup ;
  x3do:DEF 'Counter' ;
  x3do:key ( 0 .25 .5 .75 1 ) ;
  x3do:keyValue ( 0 1 2 3 0 ) .
:ROUTE_2_5_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :AnimationGroup ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Timer' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'Counter' .
:ROUTE_2_5_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :AnimationGroup ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'Counter' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'Switcher' .
