Git Product home page Git Product logo

Comments (2)

sroertgen avatar sroertgen commented on July 26, 2024

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.

awagner-mainz avatar awagner-mainz commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.