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-owl] Importing data from a database into protege

Zeina Chedrawy chedrawy at
Thu Jan 3 19:34:04 PST 2008

Thank you for your reply.

I have created the bridge table in mysql, it has primary key the pair of
primary keys in the 2 tables I need to import. I also set these keys as
foreign keys referring to primary keys of the 2 tables. I inserted data into
the bridge table using a join query on the 2 tables, correct? If so, how do
I proceed in the import process using DataMaster so that it recognizes the
bridge table and models the relationship correctly?

Thank you.


Best Regards -- Zeina Chedrawy


From: protege-owl-bounces at
[mailto:protege-owl-bounces at] On Behalf Of Csongor
Sent: Thursday, January 03, 2008 7:11 PM
To: User support for the Protege-OWL editor
Subject: Re: [protege-owl] Importing data from a database into protege


Hi Zeina,

In order to to relate one individual to multiple individuals through the
same property, you need to model the relationship in your database as a
many-to-many relationship.
You can do this as described in [1] creating an extra table with 2 columns
both part of its primary key, and in the same time both foreign keys in the
referred resp. referring tables. If a table fulfills these requirements
DataMaster automatically recognize it as "Bridge Table" and will use it to
create multiple relations between individuals.

Please let me know if you have problems with the creation of bridge tables.



Zeina Chedrawy wrote: 



I am trying to import data from a mysql database into protégé using
DataMaster plugin. The property P has class A as domain and class B as
range; P is non functional (an instance of class A is allowed to have
multiple instances of class B under property P). However when I import data
from the database into the ontology, I am not able to map every instance of
class A to a list of instances of class B, rather the import results in an
instance of class A for every instance of class B. 


For example, let A1 be an instance of class A and P should map A1 to B1,B2,
and B3 (i.e. A1x[B1,B2,B3]). What we are getting through the import, 3
instances A1_1,A1_2,A1_3 where each is mapped to B1, B2, and B3 respectively
(i.e. A1xB1,A1xB2,A1xB3) . 


Any hints how can I get A1x[B1,B2,B3]  ?? Thank you.


Best Regards -- Zeina Chedrawy




protege-owl mailing list
protege-owl at
Instructions for unsubscribing: 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-owl mailing list