@prefix :        <https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/UserExperienceUX/EventMonitorTest.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_12, :meta_1_13 .
:meta_1_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'EventMonitorTest.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'This scene demonstrates how to receive a simple event and report it graphically, repeating every few seconds. Scene conversion from the XML encoding (.x3d) is then used to demonstrate X3DOM event handling within a web page (.xhtml).' ;
  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 'Chris Peri, Dave Arendash and Damon Hernandez' ;
  x3do:name 'acknowledgements' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '15 March 2014' ;
  x3do:name 'created' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '31 October 2021' ;
  x3do:name 'modified' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'record log outputs, compare various X3D players' ;
  x3do:name 'TODO' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'AEC Hackathon v1.1, Facebook Menlo Park California' ;
  x3do:name 'reference' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'http://www.aechackathon.org' ;
  x3do:name 'reference' .
:meta_1_10 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/UserExperienceUX/EventMonitorTest.x3d' ;
  x3do:name 'identifier' .
:meta_1_11 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_12 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/stylesheets/X3dToX3dom.xslt' ;
  x3do:name 'generator' .
:meta_1_13 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "EventMonitorTest.x3d" .
:meta dcterms:description "This scene demonstrates how to receive a simple event and report it graphically, repeating every few seconds. Scene conversion from the XML encoding (.x3d) is then used to demonstrate X3DOM event handling within a web page (.xhtml)." .
:meta dcterms:creator "Don Brutzman" .
:meta dcterms:created "15 March 2014" .
:meta dcterms:modified "31 October 2021" .
:meta dcterms:reference "AEC Hackathon v1.1, Facebook Menlo Park California" .
:meta dcterms:reference "http://www.aechackathon.org" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/UserExperienceUX/EventMonitorTest.x3d" .
:meta dcterms:generator "X3D-Edit 4.0, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:generator "https://www.web3d.org/x3d/stylesheets/X3dToX3dom.xslt" .
: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, :EventSwitch, :EventTrueTrigger, :EventFalseTrigger, :EventReceiverScript, :BooleanSwitcher, :SwitchTestClock ;
  x3do:hasROUTE :ROUTE_2_7, :ROUTE_2_9, :ROUTE_2_11, :ROUTE_2_12, :ROUTE_2_14, :ROUTE_2_16 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'EventMonitorTest.x3d' .
:Background_2_2 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.4 0.6 1 ) .
:Viewpoint_2_3 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Event Monitor Text' ;
  x3do:position ( 0 0 6 ) .
:Transform_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_4_1 ;
  x3do:translation ( -0.6 1.2 0 ) .
:Shape_2_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_4 ;
  x3do:hasGeometry :Text_2_4_1_1 ;
  x3do:hasAppearance :Appearance_2_4_1_2 .
:Text_2_4_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasFontStyle :Font ;
  x3do:string '"Event Status"' .
:Font a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_4_1_1 ;
  x3do:DEF 'Font' ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:cssStyle 'BOLD' .
:Appearance_2_4_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_4_1 ;
  x3do:hasMaterial :TextMaterial .
:TextMaterial a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_4_1_2 ;
  x3do:DEF 'TextMaterial' ;
  x3do:diffuseColor ( 0.7 0.7 0.1 ) .
:EventSwitch a owl:NamedIndividual, x3do:Switch ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :DisplayUp, :DisplayDown ;
  x3do:DEF 'EventSwitch' ;
  x3do:whichChoice 0 .
:DisplayUp a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :EventSwitch ;
  x3do:hasChildren :Shape_2_5_1_1, :Transform_2_5_1_2 ;
  x3do:DEF 'DisplayUp' .
:Shape_2_5_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :DisplayUp ;
  x3do:hasGeometry :Text_2_5_1_1_1 ;
  x3do:hasAppearance :Appearance_2_5_1_1_2 .
:Text_2_5_1_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_5_1_1 ;
  x3do:hasFontStyle :Font-USE-1 ;
  x3do:string '"UP"' .
:Font-USE-1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_5_1_1_1 ;
  owl:sameAs :Font . # DEF matching this USE
:Appearance_2_5_1_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_1_1 ;
  x3do:hasMaterial :UpColor .
:UpColor a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_1_1_2 ;
  x3do:DEF 'UpColor' ;
  x3do:diffuseColor ( 0.2 0.7 0.3 ) .
:Transform_2_5_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :DisplayUp ;
  x3do:hasChildren :Shape_2_5_1_2_1 ;
  x3do:translation ( -2.5 0 0 ) .
:Shape_2_5_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_5_1_2 ;
  x3do:hasGeometry :SmallCone ;
  x3do:hasAppearance :Appearance_2_5_1_2_1_2 .
:SmallCone a owl:NamedIndividual, x3do:Cone ;
  x3do:hasParent :Shape_2_5_1_2_1 ;
  x3do:DEF 'SmallCone' ;
  x3do:bottomRadius 0.4 ;
  x3do:height 0.6 .
