Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] Including a project programmatically

Philip Ogren philip at ogren.info
Wed Feb 14 16:19:37 PST 2007


I think I found the code that I need:

            
ProjectManager.getProjectManager().changeIncludedProjectURIsRequest(myCollectionOfURIs);

Everything seems to work fine now.  Please let me know if there are 
other considerations I should be making.  Thanks.



Philip Ogren wrote:
> I am trying to include a project programmatically.  The following code 
> seems to work:
>
>            List errors = new ArrayList();
>            
> kb.getProject().includeProject(localKnowtatorPPRJ.getPath(), errors);
>
> I can verify programmatically that the classes are loaded.  However, I 
> do not see them in the Classes tab.  Worse, is that all the classes in 
> the including project go missing.  That is the appear in the Classes 
> tab as <<missing frame name for FrameID(###)>>.  Saving, closing, and 
> reopening resolves the former symptom (I can see the included classes) 
> but not the latter (the classes in the including project are still 
> missing.)
>
> Are there additional things I need to do when including a project?
>
> Thanks,
> Philip
>
>
>




More information about the protege-discussion mailing list