Re: [protege-user] Is there a way to hide non-English annotations?
Michael DeBellis <[email protected]> Thu, 18 Dec 2025 13:30:57 -0800
| Newsgroups | gmane.comp.misc.ontology.protege.owl |
|---|---|
| Message-ID | <CALGFikcrL6T9=VfzNCqosg5R0JsK=+odvWF7CZXYA8dLWsS_kA@mail.gmail.com> |
--===============8609475807086501808== Content-Type: multipart/alternative; boundary="000000000000cea466064640ade3" --000000000000cea466064640ade3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Igor, that's a great idea but unfortunately it won't work for this ontology. As I understand it, for W3C vocabularies like DCAT, multilingual annotations are normative. Labels and comments with language tags are part of the standard=E2=80=99s internationalization support, and downstream tool= ing (catalogs, portals, UI layers, and national data platforms) rely on them to present metadata in the user=E2=80=99s preferred language. Removing them wo= uld break conformance with DCAT=E2=80=99s design goals and reduce interoperabil= ity, especially in European and international contexts where multilingual catalogs are the norm. Since I want what I'm building to be as consistent with those other tools as possible, I need to leave them in. I don't think there is a way to hide them but just wanted to see if there was something I was missing. On Thu, Dec 18, 2025 at 12:09=E2=80=AFPM Igor Toujilov via protege-user < [email protected]> wrote: > Hi Michael, > > This is not straightforward approach, but it may help: > > > > -- Save the original ontology in a convenient format, e. g. XML/RDF. > > -- Write a script, e. g. XSLT, or a program to strip the unwanted > annotations. > > -- Use the reduced ontology in Protege. > > > > Cheers, > > Igor > > *Sent:* Thursday, December 18, 2025 at 4:15 AM > *From:* "Michael DeBellis" <[email protected]> > *To:* "User support for WebProtege and Protege Desktop" < > [email protected]> > *Subject:* [protege-user] Is there a way to hide non-English annotations? > I'm working with the DCAT W3C Data Catalog ontology. It has a ton of > comments in around 20 different languages. It makes finding the ones you > want to read a bit hard to find. I considered deleting the non-english on= es > but there are reasons in terms of how the ontology I'm building will be > used that make that not an option. > > I looked at the various preferences to see if there was a way to hide > non-English annotations but didn't see anything. The one thing I thought > might work is on the dialog that comes up on File>Preferences>Renderer wh= en > you hit the Configure button you get a dialog to define the label > annotation properties and their order and there is a field at the bottom > with the values: > > "en, en-US, !" > > I thought if I deleted the ! that might just show English annotations. > That was a longshot anyway because that dialog is for labels not all > annotations but I thought maybe. But nothing changes when I remove the > exclamation mark. I also thought "maybe it needs to be set before the > ontology loads" but when I load my ontology that imports DCAT the pref ge= ts > set back to include the ! > > If there are any tricks or hacks to just show english while keeping the > other languages appreciate the feedback. > > Michael > https://www.michaeldebellis.com/blog > _______________________________________________ protege-user mailing list > [email protected] > https://mailman.stanford.edu/mailman/listinfo/protege-user > _______________________________________________ > protege-user mailing list > [email protected] > https://mailman.stanford.edu/mailman/listinfo/protege-user > --000000000000cea466064640ade3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Thanks Igor, that's a great idea but unfortunately it = won't work for this ontology.=C2=A0<div><br>As I understand it, for W3C= vocabularies like DCAT, multilingual annotations are normative. Labels and= comments with language tags are part of the standard=E2=80=99s internation= alization support, and downstream tooling (catalogs, portals, UI layers, an= d national data platforms) rely on them to present metadata in the user=E2= =80=99s preferred language. Removing them would break conformance with DCAT= =E2=80=99s design goals and reduce interoperability, especially in European= and international contexts where multilingual catalogs are the norm.=C2=A0= </div><div><br></div><div>Since I want what I'm building to be as consi= stent with those other tools as possible, I need to leave them in. I don= 9;t think there is a way to hide them but just wanted to see if there was s= omething I was missing.=C2=A0</div></div><br><div class=3D"gmail_quote gmai= l_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Dec 18, 20= 25 at 12:09=E2=80=AFPM Igor Toujilov via protege-user <<a href=3D"mailto= :[email protected]">[email protected]</a>> w= rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p= x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div = style=3D"font-family:Verdana;font-size:12px"><div> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">Hi Michael,<= /p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">This is not = straightforward approach, but it may help:</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">=C2=A0</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">-- Save the = original ontology in a convenient format, e. g. XML/RDF.</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">-- Write a s= cript, e. g. XSLT, or a program to strip the unwanted annotations.</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">-- Use the r= educed ontology in Protege.</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">=C2=A0</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">Cheers,</p> <p align=3D"left" style=3D"line-height:100%;margin-bottom:0in">Igor</p> </div> <div> <div>=C2=A0 <div name=3D"quote" style=3D"margin:10px 5px 5px 10px;padding:10px 0px 10px= 10px;border-left:2px solid rgb(195,217,229)"> <div style=3D"margin:0px 0px 10px"><b>Sent:</b>=C2=A0Thursday, December 18,= 2025 at 4:15 AM<br> <b>From:</b>=C2=A0"Michael DeBellis" <<a href=3D"mailto:mdebel= [email protected]" target=3D"_blank">[email protected]</a>><br> <b>To:</b>=C2=A0"User support for WebProtege and Protege Desktop"= <<a href=3D"mailto:[email protected]" target=3D"_blank">p= [email protected]</a>><br> <b>Subject:</b>=C2=A0[protege-user] Is there a way to hide non-English anno= tations?</div> <div name=3D"quoted-content"> <div>I'm working with the DCAT W3C Data Catalog ontology. It has a ton = of comments in around 20 different languages. It makes finding the ones you= want to read a bit hard to find. I considered deleting the non-english one= s but there are reasons in terms of how the ontology I'm building will = be used that make that not an option. <div>=C2=A0 <div>I looked at the various preferences to see if there was a way to hide = non-English annotations but didn't see anything. The one thing I though= t might work is on the dialog that comes up on File>Preferences>Rende= rer when you hit the Configure button you get a dialog to define the label = annotation properties and their order and there is a field at the bottom wi= th the values:</div> <div>=C2=A0</div> <div>"en, en-US, !"</div> <div>=C2=A0</div> <div>I thought if I deleted the ! that might just show English annotations.= That was a longshot anyway because that dialog is for labels not all annot= ations but I thought maybe. But nothing changes=C2=A0when I remove the excl= amation mark. I also thought "maybe it needs to be set before the onto= logy loads" but when I load my ontology that imports DCAT the pref get= s set back to include the !</div> <div>=C2=A0</div> <div>If there are any tricks or hacks to just show english while keeping th= e other languages appreciate the feedback.</div> <div>=C2=A0</div> <div>Michael</div> <div><a href=3D"https://www.michaeldebellis.com/blog" target=3D"_blank">htt= ps://www.michaeldebellis.com/blog</a></div> </div> </div> _______________________________________________ protege-user mailing list <= a href=3D"mailto:[email protected]" target=3D"_blank">protege= [email protected]</a> <a href=3D"https://mailman.stanford.edu/mailma= n/listinfo/protege-user" target=3D"_blank">https://mailman.stanford.edu/mai= lman/listinfo/protege-user</a></div> </div> </div> </div></div></div> _______________________________________________<br> protege-user mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">proteg= [email protected]</a><br> <a href=3D"https://mailman.stanford.edu/mailman/listinfo/protege-user" rel= =3D"noreferrer" target=3D"_blank">https://mailman.stanford.edu/mailman/list= info/protege-user</a><br> </blockquote></div> --000000000000cea466064640ade3-- --===============8609475807086501808== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ protege-user mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/protege-user --===============8609475807086501808==--