Loddy URL in Skosmos

43 views
Skip to first unread message

Parthasarathi Mukhopadhyay

unread,
Dec 31, 2023, 7:48:11 AM12/31/23
to skosmo...@googlegroups.com
Dear all
Happy New Year 2024 to you all.

We are trying to configure a multilingual vocabulary system by translating Homosaurus into Bengali and Hindi for Indian users. We are using VocBench 10.2.1 at the backend and Skosmos 2.17 in the front (presently in a local server as pilot). It is working as per our expectations like this:

image.png

We are also trying to use Loddy and it is also working (after a bit of struggle) like this:

image.png

My question is - how can we link the Loddy URL of a given term in Skosmos like this -


Regards

Parthasarathi Mukhopadhyay

Professor, Department of Library and Information Science,

University of Kalyani, Kalyani - 741 235 (WB), India

https://orcid.org/0000-0003-0717-9413

Joeli Takala

unread,
Jan 11, 2024, 10:10:56 AM1/11/24
to Skosmos Users
Hello, and happy new year!

If I understood correctly what you are using Loddy for, you want to be able to show an alternative view of the concepts between Loddy and Skosmos depending on the exact form of the concept URI.
You should be able to handle this in Apache configuration (https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html). First off, you will need the rewrite module (a2enmod rewrite) for handling this:

Then you will need the configuration file for your service in Apache's sites-available config folder:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName homosaurus.org
        RewriteEngine On
        SSLProxyEngine on
        RewriteRule ^/v3/$ https://localhost/{Skosmos-path}/{homosaurus-vocab-id}/    [R=303]                           #homosaurus.org/v3/ is handled by Skosmos showing the vocab frontpage
        RewriteRule ^/v3/(.*).html https://localhost:8080/Loddy/$1.html    [P]                                                            #homosaurus.org/v3/[concept-id].html is handled by Loddy
        RewriteRule ^/v3/(.*) https://localhost/{Skosmos-path}/entity?uri=https://homosaurus.org/v3/$1    [R=303]  #homosaurus.org/v3/[concept-id] redirects to Skosmos
        ErrorLog /your-apache-log-folder/homosaurus-error.log
        CustomLog /your-apache-log-folder/www.homosaurus-access.log combined
        LogLevel warn
</VirtualHost>

Or something roughly to this effect! Without knowing the exact setup, there might be some glaring errors but I'm sure you get the idea.

______________
Joeli Takala

Parthasarathi Mukhopadhyay

unread,
Jan 11, 2024, 12:46:05 PM1/11/24
to Skosmos Users
Thanks Joeli.

It will serve our purpose.

Thanks and regards

Parthasarathi


--
You received this message because you are subscribed to the Google Groups "Skosmos Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skosmos-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skosmos-users/c50cb3ab-c393-4178-9fe8-4dca94aa4618n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages