@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/ColorInterpolatorExample.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.3' ;
  x3do:noNamespaceSchemaLocation 'https://www.web3d.org/specifications/x3d-3.3.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ColorInterpolatorExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Demonstrate basic design pattern for animating a node.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '17 April 2005' ;
  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 'ColorInterpolatorExampleSceneGraphWithRoutes.png' ;
  x3do:name 'drawing' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'ColorInterpolatorExample4Colors.png' ;
  x3do:name 'Image' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Animation ColorInterpolator' ;
  x3do:name 'subject' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/ColorInterpolatorExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_10 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_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "ColorInterpolatorExample.x3d" .
:meta dcterms:description "Demonstrate basic design pattern for animating a node." .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "17 April 2005" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:drawing "ColorInterpolatorExampleSceneGraphWithRoutes.png" .
:meta dcterms:Image "ColorInterpolatorExample4Colors.png" .
:meta dcterms:subject "Animation ColorInterpolator" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation/ColorInterpolatorExample.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, :Group_2_2 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'ColorInterpolatorExample.x3d' .
:Group_2_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Transform_2_2_1, :Transform_2_2_2, :AnimationClock, :ColorChanger ;
  x3do:hasROUTE :ROUTE_2_2_4, :ROUTE_2_2_6, :ROUTE_2_2_7 .
:Transform_2_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :Shape_2_2_1_1, :Shape_2_2_1_2, :TextTriggerTouchSensor ;
  x3do:translation ( 0 2 0 ) .
:Shape_2_2_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_2_1 ;
  x3do:hasGeometry :Text_2_2_1_1_1 ;
  x3do:hasAppearance :Appearance_2_2_1_1_2 .
:Text_2_2_1_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_2_1_1 ;
  x3do:hasFontStyle :FontStyle_2_2_1_1_1_1 ;
  x3do:string '"Touch text to" "start animation..."' .
:FontStyle_2_2_1_1_1_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_2_1_1_1 ;
  x3do:justify '"MIDDLE" "MIDDLE"' .
:Appearance_2_2_1_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_1_1 ;
  x3do:hasMaterial :Material_2_2_1_1_2_1 .
:Material_2_2_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_1_1_2 .
:Shape_2_2_1_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_2_1 ;
  x3do:hasGeometry :Box_2_2_1_2_1 ;
  x3do:hasAppearance :Appearance_2_2_1_2_2 .
:Box_2_2_1_2_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_2_1_2 ;
  x3do:size ( 6.2 2 .001 ) .
:Appearance_2_2_1_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_1_2 ;
  x3do:hasMaterial :Material_2_2_1_2_2_1 .
:Material_2_2_1_2_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_1_2_2 ;
  x3do:transparency 1 .
:TextTriggerTouchSensor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Transform_2_2_1 ;
  x3do:DEF 'TextTriggerTouchSensor' ;
  x3do:description 'Touch text to start...' .
:Transform_2_2_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :Shape_2_2_2_1 ;
  x3do:translation ( 0 -1 0 ) .
:Shape_2_2_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_2_2 ;
  x3do:hasGeometry :Sphere_2_2_2_1_1 ;
  x3do:hasAppearance :Appearance_2_2_2_1_2 .
:Sphere_2_2_2_1_1 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :Shape_2_2_2_1 .
:Appearance_2_2_2_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_2_1 ;
  x3do:hasMaterial :SphereMaterial .
:SphereMaterial a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_2_1_2 ;
  x3do:DEF 'SphereMaterial' ;
  x3do:diffuseColor ( 0.5 0.5 0.5 ) .
:AnimationClock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Group_2_2 ;
  x3do:DEF 'AnimationClock' ;
  x3do:cycleInterval '6' .
:ROUTE_2_2_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_2 ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'TextTriggerTouchSensor' ;
  x3do:toField 'startTime' ;
  x3do:toNode 'AnimationClock' .
:ColorChanger a owl:NamedIndividual, x3do:ColorInterpolator ;
  x3do:hasParent :Group_2_2 ;
  x3do:DEF 'ColorChanger' ;
  x3do:key ( 0 0.3333 0.6666 1 ) ;
  x3do:keyValue ( 1 0 0 0 1 0 0 0 1 1 0 0 ) .
:ROUTE_2_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_2 ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'AnimationClock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'ColorChanger' .
:ROUTE_2_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_2 ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ColorChanger' ;
  x3do:toField 'diffuseColor' ;
  x3do:toNode 'SphereMaterial' .
