@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/SingleTypeConversionExample.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_14 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'SingleTypeConversionExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Converts from a single typed value to various other types of values.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman, Mike Hunsberger, Jane Wu' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '8 June 2003' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '28 November 2019' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'type conversion' ;
  x3do:name 'subject' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'SingleTypeConversionExampleDisplayBegin.png' ;
  x3do:name 'Image' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'SingleTypeConversionExampleDisplayEnd.png' ;
  x3do:name 'Image' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'http://www.cs.brown.edu/~gss/VRML98/paper.rev.html' ;
  x3do:name 'reference' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'http://www.cs.brown.edu/~gss/vrml/hprotos.wrl' ;
  x3do:name 'reference' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'http://www.cs.brown.edu/~gss/vrml/hotpot.zip' ;
  x3do:name 'reference' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/SingleTypeConversionExample.x3d' ;
  x3do:name 'identifier' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_14 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "SingleTypeConversionExample.x3d" .
:meta dcterms:description "Converts from a single typed value to various other types of values." .
:meta dcterms:creator "Don Brutzman, Mike Hunsberger, Jane Wu" .
:meta dcterms:created "8 June 2003" .
:meta dcterms:modified "28 November 2019" .
:meta dcterms:subject "type conversion" .
:meta dcterms:Image "SingleTypeConversionExampleDisplayBegin.png" .
:meta dcterms:Image "SingleTypeConversionExampleDisplayEnd.png" .
:meta dcterms:reference "http://www.cs.brown.edu/~gss/VRML98/paper.rev.html" .
:meta dcterms:reference "http://www.cs.brown.edu/~gss/vrml/hprotos.wrl" .
:meta dcterms:reference "http://www.cs.brown.edu/~gss/vrml/hotpot.zip" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/SingleTypeConversionExample.x3d" .
:meta dcterms:generator "X3D-Edit 3.2, 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_3 ;
  x3do:hasExternProtoDeclare :ExternProtoDeclare_2_2 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'SingleTypeConversionExample.x3d' .
:ExternProtoDeclare_2_2 a owl:NamedIndividual, x3do:ExternProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_2_1, :field_2_2_2, :field_2_2_3, :field_2_2_4, :field_2_2_5, :field_2_2_6, :field_2_2_7, :field_2_2_8, :field_2_2_9, :field_2_2_10, :field_2_2_11, :field_2_2_12 ;
  x3do:appinfo 'SingleTypeConversion converts from a single typed value to various other types of values' ;
  x3do:name 'SingleTypeConversion' ;
  x3do:url '"SingleTypeConversionPrototype.x3d#SingleTypeConversion" "../../../Savage/Tools/Authoring/SingleTypeConversionPrototype.x3d#SingleTypeConversion" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/SingleTypeConversionPrototype.x3d#SingleTypeConversion" "SingleTypeConversionPrototype.wrl#SingleTypeConversion" "../../../Savage/Tools/Authoring/SingleTypeConversionPrototype.wrl#SingleTypeConversion" "https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/SingleTypeConversionPrototype.wrl#SingleTypeConversion"' .
:field_2_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'initializeOnly' ;
  x3do:appinfo 'decimalPlaces is the number of significant digits after the decimal point, use -1 to indicate no round off' ;
  x3do:name 'decimalPlaces' ;
  x3do:type 'SFInt32' .
:field_2_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'setDecimalPlaces' ;
  x3do:type 'SFInt32' .
:field_2_2_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'BooleanValue' ;
  x3do:type 'SFBool' .
:field_2_2_4 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'FloatValue' ;
  x3do:type 'SFFloat' .
:field_2_2_5 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'IntegerValue' ;
  x3do:type 'SFInt32' .
:field_2_2_6 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'TimeValue' ;
  x3do:type 'SFTime' .
:field_2_2_7 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'BooleanResult' ;
  x3do:type 'SFBool' .
:field_2_2_8 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'FloatResult' ;
  x3do:type 'SFFloat' .
:field_2_2_9 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'IntegerResult' ;
  x3do:type 'SFInt32' .
:field_2_2_10 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'TimeResult' ;
  x3do:type 'SFTime' .
:field_2_2_11 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'StringResult' ;
  x3do:type 'SFString' .
:field_2_2_12 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'StringsResult' ;
  x3do:type 'MFString' .
:Group_2_3 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Transform_2_3_1, :Transform_2_3_2, :ClockTrigger, :ConvertTimeToBoolean, :TriggerNode, :IntegerConverter, :Transform_2_3_10, :Transform_2_3_11 ;
  x3do:hasROUTE :ROUTE_2_3_7, :ROUTE_2_3_8, :ROUTE_2_3_9 .
:Transform_2_3_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3 ;
  x3do:hasChildren :Shape_2_3_1_1 ;
  x3do:translation ( 0 2 0 ) .
:Shape_2_3_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_1 ;
  x3do:hasAppearance :Appearance_2_3_1_1_1 ;
  x3do:hasGeometry :Text_2_3_1_1_2 .
:Appearance_2_3_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_1_1 ;
  x3do:hasMaterial :Material_2_3_1_1_1_1 .
:Material_2_3_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_1_1_1 ;
  x3do:diffuseColor ( 0.1 0.6 0.1 ) .
:Text_2_3_1_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_3_1_1 ;
  x3do:hasFontStyle :MIDDLE_MIDDLE ;
  x3do:string '"Example prototype use" "SingleTypeConversion"' .
:MIDDLE_MIDDLE a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_3_1_1_2 ;
  x3do:DEF 'MIDDLE_MIDDLE' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.75 .
:Transform_2_3_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3 ;
  x3do:hasChildren :Shape_2_3_2_1 ;
  x3do:translation ( 0 -0.25 0 ) .
