[Pellet-Users] Fw: Help:Istances of a class
Ron Alford
ronwalf at umd.edu
Sat Sep 30 16:18:01 EDT 2006
Ron Alford wrote:
>
> You code is complex and convoluted. Among other things, you are
> continually creating new copies of pellet in the middle of a for loop.
The first statement is a little harsh, but it's out of frustration that
it takes so long to find the problem when ~250 lines of non-compiling
code is plopped in front of me.
> You can see this evaluated at
(url way too long)
Try this instead:
http://tinyurl.com/k9c5y
> I have no idea if this is what your code returns, or not, since the code
> you sent wouldn't compile (it was missing some chunks). In the future,
> please send only minimal examples. If you can boil your problem down to
> the fewest possible lines of code, it would greatly enhance our ability
> to respond to you.
To be fair, it is hard to do this. However, it is through writing these
small test cases that you can pinpoint whether the problem is in your
code or in ours. I have not been able to duplicate your problems so
far, but I have coded up a small portion of your program in the form of
a test case (attached).
It's easy enough to compile the test:
$ javac -classpath lib/pellet.jar ChiaraTest.java
And also to run the test:
$ java -cp .:lib/pellet.jar junit.textui.TestRunner ChiaraTest
-Ron
-Ron
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChiaraTest.java
Url: http://lists.mindswap.org/pipermail/pellet-users/attachments/20060930/af9b7cc2/attachment.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.mindswap.org/pipermail/pellet-users/attachments/20060930/af9b7cc2/attachment.bin
More information about the Pellet-Users
mailing list