@prefix :        <https://www.web3d.org/x3d/content/examples/Basic/development/TestPrototypeInterpolators.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.2' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.2.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 'TestPrototypeInterpolators.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Test case for Prototype PositionInterpolator OrientationInterpolator, expected behavior: is for both sets of test Text to move identically.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman and Jeff Weekley' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '4 April 2009' ;
  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://savage.nps.edu/Savage/Tools/Animation/WaypointInterpolatorPrototype.x3d' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Basic/development/TestPrototypeInterpolators.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 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_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "TestPrototypeInterpolators.x3d" .
:meta dcterms:description "Test case for Prototype PositionInterpolator OrientationInterpolator, expected behavior: is for both sets of test Text to move identically." .
:meta dcterms:creator "Don Brutzman and Jeff Weekley" .
:meta dcterms:created "4 April 2009" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:reference "https://savage.nps.edu/Savage/Tools/Animation/WaypointInterpolatorPrototype.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Basic/development/TestPrototypeInterpolators.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, :Clock, :InterpolatorTestInstance, :LeftText, :ActualPositionInterpolator, :ActualOrientationInterpolator, :RightText, :ExternalTraceScript ;
  x3do:hasProtoDeclare :ProtoDeclare_2_2 ;
  x3do:hasROUTE :ROUTE_2_10, :ROUTE_2_11 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'TestPrototypeInterpolators.x3d' .
:ProtoDeclare_2_2 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_2_1 ;
  x3do:hasProtoBody :ProtoBody_2_2_2 ;
  x3do:appinfo 'Test output of PositionInterpolator, OrientationInterpolator when within Protototype' ;
  x3do:name 'InterpolatorTest' .
: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_3 .
:field_2_2_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'inputOnly' ;
  x3do:appinfo 'exposed PositionInterpolator and OrientationInterpolator setting' ;
  x3do:name 'set_fraction' ;
  x3do:type 'SFFloat' .
:field_2_2_1_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'exposed PositionInterpolator setting' ;
  x3do:name 'position_changed' ;
  x3do:type 'SFVec3f' .
:field_2_2_1_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_2_1 ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'exposed OrientationInterpolator setting' ;
  x3do:name 'orientation_changed' ;
  x3do:type 'SFRotation' .
:ProtoBody_2_2_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_2 ;
  x3do:hasChildren :PrototypeRootNode, :InternalTraceScript ;
  x3do:hasROUTE :ROUTE_2_2_2_3, :ROUTE_2_2_2_4 .
:PrototypeRootNode a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:hasChildren :WaypointPI, :WaypointOI ;
  x3do:DEF 'PrototypeRootNode' .
:WaypointPI a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :PrototypeRootNode ;
  x3do:hasIS :IS_2_2_2_1_1_1 ;
  x3do:DEF 'WaypointPI' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 0 0 1 1 1 2 2 2 ) .
:IS_2_2_2_1_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :WaypointPI ;
  x3do:hasConnect :connect_2_2_2_1_1_1_1, :connect_2_2_2_1_1_1_2 .
:connect_2_2_2_1_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_1_1 ;
  x3do:nodeField 'set_fraction' ;
  x3do:protoField 'set_fraction' .
:connect_2_2_2_1_1_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_1_1 ;
  x3do:nodeField 'value_changed' ;
  x3do:protoField 'position_changed' .
:WaypointOI a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :PrototypeRootNode ;
  x3do:hasIS :IS_2_2_2_1_2_1 ;
  x3do:DEF 'WaypointOI' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 1 0 0 0.7071 0.7071 0 3.1416 0 1 0 0 ) .
:IS_2_2_2_1_2_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :WaypointOI ;
  x3do:hasConnect :connect_2_2_2_1_2_1_1, :connect_2_2_2_1_2_1_2 .
:connect_2_2_2_1_2_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'set_fraction' ;
  x3do:protoField 'set_fraction' .
:connect_2_2_2_1_2_1_2 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_2_2_1_2_1 ;
  x3do:nodeField 'value_changed' ;
  x3do:protoField 'orientation_changed' .
:InternalTraceScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:hasField :field_2_2_2_2_1, :field_2_2_2_2_2, :field_2_2_2_2_3 ;
  x3do:DEF 'InternalTraceScript' ;
  x3do:sourceCode """
ecmascript:
function set_position (value)
{
	holdPosition=value;
}
function set_rotation (value)
{
	Browser.println ('Internal position=' + holdPosition.toString() + ' , internal rotation=' + value.toString());
}
""" .
:field_2_2_2_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :InternalTraceScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_position' ;
  x3do:type 'SFVec3f' .
:field_2_2_2_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :InternalTraceScript ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'holdPosition' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 0.0 0.0 0.0 ) .
:field_2_2_2_2_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :InternalTraceScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_rotation' ;
  x3do:type 'SFRotation' .
:ROUTE_2_2_2_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'WaypointPI' ;
  x3do:toField 'set_position' ;
  x3do:toNode 'InternalTraceScript' .
