[om] OM class

Cédric Vidrequin Cedric.Vidrequin at avignon.inra.fr
Tue Apr 20 09:04:46 CEST 2004


Hello Mike,

In fact, I'd like to transfor a string into an OpenMath (or MathMl) 
document.
I try to find a java class that do this, in the way to not develop it.
I have yet looked at the classes you talked about before, but I didn't 
find what I was looking for.
The XML file generated will be used in a personal application an not in 
Maple or Mathematica ...
That's why I think existing phrasebook will not help me.
Moreover, there are few coments and it's difficult for me to understand 
what each class is supposed to do.

Do you think you can tell me more about this problem ?

Regards,

Cédric VIDREQUIN
INRA Avignon (France)



Mike Dewar wrote:

>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
>
>
>  
>

--
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