Template:— representing_organizational_location (rep_org_locn)
Capability:representing_location
Date: 2005/08/15 08:20:35 :
Revision: 1.11
Template: representing_organizational_location

XML references to the Template

These can be cut and pasted into the XML as required.

representing_organizational_location

Set up a hyperlink to the template definition.
<template_ref name="representing_organizational_location" capability="representing_location"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_organizational_location" capability="representing_location">
  <param name="org_name">
    <param_value>University of Life</param_value>
    <description></description>
  </param>
  <param name="org_name_class">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="org_name_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="loc_val">
    <param_value>e.g. Room 101 in the administration building of the University.</param_value>
    <description></description>
  </param>
  <param name="loc_id_type">
    <param_value>Organizational_location_identification_code</param_value>
    <description></description>
  </param>
  <param name="loc_id_type_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_organizational_location">
  <param_in name="org_name" value="University of Life"/>
  <param_in name="org_name_class" value="urn:plcs:rdl:std"/>
  <param_in name="org_name_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="loc_val" value="e.g. Room 101 in the administration building of the University."/>
  <param_in name="loc_id_type" value="Organizational_location_identification_code"/>
  <param_in name="loc_id_type_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_organizational_location
/representing_organizational_location(org_name='University of Life', org_name_class='urn:plcs:rdl:std', org_name_ecl_id='urn:plcs:rdl:std', loc_val='e.g. Room 101 in the administration building of the University.', loc_id_type='Organizational_location_identification_code', loc_id_type_ecl_id='urn:plcs:rdl:std')/

Path

-- Create Organization
%^organization = Organization%
Organization.name = '/IGNORE'
Organization.id = '/IGNORE'

-- assign an identifier and classify it with input params'.
-- (Note not specifying class to enable id or name allotment)
/assigning_identification_with_no_organization(
    items=Organization,
    id=@org_name,
    id_class_name=@org_name_class,
    id_ecl_id=@org_name_ecl_id)/

-- Create Organizational_location_identification
%^org_loc_id = Organizational_location_identification%
Organizational_location_identification.identification_type = '/IGNORE'
Organizational_location_identification.location_value = '/IGNORE'

-- assign an identifier and classify it with input params'.
-- (Note not specifying class to enable id or name allotment)
/assigning_identification_with_no_organization(
    items=Organizational_location_identification,
    id=@loc_val,
    id_class_name=@loc_id_type,
    id_ecl_id=@loc_id_type_ecl_id)/

-- Organization_based_location_representation
%^org_loc_rep = Organization_based_location_representation%
Organization_based_location_representation.organization_for_location -> Organization

-- Create links to organization location identification
Organization_based_location_representation.location_identifications -> Organizational_location_identification

-- end.
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Organization.name '/IGNORE'
Organization.id '/IGNORE'
Organizational_location_identification.identification_type '/IGNORE'
Organizational_location_identification.location_value '/IGNORE'

XML representation of path

<refpath
   template="representing_organizational_location">
   <comment>
      Create Organization
   </comment>
   <bind
      parameter="organization">
      <express_entity
         entity="Organization"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organization"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organization"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      assign an identifier and classify it with input params'.
   </comment>
   <comment>
      (Note not specifying class to enable id or name allotment)
   </comment>
   <call_template
      name="assigning_identification_with_no_organization"
      business_context="">
      <param_in
         name="items"
         value="Organization">
         
      </param_in>
      <param_in
         name="id"
         value="@org_name">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@org_name_class">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@org_name_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Create Organizational_location_identification
   </comment>
   <bind
      parameter="org_loc_id">
      <express_entity
         entity="Organizational_location_identification"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organizational_location_identification"
            attribute="identification_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organizational_location_identification"
            attribute="location_value"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      assign an identifier and classify it with input params'.
   </comment>
   <comment>
      (Note not specifying class to enable id or name allotment)
   </comment>
   <call_template
      name="assigning_identification_with_no_organization"
      business_context="">
      <param_in
         name="items"
         value="Organizational_location_identification">
         
      </param_in>
      <param_in
         name="id"
         value="@loc_val">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@loc_id_type">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@loc_id_type_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Organization_based_location_representation
   </comment>
   <bind
      parameter="org_loc_rep">
      <express_entity
         entity="Organization_based_location_representation"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_based_location_representation"
            attribute="organization_for_location"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Organization"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Create links to organization location identification
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_based_location_representation"
            attribute="location_identifications"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Organizational_location_identification"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      end.
   </comment>
</refpath>

© OASIS 2010 — All rights reserved