Basti Best | 1 Mar 14:17 2003
Picon

Re: Adding custom buttons to the Tool-Bar


Thanks for your answer!

Now the problem is that when I do the following lines in the
initialize()-method of my tab-widget:

ImportFromDatabaseAction ifd = new ImportFromDatabaseAction();
this.addMainWindowToolBarButton(ifd);

I get the following warning when including my Tab in Protege:

Warning:
ModelEditorTab.addMainWindowToolBarButton(model_editor.util.ImportFromDataba
seAction <at> fee4f) Cannot find window tool bar - AbstractWidget(null,null,null)
66B06B

Is something wrong with my Tab-widget?

----- Original Message -----
From: "Ray Fergerson" <fergerson <at> SMI.Stanford.EDU>
To: <protege-discussion <at> SMI.Stanford.EDU>
Sent: Friday, February 28, 2003 11:26 PM
Subject: [protege-discussion] Re: Adding custom buttons to the Tool-Bar

|
| The two methods you want are:
|
|    JButton AbstractWidget.addMainWindowToolBarButton(Action action)
|    void AbstractWidget.removeMainWindowToolBarButton(JButton button)
|
(Continue reading)

zxz | 2 Mar 13:43 2003
Picon

Re: out of memory!


Dear Ray,
   Thanks,I have increased the maximum memory and it is ok now.
   It really will be a very large project when we finished(it will be near to
several million instances).We hope the ontology be full used in the other
applications.The future we will have the following requirements.
   1. Concept supporting the related information retrieval
   2. Browsing the ontology on the Web
   3. Efficiently access the knowledge base provided by Protege on the web.
   Any suggestions or approaches to address the issues?
  Thanks!

Zhou

ÔÚÄúµÄÀ´ÐÅÖÐÔø¾­Ìáµ½:
>From:Ray Fergerson <fergerson <at> SMI.Stanford.EDU>
>Reply-To: protege-discussion <at> SMI.Stanford.EDU
>To: protege-discussion <at> SMI.Stanford.EDU
>Subject: [protege-discussion] Re: out of memory!
>
>
>Increase the maximum memory allocated to protege.  This is done by editing 
>the protege.lax file and changing the "heap.size.max" parameter.  I 
>wouldn't make this larger than the amount of physical memory that your 
>machine has though.
>
>If you want to work with bigger projects I would suggest looking into using 
>the database backend.
>
>Ray
(Continue reading)

Tan Puay Hak | 3 Mar 03:05 2003
Picon

JDBC database to proper database format?


Hi all,
    My team managed to complete the design of Multi Agent Logistic Coordination Ontology using Protege 2000.
My team has also managed to convert the Ontology to JADE(Java Agent Development) plafform using the Bean
Generator plugin.
    From the Protege user guide, we found that we can save the whole project and instances into a JDBC database
format. My team managed to setup the SQL Database, and successfully save the project and instances into
the SQL database. But the problem is that all the Ontology framework and instances were stored in a single
table. My team knew that Protege can only save the JDBC database in a single table but is that any other ways
that we can change the Protege so that we can save the JDBC database as a proper database format?
    By proper database format, we mean thta data will be categorized into its own respective table and column.
    But, even if the JDBC database can be properly setup, is there a foolproof syntax to access the data? 

Regards 
Puay Hak
Tan Puay Hak | 3 Mar 04:42 2003
Picon

Please help on storing ontology (designed by Protege) and instances to dababase table


Dear Friends,

We have designed an ontology using Protege 2000. Now we need to store the ontology instances in a database
and let the agent to use the instance information.

We meet difficulty in the transforming of Protege ontology to SQL Server 2000 database. From the Protege
user guide, we got the information that we can save the ontology framework and the instances into a JDBC
database.  We successfully save the ontology and instances into the SQL database. The problem is that all
the ontology project and instances were stored in a single table. The table includes a lot of number
information and seems quite difficult for a Java program to access it. 

Would you please help on how to store the ontology information to a database properly, and how to use the
related databased table by the agent?  If there is any other way to store and use ontology instances? 

Thank you and best regards
Puay Hak

zxz | 3 Mar 05:26 2003
Picon

Re: JDBC database to proper database format?


yes,it is really a problem and important thing, we need it too!

Zhou

ÔÚÄúµÄÀ´ÐÅÖÐÔø¾­Ìáµ½:
>From:"Tan Puay Hak" <phtan <at> simtech.a-star.edu.sg>
>Reply-To: protege-discussion <at> SMI.Stanford.EDU
>To: <protege-discussion <at> SMI.Stanford.EDU>
>Subject: [protege-discussion] JDBC database to proper database format?
>
>
>Hi all,
>    My team managed to complete the design of Multi Agent Logistic Coordination
Ontology using Protege 2000. My team has also managed to convert the Ontology to
JADE(Java Agent Development) plafform using the Bean Generator plugin.
>    From the Protege user guide, we found that we can save the whole project and
instances into a JDBC database format. My team managed to setup the SQL Database,
and successfully save the project and instances into the SQL database. But the
problem is that all the Ontology framework and instances were stored in a single
table. My team knew that Protege can only save the JDBC database in a single table
but is that any other ways that we can change the Protege so that we can save the
JDBC database as a proper database format?
>    By proper database format, we mean thta data will be categorized into its own
respective table and column.
>    But, even if the JDBC database can be properly setup, is there a foolproof
syntax to access the data? 
> 
>Regards 
>Puay Hak
(Continue reading)