:ROUTE_2_2_2_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_2_2 ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'WaypointOI' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'InternalTraceScript' .
:Clock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Clock' ;
  x3do:cycleInterval '6' ;
  x3do:loop true .
:InterpolatorTestInstance a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:DEF 'InterpolatorTestInstance' ;
  x3do:name 'InterpolatorTest' .
:LeftText a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TrackingTransformLeft ;
  x3do:DEF 'LeftText' ;
  x3do:translation ( -3 0 0 ) .
:TrackingTransformLeft a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :LeftText ;
  x3do:hasROUTE :ROUTE_2_5_1_1, :ROUTE_2_5_1_2, :ROUTE_2_5_1_3 ;
  x3do:hasChildren :Shape_2_5_1_4 ;
  x3do:DEF 'TrackingTransformLeft' .
:ROUTE_2_5_1_1 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformLeft ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'InterpolatorTestInstance' .
:ROUTE_2_5_1_2 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformLeft ;
  x3do:fromField 'position_changed' ;
  x3do:fromNode 'InterpolatorTestInstance' ;
  x3do:toField 'translation' ;
  x3do:toNode 'TrackingTransformLeft' .
:ROUTE_2_5_1_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformLeft ;
  x3do:fromField 'orientation_changed' ;
  x3do:fromNode 'InterpolatorTestInstance' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'TrackingTransformLeft' .
:Shape_2_5_1_4 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :TrackingTransformLeft ;
  x3do:hasGeometry :Text_2_5_1_4_1 ;
  x3do:hasAppearance :Appearance_2_5_1_4_2 .
:Text_2_5_1_4_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_5_1_4 ;
  x3do:hasFontStyle :FontStyle_2_5_1_4_1_1 ;
  x3do:string '"prototype interpolators"' .
:FontStyle_2_5_1_4_1_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_5_1_4_1 ;
  x3do:justify '"MIDDLE" "MIDDLE"' .
:Appearance_2_5_1_4_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_1_4 ;
  x3do:hasMaterial :Material_2_5_1_4_2_1 .
:Material_2_5_1_4_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_1_4_2 ;
  x3do:diffuseColor ( 0.8 0.2 0.2 ) .
:ActualPositionInterpolator a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ActualPositionInterpolator' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 0 0 1 1 1 2 2 2 ) .
:ActualOrientationInterpolator a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ActualOrientationInterpolator' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( 0 1 0 0 0.7071 0.7071 0 3.1416 0 1 0 0 ) .
:RightText a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :TrackingTransformRight ;
  x3do:DEF 'RightText' ;
  x3do:translation ( -3 -2 0 ) .
:TrackingTransformRight a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :RightText ;
  x3do:hasROUTE :ROUTE_2_8_1_1, :ROUTE_2_8_1_2, :ROUTE_2_8_1_3, :ROUTE_2_8_1_4 ;
  x3do:hasChildren :Shape_2_8_1_5 ;
  x3do:DEF 'TrackingTransformRight' .
:ROUTE_2_8_1_1 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformRight ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'ActualPositionInterpolator' .
:ROUTE_2_8_1_2 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformRight ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'Clock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'ActualOrientationInterpolator' .
:ROUTE_2_8_1_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformRight ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ActualPositionInterpolator' ;
  x3do:toField 'translation' ;
  x3do:toNode 'TrackingTransformRight' .
:ROUTE_2_8_1_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :TrackingTransformRight ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ActualOrientationInterpolator' ;
  x3do:toField 'rotation' ;
  x3do:toNode 'TrackingTransformRight' .
:Shape_2_8_1_5 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :TrackingTransformRight ;
  x3do:hasGeometry :Text_2_8_1_5_1 ;
  x3do:hasAppearance :Appearance_2_8_1_5_2 .
:Text_2_8_1_5_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_8_1_5 ;
  x3do:string '"native interpolators"' .
:Appearance_2_8_1_5_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_8_1_5 ;
  x3do:hasMaterial :Material_2_8_1_5_2_1 .
:Material_2_8_1_5_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_8_1_5_2 ;
  x3do:diffuseColor ( 0.2 0.8 0.2 ) .
:ExternalTraceScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_9_1, :field_2_9_2, :field_2_9_3 ;
  x3do:DEF 'ExternalTraceScript' ;
  x3do:sourceCode """
ecmascript:
function set_position (value)
{
	holdPosition=value;
}
function set_rotation (value)
{
	 Browser.println ('External position=' + holdPosition.toString() + ' , external rotation=' + value.toString());
}
""" .
:field_2_9_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternalTraceScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_position' ;
  x3do:type 'SFVec3f' .
:field_2_9_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternalTraceScript ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'holdPosition' ;
  x3do:type 'SFVec3f' ;
  x3do:value ( 0.0 0.0 0.0 ) .
:field_2_9_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternalTraceScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'set_rotation' ;
  x3do:type 'SFRotation' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ActualPositionInterpolator' ;
  x3do:toField 'set_position' ;
  x3do:toNode 'ExternalTraceScript' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ActualOrientationInterpolator' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'ExternalTraceScript' .
