@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Example.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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'RifleM24Example.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Animation example from RifleM24 Prototype. Clicking trigger fires and sound.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Etsuko Lippi' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '31 Decmember 2001' ;
  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 'X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit' ;
  x3do:name 'generator' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Example.x3d' ;
  x3do:name 'identifier' .
:meta_1_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Rifle M24' ;
  x3do:name 'subject' .
:meta_1_9 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "RifleM24Example.x3d" .
:meta dcterms:description "Animation example from RifleM24 Prototype. Clicking trigger fires and sound." .
:meta dcterms:creator "Etsuko Lippi" .
:meta dcterms:created "31 Decmember 2001" .
:meta dcterms:modified "28 November 2019" .
:meta dcterms:generator "X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Example.x3d" .
:meta dcterms:subject "Rifle M24" .
:meta dcterms:license "../../license.html" .
:Scene a owl:NamedIndividual, x3do:Scene ;
  x3do:hasParent :X3D ;
  x3do:hasChildren :WorldInfo_2_1, :Background_2_3, :Group_2_4, :Target, :About ;
  x3do:hasExternProtoDeclare :ExternProtoDeclare_2_2 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'RifleM24Example.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 ;
  x3do:appinfo 'Rifle M24' ;
  x3do:name 'RifleM24' ;
  x3do:url '"RifleM24Prototype.x3d#RifleM24" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Prototype.x3d#RifleM24" "RifleM24Prototype.wrl#RifleM24" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/RifleM24Prototype.wrl#RifleM24"' .
:field_2_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:appinfo 'input true to fire' ;
  x3do:name 'trigger' ;
  x3do:type 'SFBool' .
:field_2_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'outputOnly' ;
  x3do:appinfo 'output true when fired' ;
  x3do:name 'fire' ;
  x3do:type 'SFBool' .
:field_2_2_3 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ExternProtoDeclare_2_2 ;
  x3do:accessType 'inputOnly' ;
  x3do:appinfo 'trigger animation' ;
  x3do:name 'animationStartTime' ;
  x3do:type 'SFTime' .
:Background_2_3 a owl:NamedIndividual, x3do:Background ;
  x3do:hasParent :Scene ;
  x3do:skyColor ( 0.604 0.753 0.804 ) .
:Group_2_4 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :rifleM24, :FireScript, :FireTouchSensor ;
  x3do:hasROUTE :ROUTE_2_4_4, :ROUTE_2_4_5, :ROUTE_2_4_6 .
:rifleM24 a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Group_2_4 ;
  x3do:DEF 'rifleM24' ;
  x3do:name 'RifleM24' .
:FireScript a owl:NamedIndividual, x3do:Script ;
  x3do:hasParent :Group_2_4 ;
  x3do:hasField :field_2_4_2_1, :field_2_4_2_2 ;
  x3do:DEF 'FireScript' ;
  x3do:sourceCode """
ecmascript:

function enabled (value, timeStamp)
{
        //print ('enabled value =' + value);
        if (value == true)
           fire = value;
}
""" .
:field_2_4_2_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :FireScript ;
  x3do:accessType 'outputOnly' ;
  x3do:name 'fire' ;
  x3do:type 'SFBool' .
:field_2_4_2_2 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :FireScript ;
  x3do:accessType 'inputOnly' ;
  x3do:name 'enabled' ;
  x3do:type 'SFBool' .
:FireTouchSensor a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_4 ;
  x3do:DEF 'FireTouchSensor' ;
  x3do:description 'click to shoot' .
:ROUTE_2_4_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_4 ;
  x3do:fromField 'isOver' ;
  x3do:fromNode 'FireTouchSensor' ;
  x3do:toField 'enabled' ;
  x3do:toNode 'FireScript' .
:ROUTE_2_4_5 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_4 ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'FireTouchSensor' ;
  x3do:toField 'animationStartTime' ;
  x3do:toNode 'rifleM24' .
:ROUTE_2_4_6 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Group_2_4 ;
  x3do:fromField 'fire' ;
  x3do:fromNode 'FireScript' ;
  x3do:toField 'trigger' ;
  x3do:toNode 'rifleM24' .
:Target a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Shape_2_5_1 ;
  x3do:DEF 'Target' ;
  x3do:rotation ( 0.58 0.58 0.58 2.09 ) ;
  x3do:translation ( 50 -1 0 ) .
:Shape_2_5_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Target ;
  x3do:hasAppearance :Appearance_2_5_1_1 ;
  x3do:hasGeometry :IndexedFaceSet_2_5_1_2 .
:Appearance_2_5_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_5_1 ;
  x3do:hasMaterial :Material_2_5_1_1_1 ;
  x3do:hasTexture :ImageTexture_2_5_1_1_2 .
:Material_2_5_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_5_1_1 .
:ImageTexture_2_5_1_1_2 a owl:NamedIndividual, x3do:ImageTexture ;
  x3do:hasParent :Appearance_2_5_1_1 ;
  x3do:url '"Target.gif" "Target.jpg" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/Target.gif" "https://www.web3d.org/x3d/content/examples/Savage/Weapons/SmallArms/Target.jpg"' .
:IndexedFaceSet_2_5_1_2 a owl:NamedIndividual, x3do:IndexedFaceSet ;
  x3do:hasParent :Shape_2_5_1 ;
  x3do:hasCoord :Coordinate_2_5_1_2_1 ;
  x3do:coordIndex ( 0 1 2 3 0 ) ;
  x3do:creaseAngle 1.75 ;
  x3do:solid false .
:Coordinate_2_5_1_2_1 a owl:NamedIndividual, x3do:Coordinate ;
  x3do:hasParent :IndexedFaceSet_2_5_1_2 ;
  x3do:point ( 0.00 1.30 0 2.5 1.30 0 2.5 -1.30 0 0.00 -1.30 0 ) .
:About a owl:NamedIndividual, x3do:Anchor ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :AboutRifleM24 ;
  x3do:DEF 'About' ;
  x3do:description 'Federation of American Scientists (FAS) page' ;
  x3do:parameter '"target=_blank"' ;
  x3do:url '"https://www.fas.org/man/dod-101/sys/land/m14.htm"' .
:AboutRifleM24 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :About ;
  x3do:hasChildren :Shape_2_6_1_1 ;
  x3do:DEF 'AboutRifleM24' ;
  x3do:translation ( -0.5 -0.4 -0.3 ) .
:Shape_2_6_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :AboutRifleM24 ;
  x3do:hasAppearance :Appearance_2_6_1_1_1 ;
  x3do:hasGeometry :Text_2_6_1_1_2 .
:Appearance_2_6_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_6_1_1 ;
  x3do:hasMaterial :Material_2_6_1_1_1_1 .
:Material_2_6_1_1_1_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_6_1_1_1 ;
  x3do:diffuseColor ( 0 0 0.545 ) .
:Text_2_6_1_1_2 a owl:NamedIndividual, x3do:Text ;
  x3do:hasParent :Shape_2_6_1_1 ;
  x3do:hasFontStyle :FontStyle_2_6_1_1_2_1 ;
  x3do:string '"About RifleM24"' .
:FontStyle_2_6_1_1_2_1 a owl:NamedIndividual, x3do:FontStyle ;
  x3do:hasParent :Text_2_6_1_1_2 ;
  x3do:justify '"MIDDLE" "MIDDLE"' ;
  x3do:size 0.25 ;
  x3do:cssStyle 'BOLD' .
