Hello all,
This is one of these questions that crosses areas/tools.
I have written a schema for some data in linkml https://linkml.io/ and converted this to rdf. @cjm
I have a docker container with cliopatria ClioPatria running on my local machine.I have loaded my rdf file into cliopatria using the web interface. I now want to be able run a lod server.
I understand that I need to set up a handler:
:- http_handler('/rdf/',
lod_api([ redirected_from('https://w3id.org/alspac/alspac-data-catalogue-schema')
]),
[ alspacdcs ]). %I assume this should be my prefix that I use for https://w3id.org/alspac/alspac-data-catalogue-schema in my rdf data?
Where should this handler code reside?
I have set up a dynamic dns to point to my local machine.
Once I have the handler code in the right place I then need to set the docker server to serve on port 80.
Do I then set up a .htaccess
file on w3id github to be something like:
Header set Access-Control-Allow-Origin *
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://samneaves.ddns.net/rdf/[R=303,L]
Is this right?
w3id says it uses https so will this work? or do I need to make cliopatria serve on https and port 22? Should I do this anyway? If so what is the bestway to start the docker container to serve https on what port? I assume I would then need to use something like lets encrypt to get keys and place them somewhere where the docker container can get to them? It’s been a while since I have played around with https so can’t remember the details.
Also would the handler code need to change if I need to set up a reverse proxy ?
Thanks for any help in getting this set up correctly.
Sam