-
Notifications
You must be signed in to change notification settings - Fork 25
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
Comments
+1 I had the same issue when publishing https://test.skohub.io/literarymachine/skos/purl.org/dcx/lrmi-vocabs/educationalAudienceRole/ |
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://test.skohub.io/literarymachine/skos/onto.tib.eu/destf/cs/ |
Ok, this fixes the problem I had. Leaving the issue open nonetheless although the priority is not very high by now. |
workaround: module.exports = {
siteMetadata: {
title: `SkoHub-Vocabs`,
description: `Static site generator for Simple Knowledge Management Systems (SKOS)`,
author: `@gatsbyjs`,
},
pathPrefix: `/vocab/`,
...
} |
This is possible with #272 You can provide a |
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? |
The original use case is covered with #271 & skohub-io/skohub-pages#21. Closing this ticket now. |
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:
@prefix : <#> .
did not work and broke https://test.skohub.io/acka47/skos/w3id.org/class/hochschulfaecher/scheme.html (acka47/skos@592f076)@prefix : <faecherklassifikation#> .
&@prefix : </faecherklassifikation#> .
did not break the other vocab but did not work. (acka47/skos@4abe0c6)@base </faecherklassifikation/> .
same as the previous. (acka47/skos@27a5dfe)@base <faecherklassifikation/> .
also broke https://test.skohub.io/acka47/skos/w3id.org/class/hochschulfaecher/scheme.html (acka47/skos@f75a835)The text was updated successfully, but these errors were encountered: