Template:— representing_resource_item_relationship (rep_res_item_rel)
Capability:representing_resource
Date: 2008/02/21 16:29:46
Revision: 1.8
Template: representing_resource_item_relationship

XML references to the Template

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

representing_resource_item_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_resource_item_relationship" capability="representing_resource">
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="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="representing_resource_item_relationship">
  <param_in name="class_name" value=""/>
  <param_in name="ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="relating" value=""/>
  <param_in name="related" value=""/>
</template_example>

representing_resource_item_relationship
/representing_resource_item_relationship(class_name='', ecl_id='urn:plcs:rdl:std', relating='', related='')/

Path

Resource_item_relationship

-- Mark the Resource_item_relationship entity as
-- referable when this template is used by binding it to the reference
-- parameter res_item_rel
%^res_item_rel = Resource_item_relationship%
Resource_item_relationship.name = '/IGNORE'
Resource_item_relationship.description = '/IGNORE'
Resource_item_relationship.relating -> @relating
Resource_item_relationship.related -> @related

-- Provide the role of the relationship by classifying the Resource_item_relationship
/assigning_reference_data(
    items=^res_item_rel,
    class_name=@class_name,
    ecl_id=@ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Resource_item_relationship.name '/IGNORE'
Resource_item_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="representing_resource_item_relationship">
   <instantiate
      entity="Resource_item_relationship"
      context="">
      
   </instantiate>
   <comment>
      Mark the Resource_item_relationship entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter res_item_rel
   </comment>
   <bind
      parameter="res_item_rel">
      <express_entity
         entity="Resource_item_relationship"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Resource_item_relationship"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Resource_item_relationship"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Resource_item_relationship"
            attribute="relating"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Resource_item_relationship"
            attribute="related"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Provide the role of the relationship by classifying the Resource_item_relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^res_item_rel">
         
      </param_in>
      <param_in
         name="class_name"
         value="@class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved