Materials-Data-Science-and-Informatics/PIDA

create/edit HTAccess file for purls.helmholtz-metadaten.de/emg/

Closed this issue · 7 comments

Hi Said,

for deploying the EM Glossary OWL artefact we need to set up the re-direction in PIDA. Could you help with creating/editing the HTacess file please?

The following re-directions need to be established:

We plan to go live in April, so this is not super urgent, but would be great to be done in KW 14
best
Volker

Hi Volker,
It should work now.
Please check and let me know if there is any problem.
You had it in KW13 ;)

Hi again,
due to a change in deployment the URL for the HTML documentation page will need to be changed to owl.emglossary.helmholtz-metadaten.de
best
Volker

Hi, this link is broken! Do you still want to change the current one?

Hi, yes please. The domain is requested to be routed to the IP - should be working any minute...

owl.emglossary.helmholtz-metadaten.de redirection now works. However term based dereferencing is not yet working properly. E.G. https://purls.helmholtz-metadaten.de/emg/EMG_00000012 gets a PIDA 404. I suspect that is because the HTAccess file does not take into account that we are using numeric IRIs in EMG (because i did not tell you) and we probably need a re-write rule similar to

RewriteCond %{HTTP_ACCEPT} text/\* [OR]
RewriteCond %{HTTP_ACCEPT} \*/\* [OR]
RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^(EMG_[0-9]+)$ https://owl.emglossary.helmholtz-metadaten.de/ [R=303,NE,L]

instead of

RewriteCond %{HTTP_ACCEPT} !application/rdf\+xml.*(text/html|application/xhtml\+xml)
RewriteCond %{HTTP_ACCEPT} text/html [OR]
RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/.*
RewriteRule ^$ http://owl.emglossary.helmholtz-metadaten.de/ [R=303,NE,L]

only.

FYI: This issue is related to #40 in the EMGlossary_Web development repository - where @mustafasoylu is currently assigned.

awesome - thanks for the edits, everything seems to be working fine now!