@prefix :        <https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/CompassRosePrototype.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_10, :meta_1_11, :meta_1_12, :meta_1_13 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'CompassRosePrototype.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Definition of the CompassRose prototype, a heads-up display (HUD) showing heading for current viewpoint direction.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Christian Greuel, Director of Art & Production, Planet 9 Studios, Inc.' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Xeena VRML importer, X3D-Edit 3.1, https://www.web3d.org/x3d/content/README.X3D-Edit.html' ;
  x3do:name 'translator' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '1 August 2006' ;
  x3do:name 'created' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '14 October 2006' ;
  x3do:name 'translated' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '14 June 20' ;
  x3do:name 'modified' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Textures/CompassHeadings.png' ;
  x3do:name 'Image' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'originals/CompassRosePrototype.wrl' ;
  x3do:name 'reference' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'compass rose heads-up display HUD' ;
  x3do:name 'subject' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/CompassRosePrototype.x3d' ;
  x3do:name 'identifier' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit, https://www.web3d.org/x3d/content/README.X3D-Edit.html' ;
  x3do:name 'generator' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html' ;
  x3do:name 'generator' .
:meta dcterms:title "CompassRosePrototype.x3d" .
:meta dcterms:description "Definition of the CompassRose prototype, a heads-up display (HUD) showing heading for current viewpoint direction." .
:meta dcterms:creator "Christian Greuel, Director of Art & Production, Planet 9 Studios, Inc." .
:meta dcterms:translator "Xeena VRML importer, X3D-Edit 3.1, https://www.web3d.org/x3d/content/README.X3D-Edit.html" .
:meta dcterms:created "1 August 2006" .
:meta dcterms:translated "14 October 2006" .
:meta dcterms:modified "14 June 20" .
:meta dcterms:Image "Textures/CompassHeadings.png" .
:meta dcterms:reference "originals/CompassRosePrototype.wrl" .
:meta dcterms:subject "compass rose heads-up display HUD" .
:meta dcterms:identifier "https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/CompassRosePrototype.x3d" .
:meta dcterms:generator "X3D-Edit, https://www.web3d.org/x3d/content/README.X3D-Edit.html" .
:meta dcterms:generator "Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1 ;
  x3do:hasProtoDeclare :ProtoDeclare_2_2 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:info '"Christian Greuel, Director of Art & Production"' ;
  x3do:title 'Compass Rose Prototype' .
:ProtoDeclare_2_2 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_2_1 ;
  x3do:hasProtoBody :ProtoBody_2_2_2 ;
  x3do:name 'CompassRose' .
:ProtoInterface_2_2_1 a owl:NamedIndividual, x3do:ProtoInterface ;
  x3do:hasParent :ProtoDeclare_2_2 ;
  x3do:hasField :field_2_2_1_1, :field_2_2_1_2 .
:field_2_2_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'size' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 1.0 1.0 1.0 ) .
:field_2_2_1_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'locationOffset' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 0.0 0.0 0.0 ) .
:ProtoBody_2_2_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_2 ;
  x3do:hasChildren :CompassRose .
:CompassRose a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:hasChildren :CompassProx, :FixedLocation ;
  x3do:DEF 'CompassRose' .
:CompassProx a owl:NamedIndividual, x3do:ProximitySensor ;
  x3do:hasParent :CompassRose ;
  x3do:hasIS :IS_2_2_2_1_1_1 ;
  x3do:DEF 'CompassProx' ;
  x3do:size ( 1.0E9 1.0E9 1.0E9 ) .
:IS_2_2_2_1_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :CompassProx ;
  x3do:hasConnect :connect_2_2_2_1_1_1_1 .
:connect_2_2_2_1_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_1_1 ;
  x3do:nodeField 'center' ;
  x3do:protoField 'locationOffset' .
:FixedLocation a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :CompassRose ;
  x3do:hasChildren :LocationOffset ;
  x3do:DEF 'FixedLocation' .
:LocationOffset a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :FixedLocation ;
  x3do:hasIS :IS_2_2_2_1_2_1_1 ;
  x3do:hasChildren :Transform_2_2_2_1_2_1_2 ;
  x3do:DEF 'LocationOffset' .
:IS_2_2_2_1_2_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :LocationOffset ;
  x3do:hasConnect :connect_2_2_2_1_2_1_1_1, :connect_2_2_2_1_2_1_1_2 .
:connect_2_2_2_1_2_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1_1 ;
  x3do:nodeField 'translation' ;
  x3do:protoField 'locationOffset' .
:connect_2_2_2_1_2_1_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1_1 ;
  x3do:nodeField 'scale' ;
  x3do:protoField 'size' .
:Transform_2_2_2_1_2_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LocationOffset ;
  x3do:hasChildren :Compass ;
  x3do:scale ( 0.02 0.02 0.02 ) ;
  x3do:translation ( 0.0 0.0 -0.2 ) .
:Compass a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Transform_2_2_2_1_2_1_2 ;
  x3do:hasChildren :Needle, :Headings, :RoseScript ;
  x3do:DEF 'Compass' .
:Needle a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Compass ;
  x3do:hasChildren :Shape_2_2_2_1_2_1_2_1_1_1 ;
  x3do:DEF 'Needle' .
