Materials-Data-Science-and-Informatics / PIDA

PIDA is a service for providing web resources with Permanent URLs (PURLs), to ensure they remain available and can be accessed reliably remain available for future access by both humans and machines.
https://purls.helmholtz-metadaten.de/
MIT License
3 stars 5 forks source link

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

Closed hofmannv closed 4 months ago

hofmannv commented 5 months ago

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

saidfathalla commented 5 months ago

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

hofmannv commented 5 months ago

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

saidfathalla commented 5 months ago

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

hofmannv commented 5 months ago

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

hofmannv commented 4 months ago

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.

saidfathalla commented 4 months ago

it should work now. Please check https://purls.helmholtz-metadaten.de/emg/EMG_00000008

hofmannv commented 4 months ago

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