Comments (2)
The main purpose of the current behavior seems to come from the need to identify a language, so Skohub Vocabs knows which language to select and render.
We can maybe bypass this using the browsers navigator.language
(https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language).
This would also allow us to be independent of a specific web server (Apache), which I would really like.
from skohub-vocabs.
I have manually modified the .htaccess
file resulting from the build to
- enable indexes and multiviews
- add another filename to the "DirectoryIndex" type, reflecting the name of my conceptScheme ("scheme")
- declare the languages used in my vocabulary
Options +FollowSymLinks +MultiViews +Indexes
DirectoryIndex index scheme
AddLanguage da .da
AddLanguage de .de
AddLanguage en .en
AddLanguage fr .fr
AddLanguage nl .nl
AddLanguage sv .sv
AddType text/index .index
AddType application/json .json
AddType application/ld+json .jsonld
(the AddType
directives have been there before)
The second and third point are likely to vary from vocabulary to vocabulary, but during building we should have knowledge of these things. Maybe create an .htaccess
file automatically. If the user runs nginx, caddy or something else, they at least have an indication of what they'd need to implement in their webserver's configuration.
from skohub-vocabs.
Related Issues (20)
- Content negotiation is broken HOT 2
- Link to ConceptScheme keeps displayed when going from index to a ConceptScheme and then going back
- Allow other attributes for describing Concept Schemes
- Allow search in scopeNotes, adjust search widget text HOT 1
- Match-Elements missing in generated index.json HOT 3
- Handling of deprecated concepts HOT 4
- Support usage of topConceptOf without hasTopConcept HOT 1
- `#scheme` suffix in URL breaks SkoHub Vocabs HOT 1
- Show more information about a vocabulary HOT 3
- Feature: URI of Concept Scheme should be importable to tools like Protege
- make schemes sortable by visible title HOT 1
- Adjust language switch UI HOT 1
- Add option to not show notation HOT 3
- Webhook doesn't work HOT 7
- SkoHub Vocabs can't handle ConceptSchemes being also of type `owl:Ontology` HOT 3
- No meaningful error messages for violations in `sh:or` statemanet HOT 1
- Concepts on non-top hierarchy levels not loading for hash URI vocab HOT 3
- Enable documentation of vocabulary status
- Need for even deeper hierarchy level HOT 3
- Requesting a new build in the browser makes problems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skohub-vocabs.