@prefix :        <https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/DraggingSphere.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 'Interchange' ;
  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 'DraggingSphere.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'A sphere that drags its tail around a box in the XY-plane' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Matthew Braun' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '24 July 2001' ;
  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 'Copyright (c) Matthew Braun, 2001' ;
  x3do:name 'rights' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/DraggingSphere.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 "DraggingSphere.x3d" .
:meta dcterms:description "A sphere that drags its tail around a box in the XY-plane" .
:meta dcterms:creator "Matthew Braun" .
:meta dcterms:created "24 July 2001" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:rights "Copyright (c) Matthew Braun, 2001" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/DraggingSphere.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, :ColorINT, :POSINT1, :POSINT2, :POSINT3, :OrientINT, :ScalarInt, :CLOCK1 ;
  x3do:hasROUTE :ROUTE_2_10, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_13, :ROUTE_2_14, :ROUTE_2_15, :ROUTE_2_16, :ROUTE_2_17, :ROUTE_2_18, :ROUTE_2_19, :ROUTE_2_20, :ROUTE_2_21, :ROUTE_2_22 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'DraggingSphere.x3d' .
:Group_2_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Viewpoint_2_2_1, :SPHERETF1, :SPHERETF2, :CYL_TF .
:Viewpoint_2_2_1 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Group_2_2 ;
  x3do:description 'Start' ;
  x3do:position ( -2 2 7 ) .
:SPHERETF1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :SPHERE ;
  x3do:DEF 'SPHERETF1' .
:SPHERE a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :SPHERETF1 ;
  x3do:hasAppearance :Appearance_2_2_2_1_1 ;
  x3do:hasGeometry :Sphere_2_2_2_1_2 ;
  x3do:DEF 'SPHERE' .
:Appearance_2_2_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :SPHERE ;
  x3do:hasMaterial :SPH_MAT .
:SPH_MAT a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_2_1_1 ;
  x3do:DEF 'SPH_MAT' ;
  x3do:ambientIntensity 0.9 ;
  x3do:diffuseColor ( .0 .0 .0 ) .
:Sphere_2_2_2_1_2 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :SPHERE ;
  x3do:radius 0.5 .
:SPHERETF2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :SPHERE-USE-1 ;
  x3do:DEF 'SPHERETF2' .
:SPHERE-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :SPHERETF2 ;
  owl:sameAs :SPHERE . # DEF matching this USE
:CYL_TF a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :CYLSHAPE ;
  x3do:DEF 'CYL_TF' ;
  x3do:rotation ( 0 0 -1 1.571 ) ;
  x3do:scale ( 1 2 1 ) ;
  x3do:translation ( -1 0 0 ) .
:CYLSHAPE a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :CYL_TF ;
  x3do:hasAppearance :Appearance_2_2_4_1_1 ;
  x3do:hasGeometry :Cylinder_2_2_4_1_2 ;
  x3do:DEF 'CYLSHAPE' .
:Appearance_2_2_4_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :CYLSHAPE ;
  x3do:hasMaterial :SPH_MAT-USE-1 .
:SPH_MAT-USE-1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_4_1_1 ;
  owl:sameAs :SPH_MAT . # DEF matching this USE
:Cylinder_2_2_4_1_2 a owl:NamedIndividual, x3do:Cylinder ;
  x3do:hasParent :CYLSHAPE ;
  x3do:radius 0.50 .
:ColorINT a owl:NamedIndividual, x3do:ColorInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ColorINT' ;
  x3do:key ( 0 .25 .50 .75 1.0 ) ;
  x3do:keyValue ( 0.8 0.8 0.8 0.1 0.1 0.9 0.1 0.9 0.1 0.9 0.1 0.1 0.8 0.8 0.8 ) .
:POSINT1 a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'POSINT1' ;
  x3do:key ( 0 0.08 0.16 0.25 0.33 0.41 0.50 0.58 0.66 0.75 0.83 0.91 1.0 ) ;
  x3do:keyValue ( 0.0 0.0 0.0 -2.0 0.0 0.0 -4.0 0.0 0.0 -4.0 0.0 0.0 -4.0 2.0 0.0 -4.0 4.0 0.0 -4.0 4.0 0.0 -2.0 4.0 0.0 0.0 4.0 0.0 0.0 4.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ) .
:POSINT2 a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'POSINT2' ;
  x3do:key ( 0 0.08 0.16 0.25 0.33 0.41 0.50 0.58 0.66 0.75 0.83 0.91 1.0 ) ;
  x3do:keyValue ( 0.0 0.0 0.0 0.0 0.0 0.0 -2.0 0.0 0.0 -4.0 0.0 0.0 -4.0 0.0 0.0 -4.0 2.0 0.0 -4.0 4.0 0.0 -4.0 4.0 0.0 -2.0 4.0 0.0 0.0 4.0 0.0 0.0 4.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 ) .
:POSINT3 a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'POSINT3' ;
  x3do:key ( 0 0.08 0.16 0.25 0.33 0.41 0.50 0.58 0.66 0.75 0.83 0.91 1.0 ) ;
  x3do:keyValue ( 0.0 0.0 0.0 -1.0 0.0 0.0 -3.0 0.0 0.0 -4.0 0.0 0.0 -4.0 1.0 0.0 -4.0 3.0 0.0 -4.0 4.0 0.0 -3.0 4.0 0.0 -1.0 4.0 0.0 0.0 4.0 0.0 0.0 3.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 ) .
:OrientINT a owl:NamedIndividual, x3do:OrientationInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'OrientINT' ;
  x3do:key ( 0.00 0.25 0.25 0.50 0.50 0.75 0.75 1.00 ) ;
  x3do:keyValue ( 0 0 1 1.57 0 0 1 1.57 0 0 0 0 0 0 0 0 0 0 1 1.57 0 0 1 1.57 0 0 0 0 0 0 0 0 ) .
:ScalarInt a owl:NamedIndividual, x3do:PositionInterpolator ;
  x3do:hasParent :Scene ;
  x3do:DEF 'ScalarInt' ;
  x3do:key ( 0 0.08 0.16 0.25 0.33 0.41 0.50 0.58 0.66 0.75 0.83 0.91 1.0 ) ;
  x3do:keyValue ( 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 ) .
:CLOCK1 a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'CLOCK1' ;
  x3do:cycleInterval '6' ;
  x3do:loop true .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'POSINT1' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'POSINT1' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'SPHERETF1' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'POSINT2' .
:ROUTE_2_13 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'POSINT2' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'SPHERETF2' .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'ColorINT' .
:ROUTE_2_15 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ColorINT' ;
  x3do:toField 'set_diffuseColor' ;
  x3do:toNode 'SPH_MAT' .
:ROUTE_2_16 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ColorINT' ;
  x3do:toField 'set_emissiveColor' ;
  x3do:toNode 'SPH_MAT' .
:ROUTE_2_17 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'POSINT3' .
:ROUTE_2_18 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'POSINT3' ;
  x3do:toField 'set_translation' ;
  x3do:toNode 'CYL_TF' .
:ROUTE_2_19 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'OrientINT' .
:ROUTE_2_20 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'OrientINT' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'CYL_TF' .
:ROUTE_2_21 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'CLOCK1' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'ScalarInt' .
:ROUTE_2_22 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'ScalarInt' ;
  x3do:toField 'set_scale' ;
  x3do:toNode 'CYL_TF' .
