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-discussion] SlotWidget

florencia liggerini florencialiggerini at hotmail.com
Fri Aug 1 16:49:23 PDT 2008



Hi Jonathan, thanks for your help, but I have a multivalued slot that can have instances and numbers, so I need a SlotWidget  that support any kind of valueType at the same time.
Do you know if this is possible?
From: jonathan.carter at e-asolutions.com
To: protege-discussion at lists.stanford.edu
Date: Fri, 1 Aug 2008 10:21:53 +0100
Subject: Re: [protege-discussion] SlotWidget

Hi,
I think what you're trying to achieve is to have slots that can contain multiple instances of any Cls in your ontology. I think the best thing to do would be to modify your ontology in Protege so that the slots that are to hold these Collections (Instance slot with multiple cardinality) are setup such that they are Instance slots and set the 'allowed classes' to be something at the top of your heterogeneous class hierachy. For example, I have a class that is the base class for all my classes in my ontology. I would then set the slot to such that it allowed Instances of "MyBaseClass". Then to see the collections in your model, it's simply a case of using a Multiple Instance widget in the form and everything will display properly.
I think this is at the root of your problem - that you are trying to display Instances in a slot set up for values. 
Hope this helps - please let me know if this isn't clear
Regards
Jonathan
 __________________________________________
Jonathan Carter - Head of Technical Architecture
Enterprise Architecture Solutions Ltd
__________________________________________

Assess your EA maturity at:
www.enterprise-architecture.com/EAvaluator
__________________________________________
 
On 31 Jul 2008, at 21:57, florencia liggerini wrote:Hello: I am developing a plugin to import an ontology from a object oriented database to a Protégé Frame project.I want to know if  it is any slotWidget to display a multiple value slot with ValueType= ANY. I map every java Class in the database to a Cls in Protégé, every Field to a Slot, etc. The problem come up when I have  a field that is a Collection with heterogeneous objects, I map these kinds of collections to a multiplevalue slot with ValueType=Any. When I run my application I obtain these warningsWARNING: Invalid widget class name: null --DefaultWidgetMapper.isSuitable()WARNING: null -- PluginUtilities.forName()I can see that the slot values are saved ok but they don't appear on the InstanceTab. I have tried to change the SlotWidget for that slot using the formTab of the Protégé UI but there isn't any SlotWidget for that slot available  Thanks,Florencia
Stay in touch when you're away with Windows Live Messenger. IM anytime you're online._______________________________________________
protege-discussion mailing list
protege-discussion at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

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


_________________________________________________________________
Reveal your inner athlete and share it with friends on Windows Live.
http://revealyourinnerathlete.windowslive.com?locale=en-us&ocid=TXT_TAGLM_WLYIA_whichathlete_us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20080801/48b969bd/attachment.html>


More information about the protege-discussion mailing list