Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support local namespaces #26

Closed
acka47 opened this issue Aug 27, 2019 · 8 comments
Closed

Support local namespaces #26

acka47 opened this issue Aug 27, 2019 · 8 comments
Assignees

Comments

@acka47
Copy link
Member

acka47 commented Aug 27, 2019

It would be great to just publish a SKOS vocab on GitHub and then be able to have all the functionality in SkoHub without setting up a redirect.

Background

I wanted to publish https://github.com/tawahle/destatis_faecherklassifikation/blob/master/faecherklassifikation.rdf with SkoHub for interested parties to inspect the vocabulary. Everything worked quite well, the classification was shown as expected. However, clicking on a concept made a problem of course, because the concept URIs (namespace https://onto.tib.eu/destf/cs/) do not redirect to SkoHub (in fact, they do not go anywhere).

As I am not in control of the domain and did not want to use another HTTP namespace where I'd have to setup a redirect myself, I tried to use a local namespaces. This did not work, and in fact sometimes even broke the other Skohub-published vocab in the repo:

@literarymachine
Copy link
Contributor

literarymachine commented Aug 27, 2019

@acka47
Copy link
Member Author

acka47 commented Aug 27, 2019

Hmm, but it does work for https://test.skohub.io/literarymachine/skos/purl.org/dcx/lrmi-vocabs/educationalAudienceRole/. What did you do differenly?

@literarymachine
Copy link
Contributor

Hmm, but it does work for https://test.skohub.io/literarymachine/skos/purl.org/dcx/lrmi-vocabs/educationalAudienceRole/. What did you do differenly?

What I meant is that I published it using a purl.org namespace without redirect configuration to skohub. What was different though, is that in my case the tree navigation used relative links. There was a bug preventing this for https URIs which I fixed in 4951621:

https://test.skohub.io/literarymachine/skos/onto.tib.eu/destf/cs/

@acka47
Copy link
Member Author

acka47 commented Aug 28, 2019

Ok, this fixes the problem I had. Leaving the issue open nonetheless although the priority is not very high by now.

@sebilasse
Copy link

tree navigation used relative links

workaround:
if we publish to github pages we can change pathPrefix in gatsby-config to the name of the repo, example

module.exports = {
  siteMetadata: {
    title: `SkoHub-Vocabs`,
    description: `Static site generator for Simple Knowledge Management Systems (SKOS)`,
    author: `@gatsbyjs`,
  },
  pathPrefix: `/vocab/`,
  ...
}

@sroertgen sroertgen moved this to Backlog in SkoHub Feb 7, 2023
@sroertgen sroertgen added this to SkoHub Feb 7, 2023
@sroertgen sroertgen moved this from Backlog to Ready in SkoHub Aug 14, 2023
@sroertgen sroertgen moved this from Ready to Backlog in SkoHub Sep 26, 2023
@sroertgen sroertgen moved this from Backlog to Ready in SkoHub Mar 13, 2024
@sroertgen sroertgen self-assigned this Mar 14, 2024
@sroertgen sroertgen moved this from Ready to Working in SkoHub Mar 14, 2024
@sroertgen
Copy link
Contributor

This is possible with #272

You can provide a customDomain in the config file and it will be used to build your vocabulary.

@acka47
Copy link
Member Author

acka47 commented Mar 14, 2024

Actually, I am not sure whether this really works. Reopening until I see a running example.

The use case it this:

I tried this at https://github.com/acka47/testing-skohub-vocabs and the build won't work. Did I do something wrong?

@acka47 acka47 reopened this Mar 14, 2024
@acka47 acka47 moved this from Done to Backlog in SkoHub Mar 18, 2024
@sroertgen sroertgen moved this from Backlog to Ready in SkoHub Mar 18, 2024
@sroertgen sroertgen moved this from Ready to Backlog in SkoHub Mar 18, 2024
@acka47
Copy link
Member Author

acka47 commented Mar 18, 2024

The original use case is covered with #271 & skohub-io/skohub-pages#21. Closing this ticket now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants