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>&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 9:30 PM<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;Re: [protege-user] Is there a way to hide non-English annotations?</div>

<div name="quoted-content">
<div>Thanks Igor, that&#39;s a great idea but unfortunately it won&#39;t work for this ontology.&nbsp;
<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&rsquo;s internationalization support, and downstream tooling (catalogs, portals, UI layers, and national data platforms) rely on them to present metadata in the user&rsquo;s preferred language. Removing them would break conformance with DCAT&rsquo;s design goals and reduce interoperability, especially in European and international contexts where multilingual catalogs are the norm.&nbsp;</div>

<div>&nbsp;</div>

<div>Since I want what I&#39;m building to be as consistent with those other tools as possible, I need to leave them in. I don&#39;t think there is a way to hide them but just wanted to see if there was something I was missing.&nbsp;</div>
</div>
&nbsp;

<div class="gmail_quote gmail_quote_container">
<div class="gmail_attr">On Thu, Dec 18, 2025 at 12:09&#8239;PM Igor Toujilov via protege-user &lt;<a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a>&gt; 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;">&nbsp;</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;">&nbsp;</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>&nbsp;
<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>&nbsp;Thursday, December 18, 2025 at 4:15 AM<br/>
<b>From:</b>&nbsp;&quot;Michael DeBellis&quot; &lt;<a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a>&gt;<br/>
<b>To:</b>&nbsp;&quot;User support for WebProtege and Protege Desktop&quot; &lt;<a href="mailto:[email protected]" onclick="" target="_blank">[email protected]</a>&gt;<br/>
<b>Subject:</b>&nbsp;[protege-user] Is there a way to hide non-English annotations?</div>

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