Search Mailing List Archives
[protege-discussion] Protege frames: need to store additional info per class
Thomas Russ
tar at ISI.EDU
Mon Mar 5 17:31:11 PST 2007
On Mar 5, 2007, at 1:36 PM, Jens Selbach wrote:
> Hi,
> what is the best way to store additional information per class which
> does not
> show up in instances, but is available through protege API?
Use own slots on the class.
Only template slots show up in the instances. Own slots are only on
the classes.
But to make the own slots show up in the forms, you will need to
introduce your own metaclass, and then make all of your classes (or
at least all of the relevant ones) use your new metaclass.
You create the metaclass by making a subclass of :standard-class and
then you use the appropriate menu item to change the metaclass of
your existing classes (and their subclasses -- which is a nice,
convenient menu option).
More information about the protege-discussion
mailing list