-
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
"Dereferencing a URL did not result in a valid JSON-LD context" for all given examples #37
Comments
@lanfeust21, either "http://schema.org" or "https://schema.org" are correct contexts for schema.org. "https://schema.org/Person" is not (it's a type). Please refer to schema.org for valid examples of JSON-LD for Person. |
Maybe but it's the example given by the code i did not change anything. |
@lanfeust21 can you please provide a link to the example that uses
? You reported that the proposed changes don't work either. I think I found the underlying reason. See Back to the issue, https://schema.org now returns the following Link in the header:
Currently, this library only supports rel="http://www.w3.org/ns/json-ld#context" as per JSON-LD 1.1 spec. Proposed solutionIf you use the actual location of schema.org context:
The example should work. Please note that it is considered the best practice to cache context documents in production applications. We will add support for rel="alternate" in the next release. I can't provide ETA just yet. Thanks for reporting. |
The fix is in the master. It will be included in the next minor release. |
panic: loading remote context failed: Dereferencing a URL did not result in a valid JSON-LD context: https://schema.org/Person
goroutine 1 [running]:
main.main()
/Users/denislamotte/Desktop/work/jsonld/jsonld.go:35 +0x578
exit status 2
The text was updated successfully, but these errors were encountered: