Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hekate:hekate_markup_language [2009/05/04 17:44]
gjn
hekate:hekate_markup_language [2019/06/27 15:49] (current)
Line 2: Line 2:
 ====== Hekate Markup Language ====== ====== Hekate Markup Language ======
  
-The //Hekate Markup Language (HML)// is provided for the XML serialization of the HeKatE ​knowledge ​base  +The //Hekate Markup Language (HML)// is provided for the machine readable ​XML serialization of the HeKatE ​rule base described ​in a human-readable [[HMR]] format. 
-described with the use of the [[hekate:​ALSVFD]] logic + 
 +The rules are formalized ​with the use of the [[hekate:​ALSVFD]] logic 
 and [[hekate:​XTT2]] rules  and [[hekate:​XTT2]] rules 
 prototyped with the [[hekate:​ARDplus]] method. prototyped with the [[hekate:​ARDplus]] method.
  
-There are the following subsets of the Hekate ​Markup Language defined: ​+There are the following subsets of the HeKatE ​Markup Language defined: ​
   * ''​attml''​ -- Attribute Markup Language for describing rule [[hekate:​attributes]]   * ''​attml''​ -- Attribute Markup Language for describing rule [[hekate:​attributes]]
   * ''​ardml''​ -- Attribute Relationship Markup Language for the [[hekate:​ARDplus]] prototype   * ''​ardml''​ -- Attribute Relationship Markup Language for the [[hekate:​ARDplus]] prototype
Line 58: Line 59:
 </​code>​ </​code>​
  
-The current version is referred to as //HML2//.+The current version is referred to as //HML2// 
 +(the first one is [[HML1]], see below).
  
 ===== HeKatE markup history===== ===== HeKatE markup history=====
Line 67: Line 69:
   * 2007 - second version of markup for XTT in early versions of HQEd -> XTTML   * 2007 - second version of markup for XTT in early versions of HQEd -> XTTML
   * 2007 - third version of  markup for XTT in HQEd M5_* -> XTTML2   * 2007 - third version of  markup for XTT in HQEd M5_* -> XTTML2
-  * 2008 - first version markup proposal for HeKatE, ARD+, XTT+ -> HML1: ATTML1, ARDML1, XTTML3 (proposal for XTT+, not supported by design tools)+  * 2008 - first version markup proposal for HeKatE, ARD+, XTT+ -> [[HML1]]: ATTML1, ARDML1, XTTML3 (proposal for XTT+, partially ​supported by design tools)
   * 2009 - second version of HML, ARD+ XTT2 -> HML2: ATTML2, ARDML2, XTTML4 (supported by HQEd M6_* from 05.2009)   * 2009 - second version of HML, ARD+ XTT2 -> HML2: ATTML2, ARDML2, XTTML4 (supported by HQEd M6_* from 05.2009)
  
Line 73: Line 75:
 ===== HML syntax ===== ===== HML syntax =====
  
-HeKatE markup language DTD: {{hml.dtd}} ​(for HML2).+HeKatE markup language DTD:  (for HML2).
  
-For syntax test purposes there is example XML file: {{hml-test.xml}} +For syntax test purposes there is an example XML file:{{:hekate:hml-test-hekate_case_thermostat.xml|}}  
-A minimalistic file is: {{hml-test-min.xml}}+A minimalistic file is: {{:hekate:hml-test-min.xml}} 
 + 
 +//(Note: the above files are versioned in the HaDEs CVS repo in the [[HatHoR]] module.)//
  
 Important elements are indexed with an attribute ''​id''​. Important elements are indexed with an attribute ''​id''​.
Line 87: Line 91:
   * dependencies:​ ''​id="​dep_..."''​   * dependencies:​ ''​id="​dep_..."''​
   * ARD history (TPH): ''​id="​hst_..."''​   * ARD history (TPH): ''​id="​hst_..."''​
 +//All id numbers start with 1//
  
 An additional attribute (''​id''​) is introduced to guarantee that types, attributes, properties and groups can be uniquely referenced. An additional attribute (''​id''​) is introduced to guarantee that types, attributes, properties and groups can be uniquely referenced.
Line 104: Line 109:
  
   <​types>​   <​types>​
-    <type id="tpe_0" name="​Temperature"​ base="​numeric"​ length="​5"​ scale="​0">​+    <type id="tpe_1" name="​Temperature"​ base="​numeric"​ length="​5"​ scale="​0">​
       <​desc>​represents a temperature</​desc>​       <​desc>​represents a temperature</​desc>​
       <​domain>​       <​domain>​
Line 114: Line 119:
       </​domain>​       </​domain>​
     </​type>​     </​type>​
-    <type id="tpe_1" name="​Integer"​ base="​numeric"​ length="​5"​ scale="​0">​+    <type id="tpe_2" name="​Integer"​ base="​numeric"​ length="​5"​ scale="​0">​
       <​desc>​represents an integer number</​desc>​       <​desc>​represents an integer number</​desc>​
       <​domain>​       <​domain>​
Line 123: Line 128:
    
   <​attributes>​   <​attributes>​
-    <attr id="att_0" type="tpe_0" name="​temp"​ abbrev="​t1"​ class="​simple"​ comm="​in">​+    <attr id="att_1" type="tpe_1" name="​temp"​ abbrev="​t1"​ class="​simple"​ comm="​in">​
       <​desc>​input temperature from sensor number 1</​desc>​       <​desc>​input temperature from sensor number 1</​desc>​
     </​attr>​     </​attr>​
-    <attr id="att_1" type="tpe_0" name="​temp-aux"​ abbrev="​t1a"​ class="​general"​ comm="​in">​+    <attr id="att_2" type="tpe_1" name="​temp-aux"​ abbrev="​t1a"​ class="​general"​ comm="​in">​
       <​desc>​input temperature from sensor number 1, aux reading, including historic data</​desc>​       <​desc>​input temperature from sensor number 1, aux reading, including historic data</​desc>​
     </​attr>​     </​attr>​
    
-    <agroup id="grp_0" name="​sensors"​ abbrev="​sns">​+    <agroup id="grp_1" name="​sensors"​ abbrev="​sns">​
       <​desc>​temperatures from sensors</​desc>​       <​desc>​temperatures from sensors</​desc>​
-      <attref ref="​att_0"/>​ 
       <attref ref="​att_1"/>​       <attref ref="​att_1"/>​
 +      <attref ref="​att_2"/>​
     </​agroup>​     </​agroup>​
  
Line 358: Line 363:
 ===== HML implementation and support ===== ===== HML implementation and support =====
 HML is used to serialize the knowledge in the HeKatE project in a machne redable format. HML is used to serialize the knowledge in the HeKatE project in a machne redable format.
-It is used to interchange knowledge between the tools forming the [[hakate:HaDEs]] framework.+It is used to interchange knowledge between the tools forming the [[HaDEs]] framework.
  
 HML syntax has been designed to: HML syntax has been designed to:
hekate/hekate_markup_language.1241451899.txt.gz · Last modified: 2019/06/27 16:00 (external edit)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0