@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/IntegerTriggerExample.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'IntegerTriggerExample.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'An IntegerTrigger node controls the display of colored text.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman and Leonard Daly' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '1 March 2008' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '25 August 2023' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'KelpTank.x3d' ;
  x3do:name 'reference' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/IntegerTriggerExample.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 "IntegerTriggerExample.x3d" .
:meta dcterms:description "An IntegerTrigger node controls the display of colored text." .
:meta dcterms:creator "Don Brutzman and Leonard Daly" .
:meta dcterms:created "1 March 2008" .
:meta dcterms:modified "25 August 2023" .
:meta dcterms:reference "KelpTank.x3d" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/IntegerTriggerExample.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, :Background_2_2, :Viewpoint_2_3, :SwitchColoredTextGroups, :Filter1, :Filter2, :Filter3 ;
  x3do:hasROUTE :ROUTE_2_8, :ROUTE_2_9, :ROUTE_2_10, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_13 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'IntegerTriggerExample.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 1 1 1 ) .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Select text to change color' ;
  x3do:position ( 0 0 6 ) .
:SwitchColoredTextGroups a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Group_2_4_1, :Group_2_4_2, :Group_2_4_3 ;
  x3do:DEF 'SwitchColoredTextGroups' ;
  x3do:whichChoice 0 .
:Group_2_4_1 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :SwitchColoredTextGroups ;
  x3do:hasChildren :Shape_2_4_1_1, :TransparentBox, :Touch1 .
:Shape_2_4_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasAppearance :Appearance_2_4_1_1_1 ;
  x3do:hasGeometry :MessageText .
:Appearance_2_4_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1_1 ;
  x3do:hasMaterial :Material_2_4_1_1_1_1 .
:Material_2_4_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_1_1 ;
  x3do:diffuseColor ( 1 0 0 ) .
:MessageText a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1_1 ;
  x3do:hasFontStyle :FontStyle_2_4_1_1_2_1 ;
  x3do:DEF 'MessageText' ;
  x3do:string '"Select these words" "to change color"' .
:FontStyle_2_4_1_1_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :MessageText ;
  x3do:justify '"MIDDLE" "BEGIN"' .
:TransparentBox a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:hasGeometry :Box_2_4_1_2_1 ;
  x3do:hasAppearance :Appearance_2_4_1_2_2 ;
  x3do:DEF 'TransparentBox' .
:Box_2_4_1_2_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :TransparentBox ;
  x3do:size ( 6 2 0.02 ) .
:Appearance_2_4_1_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :TransparentBox ;
  x3do:hasMaterial :Material_2_4_1_2_2_1 .
:Material_2_4_1_2_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_2_2 ;
  x3do:transparency 1 .
:Touch1 a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_4_1 ;
  x3do:DEF 'Touch1' ;
  x3do:description 'touch to activate' .
:Group_2_4_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :SwitchColoredTextGroups ;
  x3do:hasChildren :Shape_2_4_2_1, :TransparentBox-USE-1, :Touch2 .
:Shape_2_4_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_2 ;
  x3do:hasAppearance :Appearance_2_4_2_1_1 ;
  x3do:hasGeometry :MessageText-USE-1 .
:Appearance_2_4_2_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_2_1 ;
  x3do:hasMaterial :Material_2_4_2_1_1_1 .
:Material_2_4_2_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_2_1_1 ;
  x3do:diffuseColor ( 0 1 1 ) .
:MessageText-USE-1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_2_1 ;
  owl:sameAs :MessageText . # DEF matching this USE
:TransparentBox-USE-1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_2 ;
  owl:sameAs :TransparentBox . # DEF matching this USE
:Touch2 a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_4_2 ;
  x3do:DEF 'Touch2' ;
  x3do:description 'touch to activate' .
:Group_2_4_3 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :SwitchColoredTextGroups ;
  x3do:hasChildren :Shape_2_4_3_1, :TransparentBox-USE-2, :Touch3 .
:Shape_2_4_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_3 ;
  x3do:hasAppearance :Appearance_2_4_3_1_1 ;
  x3do:hasGeometry :MessageText-USE-2 .
:Appearance_2_4_3_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_3_1 ;
  x3do:hasMaterial :Material_2_4_3_1_1_1 .
:Material_2_4_3_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_3_1_1 ;
  x3do:diffuseColor ( 0.7 0.7 0 ) .
:MessageText-USE-2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_3_1 ;
  owl:sameAs :MessageText . # DEF matching this USE
:TransparentBox-USE-2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Group_2_4_3 ;
  owl:sameAs :TransparentBox . # DEF matching this USE
:Touch3 a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_4_3 ;
  x3do:DEF 'Touch3' ;
  x3do:description 'touch to activate' .
:Filter1 a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Filter1' ;
  x3do:integerKey 1 .
:Filter2 a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Filter2' ;
  x3do:integerKey 2 .
:Filter3 a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Filter3' ;
  x3do:integerKey 0 .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'Touch1' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Filter1' .
:ROUTE_2_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'Touch2' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Filter2' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'Touch3' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Filter3' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'Filter1' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'SwitchColoredTextGroups' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'Filter2' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'SwitchColoredTextGroups' .
:ROUTE_2_13 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'Filter3' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'SwitchColoredTextGroups' .
