Search Mailing List Archives
[protege-discussion] Calculations in Protégé
twisterstormm at hotmail.com
Mon Mar 12 20:03:11 PDT 2007
Samson Tu <swt <at> stanford.edu> writes:
> To add sqrt function to PAL, you need to write Java code to define and
> implement the function as an extension of PAL's SingleArityFunction.
> Take a look at edu.stanford.smi.protegex.pal.functions.RoundNumber.java
> in the PAL source code. You can copy and modify this code to implement
> sqrt() for PAL. Remember to list the newly added function in the
> manifest file.
> Robert Dave wrote:
> > Hello,
> > I would like to make some calculations in Protégé. I am using the module PAL
> > Constraints and only the operators +, -, * and / are available. I would like
> > to use for example the function sqrt().
> > How can I bring the function sqrt() available in the PAL Constraints module?
> > Thanks in advance.
> > Robert
First, thanks for these information.
Then, I found the PAL source code and I wrote a definition of the function sqrt.
Now, I have a file sqrt.java and I found the manifest file. However I don't know
how to get a file which could be used by Protégé.
Thanks a lot for your help.
More information about the protege-discussion