Re: [protege-user] Is there a way to hide non-English annotations?

Igor Toujilov via protege-user <[email protected]> Thu, 18 Dec 2025 21:08:54 +0100
Newsgroups gmane.comp.misc.ontology.protege.owl
Message-ID <trinity-5d4ccd81-8f51-4c45-8205-da831f926ac9-1766088534810@3c-app-mailcom-lxa06>
--===============5072965864842143603==
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">Hi Michael,</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">This is not straightforward approach, but it may help:</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">&nbsp;</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">-- Save the original ontology in a convenient format, e. g. XML/RDF.</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">-- Write a script, e. g. XSLT, or a program to strip the unwanted annotations.</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">-- Use the reduced ontology in Protege.</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">&nbsp;</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">Cheers,</p>

<p align="left" class="western" style="line-height: 100%; margin-bottom: 0in">Igor</p>
</div>

<div>
<div>&nbsp;
<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>&nbsp;Thursday, December 18, 2025 at 4:15 AM<br/>
<b>From:</b>&nbsp;&quot;Michael DeBellis&quot; &lt;[email protected]&gt;<br/>
<b>To:</b>&nbsp;&quot;User support for WebProtege and Protege Desktop&quot; &lt;[email protected]&gt;<br/>
<b>Subject:</b>&nbsp;[protege-user] Is there a way to hide non-English annotations?</div>

<div name="quoted-content">
<div>I&#39;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&#39;m building will be used that make that not an option.
<div>&nbsp;
<div>I looked at the various preferences to see if there was a way to hide non-English annotations but didn&#39;t see anything. The one thing I thought might work is on the dialog that comes up on File&gt;Preferences&gt;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>&nbsp;</div>

<div>&quot;en, en-US, !&quot;</div>

<div>&nbsp;</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&nbsp;when I remove the exclamation mark. I also thought &quot;maybe it needs to be set before the ontology loads&quot; but when I load my ontology that imports DCAT the pref gets set back to include the !</div>

<div>&nbsp;</div>

<div>If there are any tricks or hacks to just show english while keeping the other languages appreciate the feedback.</div>

<div>&nbsp;</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 [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>

--===============5072965864842143603==
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

--===============5072965864842143603==--