Search Mailing List Archives
[protege-discussion] global Slots with class-specific values?
Jonathan Carter
jonathan.carter at e-asolutions.com
Tue Nov 18 11:31:09 PST 2008
You can override the slot constraints at the class level (as opposed
to top-level). I've not used this with Symbols, so I'm not quite sure
how that works - but is worth a look. You define the 'brand' slot to
be of type Symbol, then at each class (in the class browser) you
double click on the slot and choose view at class (not top-level) when
the dialog pops up. You can then (hopefully) set the allowed symbol
values for the slot at this class.
This is the way I've used Instance slots and overridden the allowed
classes for the Instance when the slot is used in different classes.
Hope this helps
Jonathan
__________________________________________
Jonathan Carter - Head of Technical Architecture
Enterprise Architecture Solutions Ltd
__________________________________________
Assess your EA maturity at:
www.enterprise-architecture.com/EAvaluator
__________________________________________
On 18 Nov 2008, at 18:29, Nick Berry wrote:
> Hi, I'm using Slots for the "brand" attribute of my ontology. The
> slot is global and applies to most classes (e.g., "Skis" as well as
> "Jackets"), but I need it to have a different list of values
> ("symbols") at every class. But the rest of the Slot properties
> (definition, constraints) should be global. How have others solved
> this problem? I don't want to have to create a "brand" Slot for
> every single class, like brand_Skis, brand_Snowboards,
> brand_Jackets, etc.
>
> Cheers,
> Nick
> _______________________________________________
> 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/20081118/d7aef8f3/attachment.html>
More information about the protege-discussion
mailing list