@prefix :        <https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Toilet.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.1.xsd#> .
@prefix x3do:    <https://www.web3d.org/specifications/X3dOntology4.1#> .

: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_1 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Toilet.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Toilet for bathroom.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Baris AKTOP' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '12 September 2002' ;
  x3do:name 'created' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Toilet.x3d' ;
  x3do:name 'identifier' .
:meta_1_7 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_8 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '../../license.html' ;
  x3do:name 'license' .
:meta dcterms:title "Toilet.x3d" .
:meta dcterms:description "Toilet for bathroom." .
:meta dcterms:creator "Baris AKTOP" .
:meta dcterms:created "12 September 2002" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Toilet.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_2, :Group_2_3 ;
  x3do:hasROUTE :ROUTE_2_4 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'Toilet.x3d' .
:Group_2_2 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Transform_2_2_1, :coverOpen, :coverOpen1, :Transform_2_2_4 .
:Transform_2_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :Shape_2_2_1_1 ;
  x3do:rotation ( 0 0 1 -1.57 ) .
:Shape_2_2_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_2_1 ;
  x3do:hasAppearance :Appearance_2_2_1_1_1 ;
  x3do:hasGeometry :Extrusion_2_2_1_1_2 .
:Appearance_2_2_1_1_1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_1_1 ;
  x3do:hasMaterial :toiletapp .
:toiletapp a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_1_1_1 ;
  x3do:DEF 'toiletapp' ;
  x3do:diffuseColor ( 0.9 0.95 0.95 ) .
:Extrusion_2_2_1_1_2 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_2_1_1 ;
  x3do:creaseAngle 3.14 ;
  x3do:crossSection ( 1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1 0 -1 1 -0.92 1.38 -0.71 1.71 -0.38 1.92 0 2 0.38 1.92 0.71 1.71 0.92 1.38 1 1 1 0.001 1.2 0.001 1.2 1 1.104 1.456 0.852 1.852 0.456 2.104 0 2.2 -0.456 2.104 -0.852 1.852 -1.104 1.456 -1.2 1 -1.2 0 -1.104 -0.456 -0.852 -0.852 -0.456 -1.104 0 -1.2 0.456 -1.104 0.852 -0.852 1.104 -0.456 1.2 0 1 0 ) ;
  x3do:scale ( 0.5 0.5 0.45 0.45 0.4 0.4 0.35 0.35 0.3 0.3 0.25 0.25 0.35 0.35 0.45 0.45 0.6 0.6 0.8 0.8 0.9 0.9 0.95 0.95 1 1 0.9 0.9 ) ;
  x3do:solid false ;
  x3do:spine ( 0 0 0 0 0.1 0 0 0.15 0 0 0.35 0 0 0.55 0 0 0.65 0 0 0.75 0 0 0.85 0 0 0.95 0 0 1.1 0 0 1.25 0 0 1.4 0 0 1.95 0 0 2 0 ) .
:coverOpen a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :Inline_2_2_2_1, :open ;
  x3do:hasROUTE :ROUTE_2_2_2_3 ;
  x3do:DEF 'coverOpen' ;
  x3do:center ( 0 0 -1 ) ;
  x3do:scale ( 1.1 1 1 ) ;
  x3do:translation ( 2 0 0 ) .
:Inline_2_2_2_1 a owl:NamedIndividual, x3do:Inline ;
  x3do:hasParent :coverOpen ;
  x3do:url '"Flip.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Flip.x3d" "Flip.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Flip.wrl"' .
:open a owl:NamedIndividual, x3do:CylinderSensor ;
  x3do:hasParent :coverOpen ;
  x3do:DEF 'open' ;
  x3do:description 'drag to rotate' ;
  x3do:maxAngle 1.6 .
:ROUTE_2_2_2_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :coverOpen ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'open' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'coverOpen' .
:coverOpen1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :Inline_2_2_3_1, :open1 ;
  x3do:hasROUTE :ROUTE_2_2_3_3 ;
  x3do:DEF 'coverOpen1' ;
  x3do:center ( 0 0 -1 ) ;
  x3do:scale ( 1 1.05 1.05 ) ;
  x3do:translation ( 2.1 0 -0.1 ) .
:Inline_2_2_3_1 a owl:NamedIndividual, x3do:Inline ;
  x3do:hasParent :coverOpen1 ;
  x3do:url '"Flip2.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Flip2.x3d" "Flip2.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/Flip2.wrl"' .
:open1 a owl:NamedIndividual, x3do:CylinderSensor ;
  x3do:hasParent :coverOpen1 ;
  x3do:DEF 'open1' ;
  x3do:description 'drag to rotate' ;
  x3do:maxAngle 1.6 .
:ROUTE_2_2_3_3 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :coverOpen1 ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'open1' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'coverOpen1' .
:Transform_2_2_4 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_2 ;
  x3do:hasChildren :Shape_2_2_4_1, :Transform_2_2_4_2 ;
  x3do:rotation ( 0 0 1 -1.57 ) ;
  x3do:scale ( 2 1.3 2 ) ;
  x3do:translation ( 2.2 0 -1.35 ) .
