-
Notifications
You must be signed in to change notification settings - Fork 95
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
Downloading a large vocabulary crashes the browser tab #901
Comments
The issue seems to be related to the browser behavior: it tries to open the file in browser, crashing it. I think it should suggest downloading the vocabulary instead of showing it. I am not sure if this is browser-related issue (do user preferences affect this?) or a general one. If there is a way to force the browser to ask what to do with the file, it should be implemented. |
You can use a HTTP header (Content-Disposition) to indicate that a resource is intended to be downloaded, but this would have to be done in Apache (or whatever web server is used to serve the actual vocabulary files), outside Skosmos. Another option is to use the Source for both: https://www.designedbyaturtle.co.uk/how-to-force-the-download-of-a-file-with-http-headers-and-php/ |
I'm also unsure whether the |
Just checked, seems like the easy way of setting the |
I added this snippet to the Apache VirtualHost configuration:
Also, the |
Ok, so this leaves open only the documentation part. Can you do that @osma (in addition to closing this)? |
I added documentation about this to the Serving Linked Data wiki page: |
At which URL did you encounter the problem?
http://finto.fi/rest/v1/yso/data?format=application/rdf%2Bxml
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect to download the vocabulary. Instead of that I get a crashed tab.
What browser did you use? (eg. Firefox, Chrome, Safari, Internet explorer)
Firefox
The text was updated successfully, but these errors were encountered: