<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: state_assertion_rdl.xml,v 1.12 2013/02/18 16:30:32 robbod Exp $ -->

<cmn:Uos
    xmlns:plcs="http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/plcs/plcs-psm/xml-schema/plcs-psm"
    xmlns:cmn="http://standards.iso.org/iso/ts/10303/-3000/-ed-1/tech/xml-schema/common"
    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"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <!-- header information present in every file -->
    <Header>
        <Author>
            <Name>Rob Bodington</Name>
        </Author>
        <Organization>
            <Name>Eurostep Limited</Name>
        </Organization>
        <OriginatingSystem>Hand created</OriginatingSystem>
        <Documentation>A hand coded example showing how a Part 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.
        -->
        <ExchangeContextClassLibrary uid="id001">
            <!-- The IRI of the Ontology NOT the OWL file -->
            <LibraryId>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl</LibraryId>
        </ExchangeContextClassLibrary>
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!--    Classes  -->
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!-- Class of Actual_fault_state_assignment. 
            Note the ClassifiedByOwlClass for Actual_fault_state_assignment should only appear once -->
        <ExternalOwlClass uid="idFaultStateAsg">
            <Class>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Fault_state_assignment</Class>
        </ExternalOwlClass>
        
        <!-- Class of CAGE identifiers. 
        Note the ExternalOwlClass for CAGE_code should only appear once -->
        <ExternalOwlClass uid="id002">
            <Class>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#CAGE_code</Class>
        </ExternalOwlClass>
        <!-- Class of Part number identifiers. 
        Note the ExternalOwlClass for Part_identification_code should only appear once -->
        <ExternalOwlClass uid="id003">
            <Class>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Part_identification_code</Class>
        </ExternalOwlClass>
        <!-- Class of Serial number identifiers. 
        Note the ExternalOwlClass for Serial_identification_code should only appear once -->
        <ExternalOwlClass uid="id004">
            <Class>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Part_identification_code</Class>
        </ExternalOwlClass>
        <!-- Class of Version identifiers. 
        Note the ExternalOwlClass for Version_identification_code should only appear once -->
        <ExternalOwlClass uid="id006">
            <Class>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Version_identification_code</Class>
        </ExternalOwlClass>
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!--    Individuals  -->
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!-- Individual: Product_life_cycle_support
        Note the ExternalOwlObject for Product_life_cycle_support should only appear once -->
        <ExternalOwlObject uid="id007">
            <Individual>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Product_life_cycle_support</Individual>
        </ExternalOwlObject>
        <!-- Individual: Utilization_stage
        Note the ExternalOwlObject for Utilization_stage should only appear once -->
        <ExternalOwlObject uid="id008">
            <Individual>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Utilization_stage</Individual>
        </ExternalOwlObject>
        <!-- Individual: StateDefinition Serviceable 
        Note the ExternalOwlObject for Serviceable should only appear once -->
        <ExternalOwlObject uid="id009">
            <Individual>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Serviceable</Individual>
        </ExternalOwlObject>
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!--    Asserted state  -->
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <StateDefinition uid="id010">
            <Definition uidRef="id009"/>
        </StateDefinition>
        <StateAssertion uid="id011">
            <AssertedState uidRef="id012"/>
            <ConformanceState uidRef="id010"/>
        </StateAssertion>
        <StateObserved uid="id012"/>
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!--    Realized product against which state is asserted  -->
        <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
        <!-- 
        Part identified by its Part number:  p2 
    -->
        <Part uid="id013">
            <Id>
                <Identifier id="p2" idContextRef="id014" idRoleRef="id003"/>
            </Id>
        </Part>
        <ProductAsIndividual uid="id017">
            <Id>
                <Identifier id="sn001" idContextRef="id014" idRoleRef="id004"/>
            </Id>
            <Versions>
                <ProductVersion uid="id019" xsi:type="plcs:ProductAsRealized">
                    <Id>
                        <Identifier id="rev-A" idContextRef="id014" idRoleRef="id006"/>
                    </Id>
                    <ViewDefinitions>
                        <ProductViewDefinition uid="id020" xsi:type="plcs:ProductAsIndividualView">
                            <InitialContext uidRef="idViewDefnContext"/>
                        </ProductViewDefinition>
                    </ViewDefinitions>
                    <!-- the assignment of the observed state to the realized product. -->
                    <StateAssignment uid="id021">
                        <ClassifiedAs>
                            <Classification classRef="idFaultStateAsg"/>
                        </ClassifiedAs>
                        <AssignedState uidRef="id012"/>
                    </StateAssignment>
                </ProductVersion>
            </Versions>
        </ProductAsIndividual>
        <ProductDesignToIndividual uid="id022">
            <ProductDesign uidRef="id013"/>
            <IndividualProduct uidRef="id017"/>
        </ProductDesignToIndividual>
        <!-- 
        ViewDefinitionContext - only one is instantiated and then referenced.
    -->
        <!-- Individual: Product_life_cycle_support
        Note the ExternalOwlObject for Product_life_cycle_support should only appear once -->
        <ExternalOwlObject uid="indApDomain">
            <Individual>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Product_life_cycle_support</Individual>
        </ExternalOwlObject>
        <!-- Individual: Utilization_stage
        Note the ExternalOwlObject for Utilization_stage should only appear once -->
        <ExternalOwlObject uid="indLifeCycleStage">
            <Individual>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Utilization_stage</Individual>
        </ExternalOwlObject>
        <ApplicationDomain uid="ApDomain">
            <Definition uidRef="indApDomain"/>
        </ApplicationDomain>
        <LifeCycleStage uid="LifeCycleStage">
            <Definition uidRef="indLifeCycleStage"/>
        </LifeCycleStage>
        <!-- 
        ViewDefinitionContext - only one is instantiated and then referenced.
    -->
        <ViewDefinitionContext uid="idViewDefnContext">
            <ApplicationDomain uidRef="ApDomain"/>
            <LifeCycleStage uidRef="LifeCycleStage"/>
        </ViewDefinitionContext>
        <!-- Organization identified by its CAGE code:  OrganizationX -->
        <Organization uid="id014">
            <Id>
                <Identifier id="OrganizationX" idRoleRef="id002"/>
            </Id>
        </Organization>
    </DataContainer>
</cmn:Uos>