@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/MaterialToggleExample.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.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'MaterialToggleExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Example for toggle-able Material node that can switch between 2 sets of material values, selectable at run time.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman and MV4205 class' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '2 May 2004' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 November 2019' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'MaterialTogglePrototype.x3d' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/MaterialToggleExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.2, 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 "MaterialToggleExample.x3d" .
:meta dcterms:description "Example for toggle-able Material node that can switch between 2 sets of material values, selectable at run time." .
:meta dcterms:creator "Don Brutzman and MV4205 class" .
:meta dcterms:created "2 May 2004" .
:meta dcterms:modified "28 November 2019" .
:meta dcterms:reference "MaterialTogglePrototype.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/MaterialToggleExample.x3d" .
:meta dcterms:generator "X3D-Edit 3.2, 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_3, :Transform_2_4 ;
  x3do:hasExternProtoDeclare :ExternProtoDeclare_2_2 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'MaterialToggleExample.x3d' .
:ExternProtoDeclare_2_2 a owl:NamedIndividual, x3do:ExternProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_2_1, :field_2_2_2, :field_2_2_3, :field_2_2_4, :field_2_2_5, :field_2_2_6, :field_2_2_7 ;
  x3do:appinfo 'MaterialToggle selects one of two different Material values' ;
  x3do:name 'MaterialToggle' ;
  x3do:url '"MaterialTogglePrototype.x3d#MaterialToggle" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/MaterialTogglePrototype.x3d#MaterialToggle" "MaterialTogglePrototype.wrl#MaterialToggle" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Animation/MaterialTogglePrototype.wrl#MaterialToggle"' .
:field_2_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_toggle' ;
  x3do:type 'SFBool' .
:field_2_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'whether to use DefaultMaterial or ToggleMaterial' ;
  x3do:name 'toggle' ;
  x3do:type 'SFBool' .
:field_2_2_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'toggle_changed' ;
  x3do:type 'SFBool' .
:field_2_2_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'Material node that is enabled when toggle=false' ;
  x3do:name 'defaultMaterial' ;
  x3do:type 'SFNode' .
:field_2_2_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'Material node that is enabled when toggle=true' ;
  x3do:name 'toggleMaterial' ;
  x3do:type 'SFNode' .
:field_2_2_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:appinfo 'provide replacement default Material node' ;
  x3do:name 'set_defaultMaterial' ;
  x3do:type 'SFNode' .
:field_2_2_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:appinfo 'provide replacement toggle Material node' ;
  x3do:name 'set_toggleMaterial' ;
  x3do:type 'SFNode' .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'touch box to toggle material' ;
  x3do:orientation ( 1 0 0 -0.79 ) ;
  x3do:position ( 0 5 5 ) .
:Transform_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_4_1, :TS ;
  x3do:hasROUTE :ROUTE_2_4_3 ;
  x3do:rotation ( 0 1 0 0.79 ) .
:Shape_2_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasGeometry :Box_2_4_1_1 ;
  x3do:hasAppearance :Appearance_2_4_1_2 .
:Box_2_4_1_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_1 .
:Appearance_2_4_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasMaterial :MT .
:MT a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Appearance_2_4_1_2 ;
  x3do:hasFieldValue :fieldValue_2_4_1_2_1_1, :fieldValue_2_4_1_2_1_2, :fieldValue_2_4_1_2_1_3 ;
  x3do:DEF 'MT' ;
  x3do:name 'MaterialToggle' .
:fieldValue_2_4_1_2_1_1 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :MT ;
  x3do:name 'toggle' ;
  x3do:value true .
:fieldValue_2_4_1_2_1_2 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :MT ;
  x3do:hasMaterial :Material_2_4_1_2_1_2_1 ;
  x3do:name 'defaultMaterial' .
:Material_2_4_1_2_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :fieldValue_2_4_1_2_1_2 ;
  x3do:ambientIntensity 0.24 ;
  x3do:diffuseColor ( 1 0.452381 0.40339 ) ;
  x3do:shininess 0.9 ;
  x3do:specularColor ( 0.686486 0.396903 0.419275 ) .
:fieldValue_2_4_1_2_1_3 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :MT ;
  x3do:hasMaterial :Material_2_4_1_2_1_3_1 ;
  x3do:name 'toggleMaterial' .
:Material_2_4_1_2_1_3_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :fieldValue_2_4_1_2_1_3 ;
  x3do:ambientIntensity 0.24 ;
  x3do:diffuseColor ( 0.330519 0.3389 0.6 ) ;
  x3do:shininess 0.78 ;
  x3do:specularColor ( 0.290909 0.290909 0.290909 ) .
:TS a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Transform_2_4 ;
  x3do:DEF 'TS' ;
  x3do:description 'touch to toggle' .
:ROUTE_2_4_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Transform_2_4 ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TS' ;
  x3do:toField 'set_toggle' ;
  x3do:toNode 'MT' .
