- From: Daniel Garijo <dgarijo@fi.upm.es>
- Date: Thu, 22 Jun 2023 12:43:06 +0200
- To: Eduardo Buhid <ebuhid@lst.tfo.upm.es>
- Cc: Stian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>, public-perma-id@w3.org
- Message-ID: <CAExK0DdX=c8HPJB9wKK0j09coSESz68AP6xmK6cBgS0k5KPHaQ@mail.gmail.com>
Hi Eduardo, You created the w3id https://w3id.org/periscope/ontology/ontology I can see your ontology there. If you want to create the URI w3id.org/periscope/ontology, you need to change your htaccess as follows: RewriteRule ^$ https://periscope.lst.tfo.upm.es/ [R=301,L] Best, Daniel El jue, 22 jun 2023 a las 10:51, Eduardo Buhid (<SRS0=iv4q=CK=lst.tfo.upm.es =ebuhid@relay.fi.upm.es>) escribió: > Hi Daniel. > I write to you asking your support. > I can't set up the repository to get the permanent links. > > When i try to open both permanent liks, i get the *Index of > /periscope/ontology *page > > Can you please check rapidly the htaccess file to see if there is some > errors in the config? > > https://github.com/perma-id/w3id.org/tree/master/periscope > > Bests. > Eduardo. > El 12/06/2023 a las 20:34, Daniel Garijo escribió: > > Thanks, Stian, > Eduardo, if the link Stian shared is not clear enough, I created > https://github.com/perma-id/w3id.org/tree/master/example, which shows > with an example how to do redirection for ontologies. > If you have a look at > https://github.com/perma-id/w3id.org/tree/master/okn/o you can find > several ontologies which redirect to different places under the same > namespace. > Best, > Daniel > > El mié, 24 may 2023 a las 11:22, Stian Soiland-Reyes (<SRS0=6DIj=BN= > manchester.ac.uk=soiland-reyes@relay.fi.upm.es>) escribió: > >> I would recommend redirects for ontologies/namespaces to be done >> explicitly in the w3id .htaccess rather than by convention of folder names >> passed through a pattern, so that you remember later to keep/update all of >> them. But if you have many such redirects then a pattern would help. >> >> Having multiple domain names to redirect is not a problem, but again this >> means you have to be explicit in the .htaccess for each. Likewise you are >> not required to have the same folder structure on the server as on w3id >> side, it is common to 'shuffle' paths around, e.g. for version numbers. >> >> >> To support ontologies with HTML rendering such as yours, try HTTP_ACCEPT >> conditionals - it depends on which formats you have exported the OWL file >> as, this should help as your http server does not seem to handle this >> itself right now. >> >> See for instance >> https://github.com/perma-id/w3id.org/blob/master/TRO/.htaccess -- as it >> is redirecting to static hosting at GitHub Pages this is a good example of >> needing w3id and content negotiation. >> >> >> I would try to avoid "ontology" in the permalink, as tools may then make >> prefix "ontology:" which is a bit meaningless. >> >> Perhaps the best for your case is to make /periscope for ontology and >> subfolder /periscope/atlas for the repository and a .htaccess in each -- >> using ^$ as match mean it won't eat atlas/ so the subfolder's .htaccess can >> be used. Alternatively you can use ^atlas$ in the end of >> /periscope/.htaccess >> >> In both cases make sure you have consistent use of trailing / or not in >> your permalinks - the second approach would not redirect for >> /periscope/atlas/ but because of the folder would redirect for both >> /periscope and /periscope/ >> >> >> BTW, your UPM colleague Daniel Garijo is one of the w3id maintainers with >> lots of expertise on this. >> >> >> On 2023-05-24 07:17, Eduardo Buhid wrote: >> >> Thanks for the repply Dave. >> >> I found some examples in the repo, but all of that (at least the repos >> that i found) are under the same domain. >> i meant, for example , lst.tfo.upm.es/periscope/ontology and >> lst.tfo.upm.es/periscope/pewg. >> >> Can you tell me which project within the repository has a configuration >> like the one I need?. I will take it as a starting point. >> Then, if I can't get it, I will ask for help. >> >> Bests. >> Eduardo >> El 24/05/2023 a las 3:29, David I. Lehn escribió: >> >> Yes, you can do that. Many of the projects using this service redirect >> many sub-paths to different remote services. The setup is using apache >> htaccess files and is quite flexible. There are many examples to look at. >> Let us know if you need assistance. >> >> -dave >> >> -- >> Eduardo Buhid >> >> Life Supporting Technologies >> www.lst.tfo.upm.es >> Universidad Politécnica de Madrid >> E.T.S.I. Telecomunicación - D.206 >> Avda. Complutense, 30 - 28040 Madrid – Spain >> Tel: +34 910672636 >> >> -- >> Stian Soiland-Reyes, The University of Manchesterhttps://www.esciencelab.org.uk/https://orcid.org/0000-0001-9842-9718 >> Please note that I may work flexibly - whilst it suits me to email now, >> I do not expect a response or action outside of your own working hours. >> >> -- > Eduardo Buhid > > Life Supporting Technologies > www.lst.tfo.upm.es > Universidad Politécnica de Madrid > E.T.S.I. Telecomunicación - D.206 > Avda. Complutense, 30 - 28040 Madrid – Spain > Tel: +34 910672636 > >
Received on Thursday, 22 June 2023 10:43:27 UTC