Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
hekate:hekate_markup_language [2009/05/07 21:18] gjn dtd versioning |
hekate:hekate_markup_language [2019/06/27 15:49] (current) |
====== 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. |
It is based on [[HML1]]. | |
| |
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 |
</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===== |
===== 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.)// | //(Note: the above files are versioned in the HaDEs CVS repo in the [[HatHoR]] module.)// |
* 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. |
| |
<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> |
</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> |
| |
<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> |
| |