Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Bug ? Hiding identifyers for owl classes with set lang attributes for rdfs:labels does not work for owl-imported ontologies

Trish Whetzel whetzel at
Wed Sep 6 08:11:14 PDT 2006

Hi Daniel,

Following-up on this list as well.

I am not sure that this is a bug.  As mentioned earlier on the fugo-devel
list, there were some problems with the terms added into the
ontology, either they did not have a unique identifier or the Language
atttribute for the rdfs:label was not set. I gather from your
response here that both of the ontologies that you are working with
have the protege:defaultLanguage attribute set with the value 'en' AND
the value of 'en' for each term in the rdfs:label.  This resolves step 1
of the debugging effort. As for step 2, I will send/post a modified
version of the FuGO.owl file later this evening. Can you then test the
import with this version and report back so that we can confirm whether
this resolves the problem that you are seeing?


> I still have this problem that classes that are imported are displayed
> by their :names/rdf:ids and not by their rdfs:labels. This holds true
> for all classes that have the "en" xml lang attribute set. Adding the
> protege:defaultLanguage annotation property to the metadata section (as
> described on
> step 5 ) of both ontologies doesn't help either. As soon as I delete the
> "en" for the classes rdfs:labels they are displayed by label correctly
> as specified in the Forms tab. When I set the lang attribute to "en" it
> is immediately displayed by :NAME.
> I stated the problem before ( protege-owl  list, 8.8.06), but got no
> reply... See that last mail below....
> I could send the ontology, so you can try it out and see what I mean....
> I would be very thankful for advice.
> Best regards,
>        Daniel Schober.
> Hello Protegeans. I think it is a bug:
> Opening an owl ontology using Protege V 3.2 build 322, the browser key
> does not show the rdfs:label values for classes that have the lang
> attribute set for their rdfs:label (although set correctly to rdfs:label
> for the owl:class in the forms tab). This results in an ugly hierarchy
> being displayed by protege that shows a mixture of proper class names
> (rdfs:label as browser/display key) and  prefixed numeric identifiers
> (rdf:ID  as browser/display key).
> We work around this, by not setting the xml lang attribute, resp.
> deleting it where set ( quick and dirty, I just delete "<rdfs:label
> xml:lang="en">" in the owl file ).
> Then the hierarchy will be displayed correctly by the class names not
> the ids, given you changed the browser key to be rdfs:label in the forms
> tab.
> Is there a cleaner solution? Is this bug being fixed ?
> Best regards,
>               Daniel Schober.
> -- 
> Daniel Schober
> Ontologist, FuGO-Project
> The European Bioinformatics Institute   email:  schober at
> EMBL Outstation - Hinxton               direct: +44 (0)1223 494410
> Wellcome Trust Genome Campus            fax: +44 (0)1223 494 468
> Cambridge CB10 1SD, UK
> Project page:
> Personal Page:
> Room: A2-37
> _______________________________________________
> protege-owl mailing list
> protege-owl at

More information about the protege-owl mailing list