Re: [protege-user] Is there a way to hide non-English annotations?
Igor Toujilov via protege-user <[email protected]> Fri, 19 Dec 2025 22:47:53 +0100
| Newsgroups | gmane.comp.misc.ontology.protege.owl |
|---|---|
| Message-ID | <trinity-38131311-0256-42fd-b862-d904231197b0-1766180873133@3c-app-mailcom-lxa06> |
--===============4843610626336467735== Content-Type: text/html; charset=UTF-8 <html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">I did not mean permanently stripping off multilingual annotations. You can use the reduced ontology just for search, and then return to the original ontology for other tasks.</p> <div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, December 18, 2025 at 9:30 PM<br/> <b>From:</b> "Michael DeBellis" <[email protected]><br/> <b>To:</b> "User support for WebProtege and Protege Desktop" <[email protected]><br/> <b>Subject:</b> Re: [protege-user] Is there a way to hide non-English annotations?</div> <div name="quoted-content"> <div>Thanks Igor, that's a great idea but unfortunately it won't work for this ontology. <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’s internationalization support, and downstream tooling (catalogs, portals, UI layers, and national data platforms) rely on them to present metadata in the user’s preferred language. Removing them would break conformance with DCAT’s design goals and reduce interoperability, especially in European and international contexts where multilingual catalogs are the norm. </div> <div> </div> <div>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. </div> </div> <div class="gmail_quote gmail_quote_container"> <div class="gmail_attr">On Thu, Dec 18, 2025 at 12:09 PM Igor Toujilov via protege-user <<a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a>> wrote:</div> <blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;"> <div> <div style="font-family: Verdana;font-size: 12.0px;"> <div> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">Hi Michael,</p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">This is not straightforward approach, but it may help:</p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;"> </p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">-- Save the original ontology in a convenient format, e. g. XML/RDF.</p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">-- Write a script, e. g. XSLT, or a program to strip the unwanted annotations.</p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">-- Use the reduced ontology in Protege.</p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;"> </p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">Cheers,</p> <p align="left" style="line-height: 100.0%;margin-bottom: 0.0in;">Igor</p> </div> <div> <div> <div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0.0px 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);"> <div style="margin: 0.0px 0.0px 10.0px;"><b>Sent:</b> Thursday, December 18, 2025 at 4:15 AM<br/> <b>From:</b> "Michael DeBellis" <<a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a>><br/> <b>To:</b> "User support for WebProtege and Protege Desktop" <<a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a>><br/> <b>Subject:</b> [protege-user] Is there a way to hide non-English annotations?</div> <div> <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 ones but there are reasons in terms of how the ontology I'm building will be used that make that not an option. <div> <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 thought might work is on the dialog that comes up on File>Preferences>Renderer 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 with the values:</div> <div> </div> <div>"en, en-US, !"</div> <div> </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 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 gets set back to include the !</div> <div> </div> <div>If there are any tricks or hacks to just show english while keeping the other languages appreciate the feedback.</div> <div> </div> <div>Michael</div> <div><a href="https://www.michaeldebellis.com/blog" target="_blank">https://www.michaeldebellis.com/blog</a></div> </div> </div> _______________________________________________ protege-user mailing list <a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a> <a href="https://mailman.stanford.edu/mailman/listinfo/protege-user" target="_blank">https://mailman.stanford.edu/mailman/listinfo/protege-user</a></div> </div> </div> </div> </div> </div> _______________________________________________<br/> protege-user mailing list<br/> <a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a><br/> <a href="https://mailman.stanford.edu/mailman/listinfo/protege-user" target="_blank">https://mailman.stanford.edu/mailman/listinfo/protege-user</a></blockquote> </div> _______________________________________________ protege-user mailing list [email protected] <a href="https://mailman.stanford.edu/mailman/listinfo/protege-user" target="_blank">https://mailman.stanford.edu/mailman/listinfo/protege-user</a></div> </div> </div> </div></div></body></html> --===============4843610626336467735== 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 --===============4843610626336467735==--