Search Mailing List Archives
[protege-discussion] SlotWidget
Jonathan Carter
jonathan.carter at e-asolutions.com
Fri Aug 1 02:21:53 PDT 2008
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 warnings
> WARNING: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20080801/05ed2c09/attachment.html>
More information about the protege-discussion
mailing list