@prefix :        <https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.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 '4.0' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-4.0.xsd' .
:head a owl:NamedIndividual, x3do:head ;
  x3do:hasParent :X3D ;
  x3do:hasComponent :component_1_1, :component_1_2, :component_1_3, :component_1_4, :component_1_5, :component_1_6 ;
  x3do:hasMeta :meta_1_7, :meta_1_8, :meta_1_9, :meta_1_10, :meta_1_11, :meta_1_12, :meta_1_13, :meta_1_14, :meta_1_15, :meta_1_16 .
:component_1_1 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 1 ;
  x3do:name 'Geospatial' .
:component_1_2 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 2 ;
  x3do:name 'NURBS' .
:component_1_3 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 2 ;
  x3do:name 'Core' .
:component_1_4 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 1 ;
  x3do:name 'Navigation' .
:component_1_5 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 1 ;
  x3do:name 'Text' .
:component_1_6 a owl:NamedIndividual, x3do:component ;
  x3do:hasParent :head ;
  x3do:level 1 ;
  x3do:name 'Sound' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3dHeaderPrototypeSyntaxExamples.x3d' ;
  x3do:name 'title' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D scene header and prototype syntax examples. This example header indicates that the content is XML encoded, follows the Interactive Profile and explicitly lists additional necessary components. The X3D header may also contain additional semantic information. Used for specification EXAMPLE excerpts in 19776:1 XML Encoding.' ;
  x3do:name 'description' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '14 October 2002' ;
  x3do:name 'created' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 September 2025' ;
  x3do:name 'modified' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, 4.3 XML file syntax' ;
  x3do:name 'specificationSection' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19776-1v4.0-CD/Part01/concepts.html#XMLFileSyntax' ;
  x3do:name 'specificationUrl' .
:meta_1_14 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.x3d' ;
  x3do:name 'identifier' .
:meta_1_15 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_16 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "X3dHeaderPrototypeSyntaxExamples.x3d" .
:meta dcterms:description "X3D scene header and prototype syntax examples. This example header indicates that the content is XML encoded, follows the Interactive Profile and explicitly lists additional necessary components. The X3D header may also contain additional semantic information. Used for specification EXAMPLE excerpts in 19776:1 XML Encoding." .
:meta dcterms:created "14 October 2002" .
:meta dcterms:modified "28 September 2025" .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.x3d" .
:meta dcterms:generator "X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:license "../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasExternProtoDeclare :ExternProtoDeclare_2_1 ;
  x3do:hasProtoDeclare :ProtoDeclare_2_2, :ProtoDeclare_2_4, :ProtoDeclare_2_5 ;
  x3do:hasChildren :ProtoInstance_2_3, :ProtoInstance_2_6, :ExampleSingleElement, :ExampleChildElement, :TransformExampleUSE, :Collision_2_10, :Transform_2_11, :ConsoleOutputViewPositionOrientation, :Clock, :Spinner, :someInline, :StayInPlace ;
  x3do:hasROUTE :ROUTE_2_15, :ROUTE_2_16, :ROUTE_2_20, :ROUTE_2_21 ;
  x3do:hasIMPORT :IMPORT_2_18 .
:ExternProtoDeclare_2_1 a owl:NamedIndividual, x3do:ExternProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_1_1, :field_2_1_2, :field_2_1_3, :field_2_1_4, :field_2_1_5, :field_2_1_6 ;
  x3do:name 'ViewPositionOrientation' ;
  x3do:url '"../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.x3d#ViewPositionOrientation" "../../Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/ViewPositionOrientationPrototype.wrl#ViewPositionOrientation"' .
:field_2_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'enabled' ;
  x3do:type 'SFBool' .
:field_2_1_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_1 ;
  x3do:accessType 'initializeOnly' ;
  x3do:name 'traceEnabled' ;
  x3do:type 'SFBool' .
:field_2_1_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_1 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_traceEnabled' ;
  x3do:type 'SFBool' .
