-
Notifications
You must be signed in to change notification settings - Fork 30
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
Create a JSON-LD context file that can be reused across NIDM-Results documents #418
Comments
@dbkeator, @cmaumet, @satra : There now seems to be a problem accessing the NIDM-Results JSON-LD context file as an error is now appearing when I run refresh.py that references that file. The error seems to have something to do with the Name on the SSL certificate, not matching. The salient part is : (Caused by SSLError(CertificateError("hostname 'raw.githubusercontent.com' doesn't match u'www.github.com) but here is the full error traceback: This error seems to be solved by reissuing the SSL cert, but that doesn't look like an option here. I don't know what the purl redirect looks like for this file, but does anyone have the Purl login info so I can check? @satra IIRC you had it at one time? |
Interesting. The context file URL resolves to the correct file, so it looks like it really is an error related to the cert. |
@khelm : I've shared the details for the purl login with you by email. |
@Maumet I originally thought that the link you sent me was the issue since purl does use Let's Encrypt for it's certificates. I downloaded an updated cacert.pem file and pointed to that in my .bashrc file, but still got the same error. However, I now think it has to do with the version of requests or urllib3 that is called by jsonld.py. It's a little hard to tell which is the problem - or both - since the warning at the top of the error is from urllib3 and the error at the bottom is from requests. Unfortunately, due to the way that they are called - from within jsonld.py I can't add the flag to not check the certificate without modifying the actual module code. Upgrading urllib3 doesn't fix the error, but does raise a warning saying that the version is past what nidmresults has specified and upgrading requests gives a different error, again in a package that shouldn't be modified. I also created a new conda environment and installed nidmresults into that, but got different errors. Part of the issue, I think, is the use of python 2.7. |
As suggested by @satra, it would be nice to create a JSON-LD context file listing our preferred prefixes available in https://github.com/incf-nidash/nidm/blob/master/nidm/nidm-results/terms/prefixes.csv.
This context file could then be imported by any NIDM-Results JSON-LD document.
We would need:
scripts/refresh.py
to trigger this function as part of the tests to make sure it is run after each update.Here is an example of JSON-LD context file: https://json-ld.org/contexts/person.jsonld
The text was updated successfully, but these errors were encountered: