LeHouillier, Frank D. wrote:
Yeah, I noticed later that this is supposed to be a URL and not just a path so
if I put file:/// it works.  I don't think that there is any problem
with the way the Resource Manager is getting the files.
But this doesn't really address the problem that if I have an analysis
engine descriptor that imports a type system then the CDE won't let me
edit the location with the regular tools if the location of the type
system descriptor isn't already on the datapath (if it is imported by
name) or the file location actually exists (if it is imported by
location).  To see this try making a type system descriptor and an
analysis engine in the same directory that references it.  Then delete
the type system descriptor.  Now try to edit the analysis engine
descriptor.  There isn't any way to edit the type system import except
by editing the xml directly
This is "philosophical" problem :-). The CDE is set up to work with an internal representation of the descriptor (and the things that it imports). It doesn't have its own code to do this, it instead relies on the underlying UIMA framework to read, parse, and and generally build a "model" of what the descriptor is doing. If it's a type system that's gone missing, since the available types condition a lot of the functionality of the CDE, it gives up being a "nice" editor, and says you have to get this fixed at least to the point where it can be read, using a plain-old xml editor.

This probably could be improved, if someone wants to "scratch that itch" :-).

-Marshall
 and there isn't any way to change the
datapath except by noticing that there is an eclipse project property
UIMA CDE property page.  This happens whether the original type system
was imported by name or location.  It isn't a major gripe but the CDE is
so nice to use it is disconcerting to be forced to edit the XML
directly.
-----Original Message-----
From: Marshall Schor [mailto:[EMAIL PROTECTED] Sent: Friday, January 25, 2008 10:28 PM
To: [email protected]
Subject: Re: Absolute Paths and the Resource Manager

Hi Frank,

Is the type system <import...> using the location="...." form? Is that what isn't working, when the location is absolute?

-Marshall

LeHouillier, Frank D. wrote:
Is there a reason that the Resource Manager needs to look up resources
on the datapath and classpath, even when the resource is given as an
absolute path?  The reason I ask is that the CDE doesn't work if you
try
to open a AE descriptor that references a type system descriptor, if
the
datapath property hasn't been set.  If the location of the type system
descriptor is given as an absolute path, this is unintuitive and seems
like a bug, particularly since you can't access the nifty "Set
DataPath"
button in the descriptor itself, once the CDE realizes that the
resource
isn't on the classpath or datapath.
Frank LeHouillier






Reply via email to