Template:— property_value_relationship (prp_rel) Date: 2008/01/22 08:39:36
Revision: 1.19
Template: property_value_relationship

XML references to the Template

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

property_value_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="property_value_relationship" capability="representing_evolution_of_property_values">
  <param name="rel_type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="rel_type_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="relating">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="property_value_relationship">
  <param_in name="rel_type" value=""/>
  <param_in name="rel_type_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="relating" value=""/>
  <param_in name="related" value=""/>
</template_example>

property_value_relationship
/property_value_relationship(rel_type='', rel_type_ecl_id='urn:plcs:rdl:std', relating='', related='')/

Path

-- Instantiate a Representation_relationship
Representation_relationship

-- Set the Representation_relationship attributes to be ignored
Representation_relationship.relation_type = '/IGNORE'
Representation_relationship.description = '/IGNORE'
%^rep_rel = Representation_relationship%

-- Assign reference data for relation type
/assigning_reference_data(
    items=^rep_rel,
    class_name=@rel_type,
    ecl_id=@rel_type_ecl_id)/

-- Assign the relation to the preceding representation
-- e.g. Earlier value
Representation_relationship.rep_1 -> @relating

-- Assign the relation to the succeeding representation
-- e.g. Later value
Representation_relationship.rep_2 -> @related
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Representation_relationship.relation_type '/IGNORE'
Representation_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="property_value_relationship">
   <comment>
      Instantiate a Representation_relationship
   </comment>
   <instantiate
      entity="Representation_relationship"
      context="">
      
   </instantiate>
   <comment>
      Set the Representation_relationship attributes to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Representation_relationship"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Representation_relationship"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <bind
      parameter="rep_rel">
      <express_entity
         entity="Representation_relationship"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign reference data for relation type
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^rep_rel">
         
      </param_in>
      <param_in
         name="class_name"
         value="@rel_type">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@rel_type_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign the relation to the preceding representation
   </comment>
   <comment>
      e.g. Earlier value
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Representation_relationship"
            attribute="rep_1"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign the relation to the succeeding representation
   </comment>
   <comment>
      e.g. Later value
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Representation_relationship"
            attribute="rep_2"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved