Discussion:
Moving or Copying subtree of classes from one ontology to another
McArthur, Christian
2010-04-29 15:41:02 UTC
Permalink
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?

Thanks
--Christian
_______________________________________________
protege-discussion mailing list
protege-***@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Jonathan Carter
2010-04-29 16:02:28 UTC
Permalink
Hi Christian,

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.

Regards

Jonathan
_______________________________________

Jonathan Carter
Enterprise Architecture Solutions Ltd
_______________________________________


Proud sponsors of The Essential Project.
The free open-source Enterprise Architecture Management Platform
www.enterprise-architecture.org
_______________________________________
Post by McArthur, Christian
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?
Thanks
--Christian
_______________________________________________
protege-discussion mailing list
https://mailman.stanford.edu/mailman/listinfo/protege-discussion
Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Thomas Russ
2010-04-29 16:09:22 UTC
Permalink
Should be on the protege-owl mailing list.
Post by McArthur, Christian
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?
I will assume that you have a reason for wanting to move them and not
just import one ontology into another.

I would look at the PROMPT tab.

[Aside: This fails on the Mac using the Protege default look-and-
feel. It works with the Mac look-and-feel, though.]


_______________________________________________
protege-discussion mailing list
protege-***@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Samson Tu
2010-04-29 18:39:38 UTC
Permalink
Hi,

Another alternative is to use Protege 4.0's refactor/copy... facility.

Samson
Post by Thomas Russ
Should be on the protege-owl mailing list.
Post by McArthur, Christian
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?
I will assume that you have a reason for wanting to move them and not
just import one ontology into another.
I would look at the PROMPT tab.
[Aside: This fails on the Mac using the Protege default look-and-feel.
It works with the Mac look-and-feel, though.]
_______________________________________________
protege-discussion mailing list
https://mailman.stanford.edu/mailman/listinfo/protege-discussion
http://protege.stanford.edu/doc/faq.html#01a.03
_______________________________________________
protege-discussion mailing list
protege-***@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
McArthur, Christian
2010-04-29 19:21:48 UTC
Permalink
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.

--Christian
________________________________________
Date: Thu, 29 Apr 2010 17:02:28 +0100
From: Jonathan Carter <***@e-asolutions.com>
To: User support for Core Protege and the Protege-Frames editor
<protege-***@lists.stanford.edu>
Subject: Re: [protege-discussion] Moving or Copying subtree of classes
from one ontology to another
Message-ID: <C294DCC5-6B2E-416B-98AD-***@e-asolutions.com>
Content-Type: text/plain; charset="us-ascii"; Format="flowed";
DelSp="yes"

Hi Christian,

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.

Regards

Jonathan
_______________________________________

Jonathan Carter
Enterprise Architecture Solutions Ltd
_______________________________________


Proud sponsors of The Essential Project.
The free open-source Enterprise Architecture Management Platform
www.enterprise-architecture.org
_______________________________________
Post by McArthur, Christian
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?
Thanks
--Christian
_______________________________________________
protege-discussion mailing list
https://mailman.stanford.edu/mailman/listinfo/protege-discussion
_______________________________________________
protege-discussion mailing list
protege-***@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Loading...