<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Id: realizedpart.xml,v 1.13 2013/06/16 06:47:14 robbod Exp $
    Author: Rob Bodington, Eurostep Limited
    Owner:  Developed by Eurostep 
    Purpose: realized part test data
-->

<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 RealizedPart is represented</Documentation>
    </Header>

    <DataContainer xsi:type="plcs:PlcsDataContainer">
        <!-- 
        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 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#Serial_identification_code</Class>
        </ExternalOwlClass>
        <!-- Class of Version identifiers. 
        Note the ExternalOwlClass for Version_identification_code should only appear once -->
        <ExternalOwlClass uid="id005">
            <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="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="id011">
            <Id>
                <Identifier id="OrganizationX" idRoleRef="id002"/>
            </Id>
        </Organization>
        <!-- 
        Part identified by its Part number:  p2 
        
    -->
        <Part uid="id013">
            <Id>
                <Identifier id="p2" idContextRef="id011" idRoleRef="id003"/>
            </Id>
        </Part>
        <!-- 
        Product as individual with nested Product as realized and Product as individual view
        -->
        <ProductAsIndividual uid="id015">
            <Id>
                <Identifier id="sn001" idContextRef="id011" idRoleRef="id004"/>
            </Id>
            <Versions>
                <ProductVersion uid="id016" xsi:type="plcs:ProductAsRealized">
                    <ViewDefinitions>
                        <ProductViewDefinition uid="id018" xsi:type="plcs:ProductAsIndividualView">
                            <InitialContext uidRef="idViewDefnContext"/>
                        </ProductViewDefinition>
                    </ViewDefinitions>
                </ProductVersion>
            </Versions>
        </ProductAsIndividual>
        <ProductDesignToIndividual uid="id019">
            <ProductDesign uidRef="id013"/>
            <IndividualProduct uidRef="id015"/>
        </ProductDesignToIndividual>
    </DataContainer>
</cmn:Uos>