@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/CanopyExample.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 'CanopyExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Animation example from Canopy Prototype. Clicking canopy triggers animation for open and close performance.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Etsuko Lippi' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '18 October 2001' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '16 April 2026' ;
  x3do:name 'modified' .
:meta_1_6 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_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/CanopyExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'cockpit canopy animation example' ;
  x3do:name 'subject' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "CanopyExample.x3d" .
:meta dcterms:description "Animation example from Canopy Prototype. Clicking canopy triggers animation for open and close performance." .
:meta dcterms:creator "Etsuko Lippi" .
:meta dcterms:created "18 October 2001" .
:meta dcterms:modified "16 April 2026" .
:meta dcterms:generator "X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/CanopyExample.x3d" .
:meta dcterms:subject "cockpit canopy animation example" .
:meta dcterms:license "../../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :Background_2_3, :Group_2_4 ;
  x3do:hasExternProtoDeclare :ExternProtoDeclare_2_2 ;
  x3do:hasROUTE :ROUTE_2_5, :ROUTE_2_6, :ROUTE_2_7 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'CanopyExample.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 ;
  x3do:name 'Canopy' ;
  x3do:url '"CanopyPrototype.x3d#Canopy" "../../AircraftFixedWing/F18BlueAngelUnitedStates/CanopyPrototype.x3d#Canopy" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/CanopyPrototype.x3d#Canopy" "CanopyPrototype.wrl#Canopy" "../../AircraftFixedWing/F18BlueAngelUnitedStates/CanopyPrototype.wrl#Canopy" "https://www.web3d.org/x3d/content/examples/Savage/AircraftFixedWing/F18BlueAngelUnitedStates/CanopyPrototype.wrl#Canopy"' .
:field_2_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'canopyOpen' ;
  x3do:type 'SFBool' .
:field_2_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'canopyOut' ;
  x3do:type 'SFBool' .
:field_2_2_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'animationStartTime' ;
  x3do:type 'SFTime' .
:field_2_2_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'traceEnabled' ;
  x3do:type 'SFBool' .
:Background_2_3 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.7 0.7 0.7 ) .
:Group_2_4 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :CanopyTouchSensor, :Canopy, :CP .
:CanopyTouchSensor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_4 ;
  x3do:DEF 'CanopyTouchSensor' ;
  x3do:description 'canopy open/close' .
:Canopy a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_4 ;
  x3do:hasChildren :ExampleSelectionScript ;
  x3do:DEF 'Canopy' .
:ExampleSelectionScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Canopy ;
  x3do:hasField :field_2_4_2_1_1, :field_2_4_2_1_2, :field_2_4_2_1_3 ;
  x3do:DEF 'ExampleSelectionScript' ;
  x3do:sourceCode """
ecmascript:

function tracePrint (outputString)
{
	if (traceEnabled) Browser.println ('[trace] ' + outputString);
}

function enabled(value, timeStamp)
{
	tracePrint('enabled = ' + value);
	if (value == true)
	{
		if (landed == -1)
		{			
                        status = false;
                        landed = 0;			
		}
		if (landed == 0)
		{
			if (status)
			{
				status = false;                             
			}
			else
			{
				status = true;                               			
			}
		}
                else
                {
         		landed = 0;
     			return;
                }
	}
}
""" .
:field_2_4_2_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelectionScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'landed' ;
  x3do:type 'SFInt32' ;
  x3do:value -1 .
:field_2_4_2_1_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelectionScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'enabled' ;
  x3do:type 'SFBool' .
:field_2_4_2_1_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExampleSelectionScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'status' ;
  x3do:type 'SFBool' .
:CP a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Group_2_4 ;
  x3do:hasFieldValue :fieldValue_2_4_3_1 ;
  x3do:DEF 'CP' ;
  x3do:name 'Canopy' .
:fieldValue_2_4_3_1 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :CP ;
  x3do:name 'traceEnabled' ;
  x3do:value true .
:ROUTE_2_5 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'CanopyTouchSensor' ;
  x3do:toField 'animationStartTime' ;
  x3do:toNode 'CP' .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'CanopyTouchSensor' ;
  x3do:toField 'enabled' ;
  x3do:toNode 'ExampleSelectionScript' .
:ROUTE_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'status' ;
  x3do:fromNode 'ExampleSelectionScript' ;
  x3do:toField 'canopyOpen' ;
  x3do:toNode 'CP' .
