@prefix :        <https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Chair.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 'Chair.x3d' ;
  x3do:name 'title' .
:meta_1_2 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'A chair for a room, modeled as a Prototype for reuse.' ;
  x3do:name 'description' .
:meta_1_3 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Frederic Roussille' ;
  x3do:name 'creator' .
:meta_1_4 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'Don Brutzman' ;
  x3do:name 'contributor' .
:meta_1_5 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '1 April 2001' ;
  x3do:name 'created' .
:meta_1_6 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content '20 October 2019' ;
  x3do:name 'modified' .
:meta_1_7 a owl:NamedIndividual, x3do:meta ;
  x3do:hasParent :head ;
  x3do:content 'https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Chair.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 "Chair.x3d" .
:meta dcterms:description "A chair for a room, modeled as a Prototype for reuse." .
:meta dcterms:creator "Frederic Roussille" .
:meta dcterms:created "1 April 2001" .
:meta dcterms:modified "20 October 2019" .
:meta dcterms:identifier "https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Chair.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, :Viewpoint_2_2, :chaise ;
  x3do:hasProtoDeclare :ProtoDeclare_2_3 .
:WorldInfo_2_1 a owl:NamedIndividual, x3do:WorldInfo ;
  x3do:hasParent :Scene ;
  x3do:title 'Chair.x3d' .
:Viewpoint_2_2 a owl:NamedIndividual, x3do:Viewpoint ;
  x3do:hasParent :Scene ;
  x3do:description 'Chair example ProtoInstance' ;
  x3do:position ( 0 0 4 ) .
:ProtoDeclare_2_3 a owl:NamedIndividual, x3do:ProtoDeclare ;
  x3do:hasParent :Scene ;
  x3do:hasProtoInterface :ProtoInterface_2_3_1 ;
  x3do:hasProtoBody :ProtoBody_2_3_2 ;
  x3do:name 'Chair' .
:ProtoInterface_2_3_1 a owl:NamedIndividual, x3do:ProtoInterface ;
  x3do:hasParent :ProtoDeclare_2_3 ;
  x3do:hasField :field_2_3_1_1 .
:field_2_3_1_1 a owl:NamedIndividual, x3do:field ;
  x3do:hasParent :ProtoInterface_2_3_1 ;
  x3do:accessType 'inputOutput' ;
  x3do:name 'diffuseColor' ;
  x3do:type 'SFColor' ;
  x3do:value ( 0.7 0.7 0.4 ) .
:ProtoBody_2_3_2 a owl:NamedIndividual, x3do:ProtoBody ;
  x3do:hasParent :ProtoDeclare_2_3 ;
  x3do:hasChildren :Transform_2_3_2_1 ;
  x3do:hasROUTE :ROUTE_2_3_2_2 .
:Transform_2_3_2_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :ProtoBody_2_3_2 ;
  x3do:hasChildren :seat, :Transform_2_3_2_1_2 ;
  x3do:scale ( 0.15 0.15 0.15 ) ;
  x3do:translation ( 0 0.52 0 ) .
:seat a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_3_2_1 ;
  x3do:hasChildren :Transform_2_3_2_1_1_1, :Transform_2_3_2_1_1_2, :SeatRotationCylinderSensor ;
  x3do:DEF 'seat' .
:Transform_2_3_2_1_1_1 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :seat ;
  x3do:hasChildren :Shape_2_3_2_1_1_1_1 ;
  x3do:rotation ( 1 0 0 1.57 ) .
:Shape_2_3_2_1_1_1_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_2_1_1_1 ;
  x3do:hasAppearance :chair_color ;
  x3do:hasGeometry :ExtrusionSeatCushion .
:chair_color a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_1_1_1_1 ;
  x3do:hasMaterial :color ;
  x3do:DEF 'chair_color' .
:color a owl:NamedIndividual, x3do:Material ;
  x3do:hasParent :chair_color ;
  x3do:hasIS :IS_2_3_2_1_1_1_1_1_1_1 ;
  x3do:DEF 'color' .
:IS_2_3_2_1_1_1_1_1_1_1 a owl:NamedIndividual, x3do:IS ;
  x3do:hasParent :color ;
  x3do:hasConnect :connect_2_3_2_1_1_1_1_1_1_1_1 .
:connect_2_3_2_1_1_1_1_1_1_1_1 a owl:NamedIndividual, x3do:connect ;
  x3do:hasParent :IS_2_3_2_1_1_1_1_1_1_1 ;
  x3do:nodeField 'diffuseColor' ;
  x3do:protoField 'diffuseColor' .
