Search Mailing List Archives
[protege-discussion] Read-only slots?
Tania Tudorache
tudorache at stanford.edu
Thu Jul 3 16:33:16 PDT 2008
Hi Len,
I am not sure what you mean. One interpretation is that the values of a
slot for the instances of a certain class should be read-only. But there
are other interpretations, too.
In any case, Protege does not have an API level control access
mechanism. The isEditable call is not helping, because it is not used in
the API, but only in the GUI. One thing that is already available is to
have the ontology opened as read-only also for the programmatic access.
What are you trying to control? Do you want to configure the UI
programmatically to set a widget read-only (which is easy), or do you
want "real" access control at the API level - which is hard (e.g. you
have other software invoking the Protege API, and you want to throw an
exception if the caller tries to set the values of a slot). For the
first case, there is an easy solution. For the second case, there is a
complicated solution.
Tania
Len Yabloko wrote:
> Hi Tania,
>
> Sorry, I meant to ask how to set slot to be read-only using frame API - not GUI. I know slot.setEditable(false) will do it for slot, but I need it to have effect in one class only.
>
> Thanks
>
>
>> Hi Len,
>>
>> You can configure in the FormsTab, if you double clicking on the widget
>> -> Options to make it read-only.
>>
>> Tania
>>
>> Len Yabloko wrote:
>>
>>> Hi,
>>>
>>> Can you recommend any way to make some slots of a class to be read-only?
>>>
>>>
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>>
>> _______________________________________________
>> 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
>>
>>
>
>
> _______________________________________________
> 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