:Shape_2_2_2_1_2_1_2_1_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Needle ;
  x3do:hasAppearance :Appearance_2_2_2_1_2_1_2_1_1_1_1 ;
  x3do:hasGeometry :IndexedFaceSet_2_2_2_1_2_1_2_1_1_1_2 .
:Appearance_2_2_2_1_2_1_2_1_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_2_1_2_1_2_1_1_1 ;
  x3do:hasTexture :ImageTexture_2_2_2_1_2_1_2_1_1_1_1_1 .
:ImageTexture_2_2_2_1_2_1_2_1_1_1_1_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_2_2_1_2_1_2_1_1_1_1 ;
  x3do:url '"Textures/CompassNeedle.png" "https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/Textures/CompassNeedle.png"' .
:IndexedFaceSet_2_2_2_1_2_1_2_1_1_1_2 a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Shape_2_2_2_1_2_1_2_1_1_1 ;
  x3do:hasCoord :Coordinate_2_2_2_1_2_1_2_1_1_1_2_1 ;
  x3do:hasTexCoord :TextureCoordinate_2_2_2_1_2_1_2_1_1_1_2_2 ;
  x3do:coordIndex ( 1 2 3 -1 1 3 0 -1 ) ;
  x3do:texCoordIndex ( 1 2 3 -1 1 3 0 -1 ) .
:Coordinate_2_2_2_1_2_1_2_1_1_1_2_1 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedFaceSet_2_2_2_1_2_1_2_1_1_1_2 ;
  x3do:point ( 0.5 0.5 0.0 -0.5 0.5 0.0 -0.5 -0.5 0.0 0.5 -0.5 0.0 ) .
:TextureCoordinate_2_2_2_1_2_1_2_1_1_1_2_2 a owl:NamedIndividual, x3do:TextureCoordinate ;
  x3do:hasParent :IndexedFaceSet_2_2_2_1_2_1_2_1_1_1_2 ;
  x3do:point ( 1.0 1.0 0.0 1.0 0.0 0.0 1.0 0.0 ) .
:Headings a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Compass ;
  x3do:hasChildren :Shape_2_2_2_1_2_1_2_1_2_1 ;
  x3do:DEF 'Headings' .
:Shape_2_2_2_1_2_1_2_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Headings ;
  x3do:hasAppearance :Appearance_2_2_2_1_2_1_2_1_2_1_1 ;
  x3do:hasGeometry :IndexedFaceSet_2_2_2_1_2_1_2_1_2_1_2 .
:Appearance_2_2_2_1_2_1_2_1_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_2_1_2_1_2_1_2_1 ;
  x3do:hasTexture :ImageTexture_2_2_2_1_2_1_2_1_2_1_1_1 .
:ImageTexture_2_2_2_1_2_1_2_1_2_1_1_1 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_2_2_1_2_1_2_1_2_1_1 ;
  x3do:url '"Textures/CompassHeadings.png" "https://savage.nps.edu/Savage/Tools/HeadsUpDisplays/Textures/CompassHeadings.png"' .
:IndexedFaceSet_2_2_2_1_2_1_2_1_2_1_2 a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Shape_2_2_2_1_2_1_2_1_2_1 ;
  x3do:hasCoord :Coordinate_2_2_2_1_2_1_2_1_2_1_2_1 ;
  x3do:hasTexCoord :TextureCoordinate_2_2_2_1_2_1_2_1_2_1_2_2 ;
  x3do:coordIndex ( 1 2 3 -1 1 3 0 -1 ) ;
  x3do:texCoordIndex ( 1 2 3 -1 1 3 0 -1 ) .
:Coordinate_2_2_2_1_2_1_2_1_2_1_2_1 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedFaceSet_2_2_2_1_2_1_2_1_2_1_2 ;
  x3do:point ( 0.5 0.5 0.0 -0.5 0.5 0.0 -0.5 -0.5 0.0 0.5 -0.5 0.0 ) .
:TextureCoordinate_2_2_2_1_2_1_2_1_2_1_2_2 a owl:NamedIndividual, x3do:TextureCoordinate ;
  x3do:hasParent :IndexedFaceSet_2_2_2_1_2_1_2_1_2_1_2 ;
  x3do:point ( 1.0 1.0 0.0 1.0 0.0 0.0 1.0 0.0 ) .
:RoseScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Compass ;
  x3do:hasField :field_2_2_2_1_2_1_2_1_3_1, :field_2_2_2_1_2_1_2_1_3_2, :field_2_2_2_1_2_1_2_1_3_3 ;
  x3do:DEF 'RoseScript' ;
  x3do:sourceCode """
ecmascript:
	function proxrot(v) {
		rot[0] = 0;
		rot[1] = 0;
		rot[2] = v[1];
		rot[3] = -v[3];
		dir.set_rotation = rot;
	}
""" .
:field_2_2_2_1_2_1_2_1_3_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :RoseScript ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'rot' ;
  x3do:type 'SFRotation' ;
  x3do:value ( 0.0 1.0 0.0 0.0 ) .
:field_2_2_2_1_2_1_2_1_3_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :RoseScript ;
  x3do:hasChildren :Headings-USE-1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'dir' ;
  x3do:type 'SFNode' .
:Headings-USE-1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :field_2_2_2_1_2_1_2_1_3_2 ;
  owl:sameAs :Headings . # DEF matching this USE
:field_2_2_2_1_2_1_2_1_3_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :RoseScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'proxrot' ;
  x3do:type 'SFRotation' .
