Add "resource" URI variable to BaseRenderingEngine

12 views
Skip to first unread message

Saku Seppälä

unread,
Jul 1, 2026, 5:40:23 AMJul 1
to semanticturkey-developer
Hi all,

One NatLibFi ontology developer had requested if the concept labels could have URI displayed together with the label in one particular ontology.

To solve this issue I looked at the rendering engine templating mechanism in SemanticTurkey (https://semanticturkey.uniroma2.it/doc/sys/rendering_engine.jsf), but noticed that there does not seem to exists a variable that or a mechanism could be used to display the URI of a concept. Or have I missed something?

One could solve this issue by creating a custom rendering engine. However, this seems such a generic use case that IMO the BaseRenderingEngine could just include a "resource" variable on default, which could be used to display the URI of a concept?

So I would propose changing the BaseRenderingEngine according to the attached patch. Computational overhead from this patch is very low, and even then, it only affects projects that have a template defined.

Looking forward to hear your thoughts on this proposal.


Kind Regards, Saku Seppälä

PS. Semantic Turkey and Vocbench websites seem to be down at the moment.
vocbench3-VB15_1_1-BaseRenderingEngine.patch

Manuel Fiorelli

unread,
Jul 3, 2026, 12:21:20 PMJul 3
to semanticturk...@googlegroups.com, Saku Seppälä
Dear Saku,

I’ve just pushed a commit that integrates your contributions, with some refinements:

https://bitbucket.org/art-uniroma2/semantic-turkey/commits/d25223c82df74c663b0ef017244d5bbc44c75783

Here are the main differences from your original patch:
  • variable names have been revised (iri, ns, localName, prefix);
  • variables no longer default to an empty string. If you need optional behavior, you can achieve it by adding the “?” quantifier to the group containing the variable expansion. This makes the entire group optional. You can refer to the tests or the documentation for examples.

Best regards,
Manuel


--
Hai ricevuto questo messaggio perché sei iscritto al gruppo "semanticturkey-developer" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più le sue email, invia un'email a semanticturkey-dev...@googlegroups.com.
Per visualizzare questa discussione, visita https://groups.google.com/d/msgid/semanticturkey-developer/1bfa0b43-614f-4121-88a7-22051ae307c0n%40googlegroups.com.


--
Manuel Fiorelli
Reply all
Reply to author
Forward
0 new messages