:Shape_2_2_4_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_2_4 ;
  x3do:hasGeometry :Extrusion_2_2_4_1_1 ;
  x3do:hasAppearance :Appearance_2_2_4_1_2 .
:Extrusion_2_2_4_1_1 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_2_4_1 ;
  x3do:creaseAngle 3.14 ;
  x3do:crossSection ( 0.5 -0.05 0.475 -0.025 0.45 0 -0.45 0 -0.475 -0.025 -0.5 -0.05 -0.5 -0.45 -0.475 -0.475 -0.45 -0.5 0.45 -0.5 0.475 -0.475 0.5 -0.45 0.5 -0.05 ) ;
  x3do:scale ( 0.8 0.8 0.85 0.85 0.9 0.9 1 1 1 1 0.95 0.95 ) ;
  x3do:solid false ;
  x3do:spine ( 0 0 0 0 0.05 0 0 0.1 0 0 0.5 0 0 1 0 0 0.95 0 ) .
:Appearance_2_2_4_1_2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_4_1 ;
  x3do:hasMaterial :Material_2_2_4_1_2_1 .
:Material_2_2_4_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :Appearance_2_2_4_1_2 ;
  x3do:diffuseColor ( 0.9 0.9 0.9 ) .
:Transform_2_2_4_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_2_4 ;
  x3do:hasChildren :Transform_2_2_4_2_1 ;
  x3do:rotation ( 1 0 0 3.14 ) ;
  x3do:scale ( 0.1 0.1 0.1 ) ;
  x3do:translation ( 0 0.3 -0.2 ) .
:Transform_2_2_4_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_2_4_2 ;
  x3do:hasChildren :Shape_2_2_4_2_1_1 ;
  x3do:rotation ( 0 1 0 3.14 ) .
:Shape_2_2_4_2_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_2_4_2_1 ;
  x3do:hasGeometry :Extrusion_2_2_4_2_1_1_1 ;
  x3do:hasAppearance :fountainapp .
:Extrusion_2_2_4_2_1_1_1 a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_2_4_2_1_1 ;
  x3do:creaseAngle 3.14 ;
  x3do:crossSection ( 1 0 0.92 -0.38 0.71 -0.71 0.38 -0.92 0 -1 -0.38 -0.92 -0.71 -0.71 -0.92 -0.38 -1 0 -0.92 0.38 -0.71 0.71 -0.38 0.92 0 1 0.38 0.92 0.71 0.71 0.92 0.38 1 0 ) ;
  x3do:spine ( 0 0 0 0 5 0 0 6.76 0.16 0 7.42 0.58 0 7.84 1.24 0 8 2 0 7.84 2.76 0 7.42 3.42 ) .
:fountainapp a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_2_4_2_1_1 ;
  x3do:hasMaterial :Material_2_2_4_2_1_1_2_1 ;
  x3do:DEF 'fountainapp' .
:Material_2_2_4_2_1_1_2_1 a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :fountainapp ;
  x3do:diffuseColor ( 0.95 0.95 0.95 ) ;
  x3do:shininess 1 .
:Group_2_3 a owl:NamedIndividual, x3do:Group ;
  x3do:hasParent :Scene ;
  x3do:hasChildren :Sound_2_3_1, :Touch, :Transform_2_3_3 .
:Sound_2_3_1 a owl:NamedIndividual, x3do:Sound ;
  x3do:hasParent :Group_2_3 ;
  x3do:hasSource :Source ;
  x3do:maxBack 30 ;
  x3do:maxFront 30 ;
  x3do:minBack 15 ;
  x3do:minFront 15 .
:Source a owl:NamedIndividual, x3do:AudioClip ;
  x3do:hasParent :Sound_2_3_1 ;
  x3do:DEF 'Source' ;
  x3do:description 'flush toilet' ;
  x3do:url '"flushtoilet.wav" "https://www.web3d.org/x3d/content/examples/Savage/Buildings/HouseBarisAktop/flushtoilet.wav"' .
:Touch a owl:NamedIndividual, x3do:TouchSensor ;
  x3do:hasParent :Group_2_3 ;
  x3do:DEF 'Touch' ;
  x3do:description 'touch to activate' .
:Transform_2_3_3 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Group_2_3 ;
  x3do:hasChildren :Shape_2_3_3_1 ;
  x3do:scale ( 0.05 0.05 0.05 ) ;
  x3do:translation ( 3.5 0 -1.75 ) .
:Shape_2_3_3_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_3 ;
  x3do:hasGeometry :Sphere_2_3_3_1_1 ;
  x3do:hasAppearance :fountainapp-USE-1 .
:Sphere_2_3_3_1_1 a owl:NamedIndividual, x3do:Sphere ;
  x3do:hasParent :Shape_2_3_3_1 ;
  x3do:radius 2 .
:fountainapp-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_3_1 ;
  owl:sameAs :fountainapp . # DEF matching this USE
:ROUTE_2_4 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :Scene ;
  x3do:fromField 'touchTime' ;
  x3do:fromNode 'Touch' ;
  x3do:toField 'set_startTime' ;
  x3do:toNode 'Source' .
