<!--
 File: data/contexts/OASIS/templates/WorkOrder/test_data/work_order.xml
 -->
<!--
    $Id: work_order.xml,v 1.12 2013/05/28 10:43:25 robbod Exp $
    Author: Rob Bodington, Eurostep Limited
    Owner:  Developed by Eurostep 
    Purpose: work order test data
 -->
<cmn:Uos xsi:schemaLocation="http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/plcs/plcs-psm/xml-schema/plcs-psm ../../../../../PLCS/psm_model/plcs_psm.xsd">
<!--
 header information present in every file 
 -->
Rob Bodington
 </Name>
 </Author>
Eurostep Limited
 </Name>
 </Organization>
Hand created
 </OriginatingSystem>
A hand coded example showing how a WorkOrder is represented
 </Documentation>
 </Header>
<DataContainer xsi:type="plcs:PlcsDataContainer">
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Main Body  
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
 
        every file should identify the ExchangeContextClassLibrary to indicate the 
        main OWL ontology that imports all the reference data used.
    
 -->

<!-- id001: -->
<!--
 The IRI of the Ontology NOT the OWL file 
 -->
http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl
 </LibraryId>
 </ExchangeContextClassLibrary>
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Classes  
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
 Class of Activity_input. 
        Note the ExternalOwlClass for Activity_input should only appear once 
 -->

<!-- id002: -->
<!--
 Class of CAGE identifiers. 
        Note the ExternalOwlClass for CAGE_code should only appear once 
 -->

<!-- id003: -->
<!--
 Class of Issuer_of. 
        Note the ExternalOwlClass for PersOrgAsg_actual_issuer should only appear once 
 -->

<!-- id004: -->
<!--
 Class of Part number identifiers. 
        Note the ExternalOwlClass for Part_identification_code should only appear once 
 -->

<!-- id005: -->
<!--
 Class of Serial number identifiers. 
        Note the ExternalOwlClass for Serial_identification_code should only appear once 
 -->

<!-- id006: -->
<!--
 Class of Version identifiers. 
        Note the ExternalOwlClass for Version_identification_code should only appear once 
 -->

<!-- id008: -->
<!--
 Class of WorkOrder number identifiers. 
        Note the ExternalOwlClass for Work_order_identification_code should only appear once 
 -->

<!-- id009: -->
<!--
 Class of Work_order_issue_date. 
        Note the ExternalOwlClass for Date_actual_release should only appear once 
 -->

<!-- id010: -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Individuals  
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
 Individual: Work_order_in_progress
        Note the ExternalOwlObject for Work_order_in_progress should only appear once 
 -->

<!-- id011: Referenced by: StateDefinition:id023, -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Work order  
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->

<!-- id012: Referenced by: DirectedActivity:id020, -->
<Id>
 <Identifier id="wo-1" idContextRef="id013" idRoleRef="id009"/>
 </Id>
2011-07-12T16:25:00
 </AssignedDate>
 </DateTimeAssignment>

<!-- id015: -->
 <Classification classRef="id004"/>
 </ClassifiedAs>
 <AssignedEntity uidRef="id013"/>
 </OrganizationOrPersonInOrganizationAssignment>
 <AssignedState uidRef="id025"/>
 </StateAssignment>
 </WorkOrder>

<!-- id020: Referenced by: ProductAsIndividual:id026, ProductVersion:id028, -->
 <Directive uidRef="id012"/>
 </DirectedActivity>
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Organization issuing Work order  
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
 Sending Organization identified by its CAGE code:  OrganizationX 
 -->

<!-- id013: Referenced by: WorkOrder:id012, OrganizationOrPersonInOrganizationAssignment:id015, -->
<Id>
 <Identifier id="OrganizationX" idRoleRef="id003"/>
 </Id>
 </Organization>
<!--
 Receiving Organization identified by its CAGE code:  OrganizationX 
 -->

<!-- id019: -->
<Id>
 <Identifier id="OrganizationRCX" idRoleRef="id003"/>
 </Id>
 </Organization>
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Assigning status to Work order  
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
 State of Work order 
 -->

<!-- id023: Referenced by: StateAssertion:id024, -->
 <Definition uidRef="id011"/>
 </StateDefinition>

<!-- id024: -->
 <AssertedState uidRef="id025"/>
 <ConformanceState uidRef="id023"/>
 </StateAssertion>
 <StateObserved uid="id025"/>
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Subject of Work order  - A realized part 
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->

<!-- id026: Referenced by: ProductDesignToIndividual:id033, -->
<Id>
 <Identifier id="sn001" idContextRef="id013" idRoleRef="id006"/>
 </Id>

<!-- id028: -->
<ProductVersion uid="id028" xsi:type="plcs:ProductAsRealized">
<Id>
 <Identifier id="rev-A" idContextRef="id013" idRoleRef="id008"/>
 </Id>

<!-- id030: -->
<ProductViewDefinition uid="id030" xsi:type="plcs:ProductAsIndividualView">
 </ProductViewDefinition>
 </ViewDefinitions>
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
<!--
    Assignment to the input / subject of Directed activity of the         
 -->
<!--
    Work order  - A realized part 
 -->
<!--
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
 -->
 <Classification classRef="id002"/>
 </ClassifiedAs>
 <AssignedActivity uidRef="id020"/>
 </ActivityAssignment>
<!--
 the assignment of the observed state to the realized product. 
 -->

<!-- id031: -->
 <Classification classRef="id005"/>
 </ClassifiedAs>
 <AssignedState uidRef="id025"/>
 </StateAssignment>
 </ProductVersion>
 </Versions>
 </ProductAsIndividual>
<!--
 Individual: Product_life_cycle_support
            Note the ExternalOwlObject for Product_life_cycle_support should only appear once 
 -->

<!-- indApDomain: Referenced by: ApplicationDomain:ApDomain, -->
<!--
 Individual: Utilization_stage
            Note the ExternalOwlObject for Utilization_stage should only appear once 
 -->

<!-- indLifeCycleStage: Referenced by: LifeCycleStage:LifeCycleStage, -->

<!-- ApDomain: Referenced by: ViewDefinitionContext:idViewDefnContext, -->
 <Definition uidRef="indApDomain"/>
 </ApplicationDomain>

<!-- LifeCycleStage: Referenced by: ViewDefinitionContext:idViewDefnContext, -->
 </LifeCycleStage>
<!--
  ViewDefinitionContext  
 -->

<!-- idViewDefnContext: Referenced by: ProductAsIndividual:id026, ProductVersion:id028, ProductViewDefinition:id030, -->
 </ViewDefinitionContext>

<!-- id033: -->
 <ProductDesign uidRef="id034"/>
 <IndividualProduct uidRef="id026"/>
 </ProductDesignToIndividual>
<!--
 Part identified by its Part number:  p2 
 -->

<!-- id034: Referenced by: ProductDesignToIndividual:id033, -->
<Part uid="id034">
<Id>
 <Identifier id="p2" idContextRef="id013" idRoleRef="id005"/>
 </Id>
 </Part>
 </DataContainer>
 </cmn:Uos>