<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Id: text_property.xml,v 1.14 2013/06/17 08:52:06 robbod Exp $
    Author: Rob Bodington, Eurostep Limited
    Owner:  Developed by Eurostep 
    Purpose: text property 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 TextProperty 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>
        
        <!-- 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>
        
        <!-- 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  -->
        <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>
        <!-- The text property -->
        <ExternalPropertyDefinition uid="id017">
            <Definition uidRef="id019"/>
        </ExternalPropertyDefinition>
        <ExternalOwlObject uid="id019">
            <Individual>http://docs.oasis-open.org/plcs/ns/plcslib/v1.0/data/contexts/OASIS/refdata/plcs-rdl#Colour</Individual>
        </ExternalOwlObject>
        
        <!-- Product version with a text property -->
        <ProductAsIndividual uid="id020">
            <Versions>
                <ProductVersion uid="id021" xsi:type="plcs:ProductAsRealized">
                    <ViewDefinitions>
                        <ProductViewDefinition uid="id022" xsi:type="plcs:ProductAsIndividualView">
                            <InitialContext uidRef="idViewDefnContext"/>
                            <PropertyValueAssignment uid="id023">
                                <!-- The property text -->
                                <AssignedPropertyValues>
                                    <PropertyValue xsi:type="plcs:StringValue" uid="id016">
                                        <Definition uidRef="id017"/>
                                        <ValueComponent>
                                            <LocalizedString>Green</LocalizedString>
                                        </ValueComponent>
                                    </PropertyValue>
                                </AssignedPropertyValues>
                            </PropertyValueAssignment>
                        </ProductViewDefinition>
                    </ViewDefinitions>
                </ProductVersion>
            </Versions>
        </ProductAsIndividual>
    </DataContainer>
</cmn:Uos>