Re: display labels with specified language other than English
Timothy Redmond <[email protected]>
| Newsgroups | gmane.comp.misc.ontology.protege.general |
|---|---|
| Message-ID | <[email protected]> |
I am assuming Protege 4 for the moment. The support for languages in
Protege 3 is similar but I prefer the Protege 4 variant.
> Does Protege only handle the label set as String, xml:lang="en" and no
> language or data type specified?
You can set the language as you like. If you set the language you will
not be able to set the datatype because the datatype is PlainLiteral.
In addition, you can change the display settings to display in the
language of your choice. So if you want the entities to show up with
their German language, you can
1. go to View->Custom Rendering,
2. make sure that render by annotation property of prefixed annotation
property is selected,
3. click configure and set your languages.
The first time you use Protege this setting is configured by default
based on your locale. I think that the default setup is to search for
1. locale language,
2. locale language in locale country,
3. english if not already set and
4. no language specified (e.g. a string)
in that order.
> I worried without specifying language, it may cause problem when use
> ontology in other applications.
The advantage of using labels and langauges is that it is recommended (I
don't know where this is described actually). Other applications should
simply understand it and if they don't then you have a valid complaint.
-Timothy
On 7/17/12 2:03 PM, Jie Zheng wrote:
> Hi,
>
> I added labels in German to ontology terms and specified
> xml:lang="de". In this case, when I render 'german label', it will
> display term ID. However, if I did not specify the language, the
> display is fine. I attached a simple example. Term 'assay' with label
> in German and not specify language but term 'data transformation' did.
> You can see the difference when render using annotation property
> 'German label'.
>
> Does Protege only handle the label set as String, xml:lang="en" and no
> language or data type specified? I worried without specifying
> language, it may cause problem when use ontology in other applications.
>
> What do you suggest on handling different languages issue?
>
> Thanks,
>
> Jie
>
>
>
> _______________________________________________
> protege-discussion mailing list
> [email protected]
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
_______________________________________________
protege-discussion mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion
Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03