Search Mailing List Archives
[protege-discussion] Problem with rendering by label in Protege 4.1
zhutchok at ebi.ac.uk
Mon May 9 01:11:37 PDT 2011
Thanks Timothy! It did fix my problem. I had no languages at all
specified in the Configure panel, that's why it was not working.
>> Date: Fri, 06 May 2011 07:12:17 -0700
>> From: Timothy Redmond<tredmond at stanford.edu>
>> To: protege-discussion at lists.stanford.edu
>> Subject: Re: [protege-discussion] Problem with rendering by label in
>> Protege 4.1
>> Message-ID:<4DC401C1.9090202 at stanford.edu>
>> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>> On 05/06/2011 03:18 AM, Anna Zhukova wrote:
>>> Hi all,
>>> I'm using Protege 4.1rc1 and render my ontology classes by rdfs:label.
>>> It works fine until I set the label language. If the label language is
>>> specified, then the class ID instead of it's label is represented in
>>> the class hierarchy tree...
>> This happens because the language settings configured for Protege don't
>> match the language settings of the ontology. The language settings for
>> Protege can be set by
>> 1. clicking View->Custom Rendering
>> 2. ensuring that "Render by Annotation Property" is set
>> 3. clicking "Configure"
>> At the bottom of the resulting panel (which should look like the
>> attached diagram) you should see some languages specified. In my case
>> the langauges are specified to be English, US English, Portuguese and
>> "no language specified" (the !). Adding the ! at the end is important
>> and might be your problem. I don't know Portuguese but it is there for
>> testing the pizza ontology.
>> With these settings, if an ontology has an entity with a label which
>> specifies the English language then it will render with that label. If
>> the entity has a label that is a French label then it will not be
>> shown. The "!" ensures that entities with labels that are strings or
>> plain literals without a specified language will be displayed by label.
More information about the protege-discussion