Samson Tu | 3 Mar 07:16 2003
Picon

Re: JDBC database to proper database format?


The design rationale for Protege's database backend is described in

http://protege.stanford.edu/doc/design/jdbc_backend.html

I don't think there is a easy way to "reconfigure" Protege to use a
different database schema. Those who need more customized database
schema, I think, have two choices:

1. write an alternative database backend to map Protege classes and
instances into their own schema (two-way  lossless read/write)
2. export Protege classes and instances in another format and stuff that
into a database (one-way possibly lossy transfer).

Option one is more difficult. A while back, I wrote a "jsave" utility
that generate Java classes from Protege classes. Recently Holger created
a facility for exporting Protege classes into UML. Somebody may use
something like that as an intermediate step in exporting Protege classes
and instances into another database. 

Samson

zxz wrote:
> 
> yes,it is really a problem and important thing, we need it too!
> 
> Zhou
> 
> ÔÚÄúµÄÀ´ÐÅÖÐÔø¾­Ìáµ½:
> >From:"Tan Puay Hak" <phtan <at> simtech.a-star.edu.sg>
(Continue reading)

Dragan Gasevic | 3 Mar 18:03 2003
Picon

Re: JDBC database to proper database format?


I think you could use this way to solve your problem: export Protege project to XMI, and than you can generate
database from,  for example, Rational Rose. The RR can generate databases for different DBMS. Only thing
you have to do is to prepare your ontology UML model into UML profile for database modeling - short paper
about it is at www.rational.com. Another way is to make XSL transformation from XMI to target SQL
statements (CREATE TABLE, or ALTER TABLE).
Regards,
Dragan
 Samson Tu <tu <at> SMI.Stanford.EDU> wrote:

The design rationale for Protege's database backend is described in

http://protege.stanford.edu/doc/design/jdbc_backend.html

I don't think there is a easy way to "reconfigure" Protege to use a
different database schema. Those who need more customized database
schema, I think, have two choices:

1. write an alternative database backend to map Protege classes and
instances into their own schema (two-way lossless read/write)
2. export Protege classes and instances in another format and stuff that
into a database (one-way possibly lossy transfer).

Option one is more difficult. A while back, I wrote a "jsave" utility
that generate Java classes from Protege classes. Recently Holger created
a facility for exporting Protege classes into UML. Somebody may use
something like that as an intermediate step in exporting Protege classes
and instances into another database. 

Samson
(Continue reading)

M. Amin Mahdavi | 3 Mar 18:53 2003
Picon
Picon

some sad news


sorry this has nothing to do with protege.  

Roger Needham died on Friday night at home.

Karen Sparck-Jones has put some personal details about him, including a 
memoir outlining his many contributions and a link to an event held on the 
17th Feb to  celebrate his 50 years at the University of Cambridge and 5 years 
at Microsoft  Research

These may be found at

http://www.cl.cam.ac.uk/~ksj/RogerNeedham.html

Ray Fergerson | 3 Mar 19:06 2003
Picon
Picon

Re: Adding custom buttons to the Tool-Bar


Sorry.  I forgot to mention that you can't call these methods in 
initialize() -- it is "too early".  Instead override the "addNotify()" 
method and call the add() method there (after calling 
super.addNotify()).  Call the remove() method in dispose() (after calling 
super.dispose()).  I realize not being able to call add() in initialize is 
really confusing.  I'll look into fixing this for the next build since it 
comes up all the time.

Ray

At 05:17 AM 3/1/2003, you wrote:

>Thanks for your answer!
>
>Now the problem is that when I do the following lines in the
>initialize()-method of my tab-widget:
>
>ImportFromDatabaseAction ifd = new ImportFromDatabaseAction();
>this.addMainWindowToolBarButton(ifd);
>
>I get the following warning when including my Tab in Protege:
>
>Warning:
>ModelEditorTab.addMainWindowToolBarButton(model_editor.util.ImportFromDataba
>seAction <at> fee4f) Cannot find window tool bar - AbstractWidget(null,null,null)
>66B06B
>
>Is something wrong with my Tab-widget?
>
(Continue reading)

Ray Fergerson | 3 Mar 23:23 2003
Picon
Picon

Re: out of memory!


Somehow my response to this message got corrupted by our mail 
server.  Let's hope this one fares better.  Here is my original response:

---
You will undoubtedly want to use the database backend if your project gets 
much bigger.  As for web access, most people have done this by using a 
servlet to access the Protege API.  This procedure is fairly straightforward.

Ray 


Gmane