[om] OM class

Mike Dewar miked at nag.co.uk
Mon Apr 19 16:01:40 CEST 2004


What you are asking for isn't really practical since it requires
knowledge of the syntax of your string, and that probably depends to the
application area that you are working in.  For instance your example
uses "*" but I have no way of knowing for sure that you mean
multiplication, and then whether this multiplication is commutative or
not.  Commutative and non-commutative multiplication are different
symbols in OpenMath.

You can find a class library for creating and manipulating OpenMath
objects by following the links from www.openmath.org/software to "the
RIACA OpenMath Library".  Alternativey, if your string uses the syntax
of a mathematical package such as GAP, Maple or Mathematica, you might
want to look at the phrasebooks for those systems.  I believe that those
from RIACA (linked from the above page) are written in Java.

Regards, Mike.

On Mon, Apr 19, 2004 at 10:03:12AM +0200, Cédric Vidrequin wrote:
> Hello,
> I'm looking for a class (or a set of classes) that allows me to generate 
> an XML file (or XML tree object) from an input string.
> 
> For example : I have the string y = a*x+b
> I'm looking for something like that : 
> String str = "y=a*x+b";
> // in the next line, types are imaginated to explain better what I'm 
> looking for
> OpenMathObject omo = nex OpenMathObjetc(str);
> omo.writeXML(new outputStream("myFile.xml"));
> 
> Thanks for helping.
> 
> Cédric VIDREQUIN
> INRA Avignon (France)
> --
> om at openmath.org  -  general discussion on OpenMath
> Post public announcements to om-announce at openmath.org
> Automatic list maintenance software at majordomo at openmath.org
> Mail om-owner at openmath.org for assistance with any problems
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
--
om at openmath.org  -  general discussion on OpenMath
Post public announcements to om-announce at openmath.org
Automatic list maintenance software at majordomo at openmath.org
Mail om-owner at openmath.org for assistance with any problems



More information about the Om mailing list