<h4>1.1 <span class="Heading">Brief description of the package</span></h4>
<p>The <strong class="pkg">GAP</strong> package <strong class="pkg">OpenMath</strong> provides an <strong class="pkg">OpenMath</strong> phrasebook for <strong class="pkg">GAP</strong>: it allows <strong class="pkg">GAP</strong> users to import and export mathematical objects encoded in <strong class="pkg">OpenMath</strong> for the purpose of exchanging them with other <strong class="pkg">OpenMath</strong>-enabled applications.</p>
<p>This manual describes:</p>
<ul>
<li><p>how to view <strong class="pkg">OpenMath</strong> representation of an object;</p>
</li>
<li><p>how to read <strong class="pkg">OpenMath</strong> object from stream or write it to stream for the purposes of exchange with another <strong class="pkg">OpenMath</strong>-enabled application;</p>
</li>
<li><p>how to find which objects can be converted to/from <strong class="pkg">OpenMath</strong> using this package;</p>
</li>
<li><p>how to extend the package to support private <strong class="pkg">OpenMath</strong> content dictionaries.</p>
</li>
</ul>
<p>For the detailed information about <strong class="pkg">OpenMath</strong> standard and content dictionaries see the <strong class="pkg">OpenMath</strong> homepage <span class="URL"><a href="https://www.openmath.org">https://www.openmath.org</a></span>.</p>
<p>For practical purposes, the <strong class="pkg">OpenMath</strong> package will be most efficient if used in conjunction with the <strong class="pkg">GAP</strong> package <strong class="pkg">SCSCP</strong> (<a href="chapBib_mj.html#biBSCSCPpkg">[KL]</a>) which implements the Symbolic Computation Software Composability protocol (<a href="chapBib_mj.html#biBSCSCPspec">[FHK+c]</a>). This protocol specifies an <strong class="pkg">OpenMath</strong>-based remote procedure call framework, in which all messages (procedure calls and returns of results of successful computation or error messages) are encoded in <strong class="pkg">OpenMath</strong> using content dictionaries <strong class="pkg">scscp1</strong> and <strong class="pkg">scscp2</strong> (<a href="chapBib_mj.html#biBscscp1cd">[FHK+a]</a>, <a href="chapBib_mj.html#biBscscp2cd">[FHK+b]</a>). Using the <strong class="pkg">SCSCP</strong> package, <strong class="pkg">GAP</strong> can communicate locally or remotely with any other <strong class="pkg">OpenMath</strong>-enabled <strong class="pkg">SCSCP</strong>-compliant application which may be not only another computer algebra system but also another instance of the <strong class="pkg">GAP</strong> system or even, for example, an external C/C++ or Java application. Such communication will go into a seamless manner with the <strong class="pkg">GAP</strong>/<strong class="pkg">OpenMath</strong> conversion going in the background.</p>
<h4>1.2 <span class="Heading">Installation of the package</span></h4>
<p>To use the <strong class="pkg">OpenMath</strong> package it is required to install the <strong class="pkg">GAPDoc</strong> package <a href="chapBib_mj.html#biBGAPDoc">[LN]</a> to use the help system and parse <strong class="pkg">OpenMath</strong> objects in the XML format.</p>
<p>To install the <strong class="pkg">OpenMath</strong> package, unpack the archive and place the <code class="file">openmath</code> directory in the <code class="file">pkg</code> subdirectory of your <strong class="pkg">GAP</strong>4.4 installation. When you don't have write access to the directory of your main GAP installation, you can also install the package outside the GAP main directory by unpacking it inside a directory MYGAPDIR/pkg. Then to be able to load OpenMath you need to call GAP with the -l ";MYGAPDIR" option.
<p>When the <strong class="pkg">OpenMath</strong> package is installed, it may be loaded as shown below (possibly loading required packages at the same time):</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.