:ExtrusionSeatCushion a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_3_2_1_1_1_1 ;
  x3do:DEF 'ExtrusionSeatCushion' ;
  x3do:ccw false ;
  x3do:creaseAngle 1.57 ;
  x3do:crossSection ( -2 0 2 0 2.3 0.3 2.4 0.4 2.5 0.5 2.5 1 -2 1 -2 0 ) ;
  x3do:scale ( 0.5 1 ) ;
  x3do:solid false ;
  x3do:spine ( 1 0 0 0.92 -0.38 0 0.71 -0.71 0 0.38 -0.92 0 0 -1 0 -0.38 -0.92 0 -0.71 -0.71 0 -0.92 -0.38 0 -1 0 0 -0.92 0.38 0 -0.71 0.71 0 -0.38 0.92 0 0 1 0 0.38 0.92 0 0.71 0.71 0 0.92 0.38 0 1 0 0 ) .
:Transform_2_3_2_1_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :seat ;
  x3do:hasChildren :Shape_2_3_2_1_1_2_1 ;
  x3do:translation ( 0 1 1 ) .
:Shape_2_3_2_1_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_2_1_1_2 ;
  x3do:hasAppearance :chair_color-USE-1 ;
  x3do:hasGeometry :ExtrusionSeatBack .
:chair_color-USE-1 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_1_1_2_1 ;
  owl:sameAs :chair_color . # DEF matching this USE
:ExtrusionSeatBack a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_3_2_1_1_2_1 ;
  x3do:DEF 'ExtrusionSeatBack' ;
  x3do:convex false ;
  x3do:creaseAngle 1.57 ;
  x3do:crossSection ( 1 0 0.8 0 0.736 0.304 0.568 0.568 0.304 0.736 0 0.8 -0.304 0.736 -0.568 0.568 -0.736 0.304 -0.8 0 -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.8 0 ) ;
  x3do:scale ( 1.4 1 2 1 ) ;
  x3do:solid false ;
  x3do:spine ( 0 0 0 0 4 0 ) .
:SeatRotationCylinderSensor a owl:NamedIndividual, x3do:CylinderSensor ;
  x3do:hasParent :seat ;
  x3do:DEF 'SeatRotationCylinderSensor' ;
  x3do:description 'Swivel chair' .
:Transform_2_3_2_1_2 a owl:NamedIndividual, x3do:Transform ;
  x3do:hasParent :Transform_2_3_2_1 ;
  x3do:hasChildren :Shape_2_3_2_1_2_1 ;
  x3do:rotation ( 1 0 0 -1.57 ) .
:Shape_2_3_2_1_2_1 a owl:NamedIndividual, x3do:Shape ;
  x3do:hasParent :Transform_2_3_2_1_2 ;
  x3do:hasAppearance :chair_color-USE-2 ;
  x3do:hasGeometry :ExtrusionSeatBase .
:chair_color-USE-2 a owl:NamedIndividual, x3do:Appearance ;
  x3do:hasParent :Shape_2_3_2_1_2_1 ;
  owl:sameAs :chair_color . # DEF matching this USE
:ExtrusionSeatBase a owl:NamedIndividual, x3do:Extrusion ;
  x3do:hasParent :Shape_2_3_2_1_2_1 ;
  x3do:DEF 'ExtrusionSeatBase' ;
  x3do:beginCap false ;
  x3do:convex false ;
  x3do:creaseAngle 1.57 ;
  x3do:crossSection ( 0 0 0.2 0 0.23 2 0.28 3 1 3.3 1.5 3.5 0 3.5 0 0 ) ;
  x3do:endCap false ;
  x3do:solid false ;
  x3do:spine ( 0.1 0 0 0.092 -0.038 0 0.071 -0.071 0 0.038 -0.092 0 0 -0.1 0 -0.038 -0.092 0 -0.071 -0.071 0 -0.092 -0.038 0 -0.1 0 0 -0.092 0.038 0 -0.071 0.071 0 -0.038 0.092 0 0 0.1 0 0.038 0.092 0 0.071 0.071 0 0.092 0.038 0 0.1 0 0 ) .
:ROUTE_2_3_2_2 a owl:NamedIndividual, x3do:ROUTE ;
  x3do:hasParent :ProtoBody_2_3_2 ;
  x3do:fromField 'rotation_changed' ;
  x3do:fromNode 'SeatRotationCylinderSensor' ;
  x3do:toField 'set_rotation' ;
  x3do:toNode 'seat' .
:chaise a owl:NamedIndividual, x3do:ProtoInstance ;
  x3do:hasParent :Scene ;
  x3do:DEF 'chaise' ;
  x3do:name 'Chair' .
