Ticket #84 (closed task: fixed)
Conversion between IMPORT and CDBASE
| Reported by: | cmueller | Owned by: | dmisev |
|---|---|---|---|
| Priority: | major | Milestone: | Release v0.1.2 |
| Component: | System Integration | Version: | v0.1.2 |
| Keywords: | Cc: | nmueller, kohlhase, clange, frabe | |
| Blocked By: | Blocking: | ||
| Due to close: | Include in GanttChart: | no | |
| Dependencies: | Due to assign: |
Description
From our meeting on imports and cdbase, I have identified to important features needed by the panta rhei system to read in and output OMDoc documents:
For the IMPORT
JOMDoc can be called to produce documents with cdbase in all OMS elements. It takes the import-URL and extracts the respective cdbase and cd values. panta rhei thus needs to call JOMDoc for each imported document, which will slow down the import tremendously. However, it prevents us from re-implementing JOMDoc functionality in panta rhei
For the OUTPUT (used for the conversion)
panta rhei produces the following OMDoc. It does not construct IMPORT elements:
<omdoc> <theory> <OMOBJ> <OMS cdbase="http://openmath.org" cd="arith1" name="minus"/> <OMV name="x"/> <OMV name="y"/> </OMOBJ> </theory> </omdoc>
However, the cdbase and cd are interpret as implicit imports. When reading in the document from panta rhei, JOMDoc constructs the value of the IMPORT for attribute from the cdbase and cd attributes.
