Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleExample of SWIM-INFO-014
linenumberstrue
<xs:annotation> 
 <xs:documentation>  
  <semanticCorrespondence>  
   <noSemanticCorrespondence rationale="incomplete mapping"/>  
  </semanticCorrespondence> 
 </xs:documentation>
</xs:annotation>

This example shows how to embed a mapping into an XML schema document using the annotation element. It builds on the other examples and includes the <xs:appinfo> element that specifies information to be used by the application. This is an optional element and can be used when the intention is to use an application to further process the semantic correspondences.

Code Block
languagexml
titleExample of SWIM-INFO-014
linenumberstrue
<xs:annotation> 
 <xs:appinfo>Semantic Correspondence</xs:appinfo>
 <xs:documentation>  
  <semanticCorrespondence>   
   <mapping>    
    <trace type="informationConceptTrace">-AIRM unique identifier-</trace>
    ...
    <trace type="narrowingTrace">-AIRM unique identifier-</trace>   
   </mapping>  
  </semanticCorrespondence> 
 </xs:documentation>
</xs:annotation>