:field_2_1_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'position_changed' ;
  x3do:type 'SFVec3f' .
:field_2_1_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'orientation_changed' ;
  x3do:type 'SFRotation' .
:field_2_1_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'outputViewpointString' ;
  x3do:type 'MFString' .
:ProtoDeclare_2_2 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoBody :ProtoBody_2_2_1 ;
  x3do:name 'NewWorldInfoNode' .
:ProtoBody_2_2_1 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_2 ;
  x3do:hasChildren :ExamplePrototypeBody .
:ExamplePrototypeBody a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :ProtoBody_2_2_1 ;
  x3do:DEF 'ExamplePrototypeBody' .
:ProtoInstance_2_3 a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:name 'NewWorldInfoNode' .
:ProtoDeclare_2_4 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_4_1 ;
  x3do:hasProtoBody :ProtoBody_2_4_2 ;
  x3do:name 'EmissiveMaterial' .
:ProtoInterface_2_4_1 a owl:NamedIndividual, x3do:ProtoInterface ;
  x3do:hasParent :ProtoDeclare_2_4 ;
  x3do:hasField :field_2_4_1_1 .
:field_2_4_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_4_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'onlyColor' ;
  x3do:type 'SFColor' ;
  x3do:value ( 1 0 0 ) .
:ProtoBody_2_4_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_4 ;
  x3do:hasMaterial :Material_2_4_2_1 .
:Material_2_4_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :ProtoBody_2_4_2 ;
  x3do:hasIS :IS_2_4_2_1_1 ;
  x3do:diffuseColor ( 0 0 0 ) .
:IS_2_4_2_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :Material_2_4_2_1 ;
  x3do:hasConnect :connect_2_4_2_1_1_1 .
:connect_2_4_2_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_4_2_1_1 ;
  x3do:nodeField 'emissiveColor' ;
  x3do:protoField 'onlyColor' .
:ProtoDeclare_2_5 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_5_1 ;
  x3do:hasProtoBody :ProtoBody_2_5_2 ;
  x3do:name 'ShiftGroupUp2m' .
:ProtoInterface_2_5_1 a owl:NamedIndividual, x3do:ProtoInterface ;
  x3do:hasParent :ProtoDeclare_2_5 ;
  x3do:hasField :field_2_5_1_1 .
:field_2_5_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_5_1 ;
  x3do:hasChildren :DefaultNodeValue ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'children' ;
  x3do:type 'MFNode' .
:DefaultNodeValue a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :field_2_5_1_1 ;
  x3do:DEF 'DefaultNodeValue' ;
  x3do:bboxSize ( 2 2 2 ) .
:ProtoBody_2_5_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_5 ;
  x3do:hasChildren :Transform_2_5_2_1 .
:Transform_2_5_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :ProtoBody_2_5_2 ;
  x3do:hasChildren :Group_2_5_2_1_1 ;
  x3do:translation ( 0 2 0 ) .
:Group_2_5_2_1_1 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Transform_2_5_2_1 ;
  x3do:hasIS :IS_2_5_2_1_1_1 .
:IS_2_5_2_1_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :Group_2_5_2_1_1 ;
  x3do:hasConnect :connect_2_5_2_1_1_1_1 .
:connect_2_5_2_1_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_5_2_1_1_1 ;
  x3do:nodeField 'children' ;
  x3do:protoField 'children' .
:ProtoInstance_2_6 a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:name 'ShiftGroupUp2m' .
:ExampleSingleElement a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ExampleSingleElement' ;
  x3do:description 'Hello syntax' .
:ExampleChildElement a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_8_1 ;
  x3do:DEF 'ExampleChildElement' .
:Shape_2_8_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :ExampleChildElement ;
  x3do:hasGeometry :Box_2_8_1_1 ;
  x3do:hasAppearance :Appearance_2_8_1_2 .
:Box_2_8_1_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_8_1 .
:Appearance_2_8_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_8_1 ;
  x3do:hasMaterial :Material_2_8_1_2_1 .
:Material_2_8_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_8_1_2 ;
  x3do:diffuseColor ( 0.6 0.4 0.2 ) .
:TransformExampleUSE a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :ExampleChildElement-USE-1 ;
  x3do:DEF 'TransformExampleUSE' ;
  x3do:rotation ( 0 1 0 0.78 ) ;
  x3do:translation ( 0 2.5 0 ) .
:ExampleChildElement-USE-1 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :TransformExampleUSE ;
  owl:sameAs :ExampleChildElement . # DEF matching this USE
:Collision_2_10 a owl:NamedIndividual, x3do:Collision ;
  x3do:hasParent :Scene ;
  x3do:hasProxy :Shape_2_10_1 ;
  x3do:hasChildren :ExampleChildElement-USE-2 .
:Shape_2_10_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Collision_2_10 ;
  x3do:hasGeometry :Sphere_2_10_1_1 ;
  x3do:hasAppearance :Appearance_2_10_1_2 .
:Sphere_2_10_1_1 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :Shape_2_10_1 .
:Appearance_2_10_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_10_1 ;
  x3do:hasMaterial :Material_2_10_1_2_1 .
:Material_2_10_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_10_1_2 .
:ExampleChildElement-USE-2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Collision_2_10 ;
  owl:sameAs :ExampleChildElement . # DEF matching this USE
:Transform_2_11 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_11_1 ;
  x3do:translation ( 0 -2.5 0 ) .
:Shape_2_11_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_11 ;
  x3do:hasAppearance :Appearance_2_11_1_1 ;
  x3do:hasGeometry :Text_2_11_1_2 .
:Appearance_2_11_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_11_1 ;
  x3do:hasMaterial :ProtoInstance_2_11_1_1_1 .
:ProtoInstance_2_11_1_1_1 a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Appearance_2_11_1_1 ;
  x3do:hasFieldValue :fieldValue_2_11_1_1_1_1 ;
  x3do:name 'EmissiveMaterial' .
:fieldValue_2_11_1_1_1_1 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :ProtoInstance_2_11_1_1_1 ;
  x3do:name 'onlyColor' ;
  x3do:value ( 0.2 0.6 0.6 ) .
:Text_2_11_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_11_1 ;
  x3do:hasFontStyle :FontStyle_2_11_1_2_1 ;
  x3do:string '"X3D Header Prototype syntax examples" "(view console for EXTERNPROTO output)"' .
:FontStyle_2_11_1_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_11_1_2 ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.6 .
:ConsoleOutputViewPositionOrientation a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:hasFieldValue :fieldValue_2_12_1 ;
  x3do:DEF 'ConsoleOutputViewPositionOrientation' ;
  x3do:name 'ViewPositionOrientation' .
:fieldValue_2_12_1 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :ConsoleOutputViewPositionOrientation ;
  x3do:name 'enabled' ;
  x3do:value true .
:Clock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock' ;
  x3do:cycleInterval '4' ;
  x3do:loop true .
:Spinner a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Spinner' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 1 0 0 0 1 0 3.14159 0 1 0 6.28318 ) .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'Spinner' .
:ROUTE_2_16 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'Spinner' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'TransformExampleUSE' .
:someInline a owl:NamedIndividual, x3do:Inline ;
  x3do:hasParent :Scene ;
  x3do:DEF 'someInline' ;
  x3do:url '"someUrl.x3d" "https://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/someUrl.x3d"' .
:IMPORT_2_18 a owl:NamedIndividual, x3do:IMPORT ;
  x3do:hasParent :Scene ;
  x3do:AS 'someInlineRoot' ;
  x3do:importedDEF 'someName' ;
  x3do:inlineDEF 'someInline' .
:StayInPlace a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'StayInPlace' ;
  x3do:key ( 0 1 ) ;
  x3do:keyValue ( 0 0 0 0 0 0 ) .
:ROUTE_2_20 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'StayInPlace' .
:ROUTE_2_21 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'StayInPlace' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'someInlineRoot' .
