Search Mailing List Archives
[protege-discussion] Create a new project using the API
jonathan.carter at e-asolutions.com
Fri May 23 12:18:33 PDT 2008
Have a quick look at the source code in the Subversion repository and
see what the UI calls when you create a New Project using the standard
According to the code for the ProjectManager class have a look at the
private createNewProject() method, you should be called
So, create a KB factory, not an empty KB.
Hope this helps
Jonathan Carter - Head of Technical Architecture
Enterprise Architecture Solutions Ltd
Assess your EA maturity at:
On 23 May 2008, at 17:02, John Finnson wrote:
> Hi, I was wondering what was the command to create a brand new project
> from nothing. I have been trying some methods like:
> Project newProject = Project.createNewProject((KnowledgeBaseFactory)
> SystemUtilities.newInstance("newKB"), errors);
> but then it says that it cant find the KB "newKB". I would appreciate
> it if somone gave me a line of code which completly creates a new
> If some how my reasoning is wrong this is the reason why I want to do
> this: I want to create a project with a blank slate and then
> initialize an ontology to it. So that when a person presses a certain
> button in my new Tab I am creating a new project will open up with an
> ontology that I have in a certain file.
> Thanks in advance for any help provided.
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the protege-discussion