:Appearance_2_5_1_2_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_1_2_1 ;
  x3do:hasMaterial :UpColor-USE-1 .
:UpColor-USE-1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_1_2_1_2 ;
  owl:sameAs :UpColor . # DEF matching this USE
:DisplayDown a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :EventSwitch ;
  x3do:hasChildren :Shape_2_5_2_1, :Transform_2_5_2_2 ;
  x3do:DEF 'DisplayDown' .
:Shape_2_5_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :DisplayDown ;
  x3do:hasGeometry :Text_2_5_2_1_1 ;
  x3do:hasAppearance :Appearance_2_5_2_1_2 .
:Text_2_5_2_1_1 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_5_2_1 ;
  x3do:hasFontStyle :Font-USE-2 ;
  x3do:string '"DOWN"' .
:Font-USE-2 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_5_2_1_1 ;
  owl:sameAs :Font . # DEF matching this USE
:Appearance_2_5_2_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_2_1 ;
  x3do:hasMaterial :DownColor .
:DownColor a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_2_1_2 ;
  x3do:DEF 'DownColor' ;
  x3do:diffuseColor ( 1 0.2 0.2 ) .
:Transform_2_5_2_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :DisplayDown ;
  x3do:hasChildren :Shape_2_5_2_2_1 ;
  x3do:rotation ( 1 0 0 3.14159 ) ;
  x3do:translation ( -2.5 0 0 ) .
:Shape_2_5_2_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_5_2_2 ;
  x3do:hasGeometry :SmallCone-USE-1 ;
  x3do:hasAppearance :Appearance_2_5_2_2_1_2 .
:SmallCone-USE-1 a owl:NamedIndividual, x3do:Cone ;
  x3do:hasParent :Shape_2_5_2_2_1 ;
  owl:sameAs :SmallCone . # DEF matching this USE
:Appearance_2_5_2_2_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_2_2_1 ;
  x3do:hasMaterial :DownColor-USE-1 .
:DownColor-USE-1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_2_2_1_2 ;
  owl:sameAs :DownColor . # DEF matching this USE
:EventTrueTrigger a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'EventTrueTrigger' ;
  x3do:integerKey 0 .
:ROUTE_2_7 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'EventTrueTrigger' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'EventSwitch' .
:EventFalseTrigger a owl:NamedIndividual, x3do:IntegerTrigger ;
  x3do:hasParent :Scene ;
  x3do:DEF 'EventFalseTrigger' ;
  x3do:integerKey 1 .
:ROUTE_2_9 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'triggerValue' ;
  x3do:fromNode 'EventFalseTrigger' ;
  x3do:toField 'whichChoice' ;
  x3do:toNode 'EventSwitch' .
:EventReceiverScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Scene ;
  x3do:hasField :field_2_10_1, :field_2_10_2, :field_2_10_3 ;
  x3do:DEF 'EventReceiverScript' ;
  x3do:sourceCode """
ecmascript:

function input (eventValue) // input eventValue received for inputOnly field
{
   if (eventValue) eventIsTrue  = true;
   else            eventIsFalse = true;
}
""" .
:field_2_10_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :EventReceiverScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'input' ;
  x3do:type 'SFBool' .
:field_2_10_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :EventReceiverScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'eventIsTrue' ;
  x3do:type 'SFBool' .
:field_2_10_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :EventReceiverScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'eventIsFalse' ;
  x3do:type 'SFBool' .
:ROUTE_2_11 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'eventIsTrue' ;
  x3do:fromNode 'EventReceiverScript' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'EventTrueTrigger' .
:ROUTE_2_12 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'eventIsFalse' ;
  x3do:fromNode 'EventReceiverScript' ;
  x3do:toField 'set_boolean' ;
  x3do:toNode 'EventFalseTrigger' .
:BooleanSwitcher a owl:NamedIndividual, x3do:BooleanSequencer ;
  x3do:hasParent :Scene ;
  x3do:DEF 'BooleanSwitcher' ;
  x3do:key ( 0 0.5 1 ) ;
  x3do:keyValue ( true false false ) .
:ROUTE_2_14 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'value_changed' ;
  x3do:fromNode 'BooleanSwitcher' ;
  x3do:toField 'input' ;
  x3do:toNode 'EventReceiverScript' .
:SwitchTestClock a owl:NamedIndividual, x3do:TimeSensor ;
  x3do:hasParent :Scene ;
  x3do:DEF 'SwitchTestClock' ;
  x3do:cycleInterval '6' ;
  x3do:loop true .
:ROUTE_2_16 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'fraction_changed' ;
  x3do:fromNode 'SwitchTestClock' ;
  x3do:toField 'set_fraction' ;
  x3do:toNode 'BooleanSwitcher' .
