Search Mailing List Archives
[protege-owl] Problems with repository
tredmond at stanford.edu
Thu Aug 5 06:54:56 PDT 2010
I am glad you found a solution that works for your plugin. Your
solution is reasonable - it is not inelegant in any way. I am not sure
about the previous version of the code and why it didn't work - it looks
On 08/05/2010 03:25 AM, Rita Marnau wrote:
> Found a solution that works:
> When I create my plugin-ontology from file (via InputStream), I add a
> repository before:
> Collection errors = new ArrayList();
> OwlProjectFromStreamCreator creator = new OwlProjectFromStreamCreator();
> //set InputStream from ontology .owl file
> //create owlModel
> //get created JenaOWLModel
> this.pluginOntology = creator.getOwlModel();
> Don't know if that's the elegant way, but it works.
>> Message: 2
>> Date: Wed, 04 Aug 2010 16:52:05 +0200
>> From: Rita Marnau<rma at informatik.uni-kiel.de>
>> To:protege-owl at mailman.stanford.edu
>> Subject: [protege-owl] Problems with repository
>> Message-ID:<4C597E95.4040705 at informatik.uni-kiel.de>
>> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>> I create a new Ontology for a protege plugin and would like to add a
>> global repository entry for this ontology.
>> Situation: I create a plugin-ontology when the plugin starts the first
>> time. plugin-ontology.repository is created with all needed import paths.
>> I add a global repository entry:
>> LocalFolderRepository localRepository = new LocalFolderRepository(
>> repositoryFile, true)
>> But every time I load my protege plugin, protege can not find the
>> repository and asks for it. Although the .repository file exists with
>> every entry needed (in the same directory of the project and the
>> plugin-ontology file).
>> The repository entry is not shown in the global repository manager
>> either. What can I do? The task is that protege finds the repository
>> itself on loading the plugin without asking the user each time.
>> I am using Protege 3.4.4 on Windows. Thanks for help.
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> protege-owl mailing list
>> protege-owl at lists.stanford.edu
>> End of protege-owl Digest, Vol 49, Issue 6
> protege-owl mailing list
> protege-owl 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-owl