Search Mailing List Archives
[protege-discussion] Protege API loadProjectFromFile() question...
clroush at usgs.gov
Wed Jun 4 14:55:09 PDT 2008
I am working on a Java program and I need to open a protege project.
For example, my code is like this:
String uri =
ArrayList errors = new ArrayList();
Project prj = Project.loadProjectFromFile(uri, errors);
PROBLEM: This is only an example, my actual program uses a file chooser to
select the file
and the URI is passed to the loadProjectFromFile() function. However, when I
do this the file will not load because it seems that loadProjectFromFile()
concatenates the current build path to the front of the URI
passed in. This is what the console says after trying to load the file:
SEVERE: Unable to load project from:
Is there any way to fix this?
Any input would be appreciated.
View this message in context: http://www.nabble.com/Protege-API-loadProjectFromFile%28%29-question...-tp17656559p17656559.html
Sent from the Protege - General mailing list archive at Nabble.com.
More information about the protege-discussion