Search Mailing List Archives
[protege-discussion] pprj not saving meta-class
Tania Tudorache
tudorache at stanford.edu
Wed Jun 11 18:12:20 PDT 2008
Hi Len,
Len Yabloko wrote:
> Hi Tania,
>
> Thank you for helping me. I did not realize that meta-classes were abstract be default. Now if I set it to concrete - it works without problems.
>
Metaclasses are not abstract by default. If you create them with the
code that I have sent you in the previous reply, you will see that they
are created as concrete. I am not sure what happens in your code that
they are made abstract.
> However, for some reason when I do the opposite (i.e set it to abstract with API) they remain concrete. Do you know why?
>
How do you know that they are still concrete after you set them to
abstract? I have just written a test code for this use case and it works
fine. After you set the metaclass to abstract, try to print out in the
console metaclass.isAbstract(). It should return true.
Cheers,
Tania
> Thanks
>
>
>> Hi Len,
>>
>> Thank you for sending the file. As I predicted, the metaclasses are
>> defined as abstract in the xml file. If you look with a text editor in
>> the xml file, you will see the definition for ONTO-BASE:
>>
>>
>> <class>
>> <name>ONTO-BASE</name>
>> <type>:STANDARD-CLASS</type>
>> <own_slot_value>
>> <slot_reference>:ROLE</slot_reference>
>> <value value_type="string">Abstract</value>
>> </own_slot_value>
>> <own_slot_value>
>> <slot_reference>:DOCUMENTATION</slot_reference>
>> <value value_type="string">@ontobase stereotype =
>> Meta-Type</value>
>> </own_slot_value>
>> <superclass>:STANDARD-CLASS</superclass>
>> <template_slot>:SIGN</template_slot>
>> <template_slot>:INIT</template_slot>
>> <template_slot>:ARGS</template_slot>
>> </class>
>>
>>
>> You can see from this definition that the :ROLE is set to Abstract.
>> That is why you get those messages from Protege.
>>
>> If you fix the xml file, and change the "Abstract" to "Concrete", then
>> you will not get the messages anymore.
>>
>>
>
>
>> Cheers,
>> Tania
>>
>
>
>
> _______________________________________________
> 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
>
>
More information about the protege-discussion
mailing list