:Shape_2_3_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_2 ;
  x3do:hasAppearance :Appearance_2_3_2_1_1 ;
  x3do:hasGeometry :Text_2_3_2_1_2 .
:Appearance_2_3_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_1 ;
  x3do:hasMaterial :Material_2_3_2_1_1_1 .
:Material_2_3_2_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_2_1_1 ;
  x3do:diffuseColor ( 0 0.35 0.4 ) .
:Text_2_3_2_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_3_2_1 ;
  x3do:hasFontStyle :MIDDLE_MIDDLE-USE-1 ;
  x3do:string '"Integer 23 and a float counter" "are converted into text below"' .
:MIDDLE_MIDDLE-USE-1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_3_2_1_2 ;
  owl:sameAs :MIDDLE_MIDDLE . # DEF matching this USE
:ClockTrigger a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Group_2_3 ;
  x3do:DEF 'ClockTrigger' ;
  x3do:cycleInterval '0.5' ;
  x3do:loop true .
:ConvertTimeToBoolean a owl:NamedIndividual, x3do:BooleanTrigger ;
  x3do:hasParent :Group_2_3 ;
  x3do:DEF 'ConvertTimeToBoolean' .
:TriggerNode a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Group_2_3 ;
  x3do:DEF 'TriggerNode' ;
  x3do:integerKey 23 .
:IntegerConverter a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Group_2_3 ;
  x3do:DEF 'IntegerConverter' ;
  x3do:name 'SingleTypeConversion' .
:ROUTE_2_3_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_3 ;
  x3do:fromField 'cycleTime' ;
  x3do:fromNode 'ClockTrigger' ;
  x3do:toField 'set_triggerTime' ;
  x3do:toNode 'ConvertTimeToBoolean' .
:ROUTE_2_3_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_3 ;
  x3do:fromField 'triggerTrue' ;
  x3do:fromNode 'ConvertTimeToBoolean' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'TriggerNode' .
:ROUTE_2_3_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_3 ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'TriggerNode' ;
  x3do:toField 'IntegerValue' ;
  x3do:toNode 'IntegerConverter' .
:Transform_2_3_10 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3 ;
  x3do:hasChildren :Shape_2_3_10_1 ;
  x3do:hasROUTE :ROUTE_2_3_10_2 ;
  x3do:translation ( -1.8 -2.5 0 ) .
:Shape_2_3_10_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_10 ;
  x3do:hasAppearance :Appearance_2_3_10_1_1 ;
  x3do:hasGeometry :IntegerText .
:Appearance_2_3_10_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_10_1 ;
  x3do:hasMaterial :Material_2_3_10_1_1_1 .
:Material_2_3_10_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_10_1_1 ;
  x3do:diffuseColor ( 0.8 0 0 ) .
:IntegerText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_3_10_1 ;
  x3do:hasFontStyle :BEGIN_MIDDLE ;
  x3do:DEF 'IntegerText' ;
  x3do:string '"__"' .
:BEGIN_MIDDLE a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :IntegerText ;
  x3do:DEF 'BEGIN_MIDDLE' ;
  x3do:justify '"BEGIN" "MIDDLE"' .
:ROUTE_2_3_10_2 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Transform_2_3_10 ;
  x3do:fromField 'StringsResult' ;
  x3do:fromNode 'IntegerConverter' ;
  x3do:toField 'set_string' ;
  x3do:toNode 'IntegerText' .
:Transform_2_3_11 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3 ;
  x3do:hasChildren :Shape_2_3_11_1, :FloatClock, :FloatCounter, :FloatConverter ;
  x3do:hasROUTE :ROUTE_2_3_11_5, :ROUTE_2_3_11_6, :ROUTE_2_3_11_7 ;
  x3do:translation ( 0.2 -2.5 0 ) .
:Shape_2_3_11_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:hasAppearance :Appearance_2_3_11_1_1 ;
  x3do:hasGeometry :FloatText .
:Appearance_2_3_11_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_11_1 ;
  x3do:hasMaterial :Material_2_3_11_1_1_1 .
:Material_2_3_11_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_3_11_1_1 ;
  x3do:diffuseColor ( 0.8 0 0 ) .
:FloatText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_3_11_1 ;
  x3do:hasFontStyle :BEGIN_MIDDLE-USE-1 ;
  x3do:DEF 'FloatText' ;
  x3do:string '"_._"' .
:BEGIN_MIDDLE-USE-1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :FloatText ;
  owl:sameAs :BEGIN_MIDDLE . # DEF matching this USE
:FloatClock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:DEF 'FloatClock' ;
  x3do:cycleInterval '5' ;
  x3do:loop true .
:FloatCounter a owl:NamedIndividual, x3do:ScalarInterpolator ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:DEF 'FloatCounter' ;
  x3do:key ( 0 0.2 0.4 1 ) ;
  x3do:keyValue ( 23.000 23.000 45.67 45.67 ) .
:FloatConverter a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:hasFieldValue :fieldValue_2_3_11_4_1 ;
  x3do:DEF 'FloatConverter' ;
  x3do:name 'SingleTypeConversion' .
:fieldValue_2_3_11_4_1 a owl:NamedIndividual, x3do:fieldValue ;
  x3do:hasParent :FloatConverter ;
  x3do:name 'decimalPlaces' ;
  x3do:value 2 .
:ROUTE_2_3_11_5 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'FloatClock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'FloatCounter' .
:ROUTE_2_3_11_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'FloatCounter' ;
  x3do:toField 'FloatValue' ;
  x3do:toNode 'FloatConverter' .
:ROUTE_2_3_11_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Transform_2_3_11 ;
  x3do:fromField 'StringsResult' ;
  x3do:fromNode 'FloatConverter' ;
  x3do:toField 'set_string' ;
  x3do:toNode 'FloatText' .
