@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/TimeTriggerTest.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'TimeTriggerTest.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Test of TimeTrigger node.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '8 October 2007' ;
  x3do:name 'created' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Leonard Daly and Don Brutzman' ;
  x3do:name 'creator' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/TimeTriggerTest.x3d' ;
  x3do:name 'identifier' .
:meta_1_7 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_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "TimeTriggerTest.x3d" .
:meta dcterms:description "Test of TimeTrigger node." .
:meta dcterms:created "8 October 2007" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:creator "Leonard Daly and Don Brutzman" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/TimeTriggerTest.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, :Transform_2_4, :Filter, :Trigger, :TraceScript ;
  x3do:hasROUTE :ROUTE_2_6, :ROUTE_2_8, :ROUTE_2_10, :ROUTE_2_11 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'TimeTriggerTest.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 'TimeTrigger test' ;
  x3do:position ( 0 0 7 ) .
:Transform_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_4_1, :Shape_2_4_2, :TextTouched .
:Shape_2_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasAppearance :Appearance_2_4_1_1 ;
  x3do:hasGeometry :Text_2_4_1_2 .
:Appearance_2_4_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasMaterial :Material_2_4_1_1_1 .
:Material_2_4_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_1 ;
  x3do:diffuseColor ( .6 0 .8 ) .
:Text_2_4_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasFontStyle :FontStyle_2_4_1_2_1 ;
  x3do:string '"Touch text to print" "output values on console"' .
:FontStyle_2_4_1_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_2 ;
  x3do:justify '"MIDDLE" "MIDDLE"' .
:Shape_2_4_2 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasGeometry :Box_2_4_2_1 ;
  x3do:hasAppearance :Appearance_2_4_2_2 .
:Box_2_4_2_1 a owl:NamedIndividual, x3do:Box ;
  x3do:hasParent :Shape_2_4_2 ;
  x3do:size ( 9 2 .001 ) .
:Appearance_2_4_2_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_2 ;
  x3do:hasMaterial :Material_2_4_2_2_1 .
:Material_2_4_2_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_2_2 ;
  x3do:transparency 1 .
:TextTouched a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Transform_2_4 ;
  x3do:DEF 'TextTouched' ;
  x3do:description 'touch to activate' .
:Filter a owl:NamedIndividual, x3do:BooleanFilter ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Filter' .
:ROUTE_2_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TextTouched' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Filter' .
:Trigger a owl:NamedIndividual, x3do:TimeTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'Trigger' .
:ROUTE_2_8 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'inputTrue' ;
  x3do:fromNode 'Filter' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'Trigger' .
:TraceScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_9_1, :field_2_9_2 ;
  x3do:DEF 'TraceScript' ;
  x3do:sourceCode """
ecmascript:
    function printBoolean (value) {
      Browser.println ('TouchSensor isActive="' + value + '"');
    }
    function printTimestamp (value) {
      Browser.println ('====================================' +  '');
      Browser.println ('Trigger triggerTime="' + value + '"');
    }
""" .
:field_2_9_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :TraceScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'printBoolean' ;
  x3do:type 'SFBool' .
:field_2_9_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :TraceScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'printTimestamp' ;
  x3do:type 'SFTime' .
:ROUTE_2_10 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerTime' ;
  x3do:fromNode 'Trigger' ;
  x3do:toField 'printTimestamp' ;
  x3do:toNode 'TraceScript' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'isActive' ;
  x3do:fromNode 'TextTouched' ;
  x3do:toField 'printBoolean' ;
  x3do:toNode 'TraceScript' .
