Search Mailing List Archives
[protege-discussion] Moving or Copying subtree of classes from one ontology to another
cm1481 at txstate.edu
Thu Apr 29 12:21:48 PDT 2010
Well, heck, I didn't know about the Prompt Tab (or any of the plugin tabs). I played around with it briefly and it may serve my purpose on the next go-round (if there is one). I noticed at least one other plugin hiding away that may save me some programming work next week. Thanks for pointing me in that direction.
Date: Thu, 29 Apr 2010 17:02:28 +0100
From: Jonathan Carter <jonathan.carter at e-asolutions.com>
To: User support for Core Protege and the Protege-Frames editor
<protege-discussion at lists.stanford.edu>
Subject: Re: [protege-discussion] Moving or Copying subtree of classes
from one ontology to another
Message-ID: <C294DCC5-6B2E-416B-98AD-63C01A7CE039 at e-asolutions.com>
Content-Type: text/plain; charset="us-ascii"; Format="flowed";
I spent a long time looking at this problem - although I'll point out
up-front that I've been working with Protege Frames. If the ontologies
match structurally, you should take a look at Prompt Tab starting with
the "Diff" view. Having done the diff, you can then select instances
to bring from one ontology to the other. It's all graphical and so on
but I felt it was a bit in-practical for some of the scenarios I was
looking at where I needed to import thousands of instances from one
ontology into my target ontology.
To get this working, I've developed an integration tab that enables me
to import source information in any structure into my ontology - and
this helps in mapping from one 'meta-model' to another. There's some
XSLT and Python to do to make it all work but having sorted that out,
the tab does the move/copy of instances from one ontology to the
other. As it's all script-based (driving the Protege API) this could
be easily extended without changing the Tab to apply the same approach
to classes as well as instances and to handle OWL ontologies.
If this sounds interesting, I'd be happy to discuss it further.
Enterprise Architecture Solutions Ltd
Proud sponsors of The Essential Project.
The free open-source Enterprise Architecture Management Platform
On 29 Apr 2010, at 16:41, McArthur, Christian wrote:
> Howdy All!
> The research group I am a member of is currently working with two
> ontologies. We are currently using Protege 3.4 to modify the
> ontologies (the professor leading the group likes the form based
> approach to creating instances). Recently we have had situations
> where we want to have a subtree of classes that exists in one
> ontology and use it in the other ontology. I have not found a way
> to accomplish this with Protege 3.4, so I've been modifying the XML/
> OWL files by hand with a text editor (which can be annoying for a
> large group of classes). Am I overlooking an easier way of moving/
> copying classes from one ontology to another with Protege?
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
More information about the protege-discussion