Menu

#9 Error on parsing completely stops Drools rules generation

open
nobody
None
5
2010-03-15
2010-03-15
Anonymous
No

In Project.translateN32Drools(), no exception handling and recovery is done.
So the method completely exits on error.
It is probably a brutal solution.
A better alternative is to try to parse the other N3Sources, and just highlight the fact that
a given set of N3Sources have failed.

It is probably the correct behaviour when dealing with N3Sources for a project.
But how to handle the N3 parsing problems when loading the .n3p in the ApplicationKB?

May be we should try to load as many N3Sources as possible. And then rethrow one Exception
containing all the N3Sources that have failed.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.