You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "VladimirAlexiev (via GitHub)" <gi...@apache.org> on 2024/09/27 11:24:31 UTC

[I] how to debug LOADING_REMOTE_CONTEXT_FAILED problems? [jena]

VladimirAlexiev opened a new issue, #2739:
URL: https://github.com/apache/jena/issues/2739

   ### Version
   
   5.1.0
   
   ### Question
   
   https://github.com/EKGF/dprod/issues/90:
   
   Trying to convert https://github.com/EKGF/dprod/blob/main/examples/data-quality/example.json with riot causes error:
   ```
   riot.bat -out=trig -syntax=jsonld example.json
   12:00:48 ERROR riot            :: There was a problem encountered loading a remote context [code=LOADING_REMOTE_CONTEXT_FAILED].
   ```
   The context is https://ekgf.github.io/dprod/dprod.jsonld and:
   - it's served as `content-type: application/ld+json` (reading through the JSONLD spec, I can't see whether it should be `json` or `ld+json` but all examples use `.jsonld` for the context URL)
   - the certificate is valid
   - example.json works ok on the JSONLD Playground
   
   So what may be the reason for the problem?
   - https://stackoverflow.com/questions/41494678/how-can-i-override-the-context-when-loading-json-ld-in-jena correctly points out that the error is generic and may encompass a whole gamut of problems
   - https://github.com/apache/jena/issues/1765 shows an extra reason, eg `message=Unexpected response code [403]` but that reason is not printed by `riot`
   - https://github.com/apache/jena/commit/44b5535dc47b0159a74ff93e4d41e71e3c69c4ec says `removed the printStackTrace when "loading remote context failed"` but that's just in a test
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] how to debug LOADING_REMOTE_CONTEXT_FAILED problems? [jena]

Posted by "VladimirAlexiev (via GitHub)" <gi...@apache.org>.
VladimirAlexiev commented on issue #2739:
URL: https://github.com/apache/jena/issues/2739#issuecomment-2380896055

   Thanks @afs !
   
   The reason is context nested inside context (actually dprod.jsonld is not a context at all, it's a dumped ontology).
   So the Playground is more lenient than Titanium (thus Riot). But really dprod.jsonld is to blame.
   
   Thank for the PR you made!
   I'll close this specific issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] how to debug LOADING_REMOTE_CONTEXT_FAILED problems? [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2739:
URL: https://github.com/apache/jena/issues/2739#issuecomment-2379778069

   Getting `example.json` returns an HTML document; the github display of the file.
   Use the "raw", the processing is all inside Titanium JSON-LD.
   
   Internally, there is a nested stacktrace that says:
   
   ```
       A keyword [@context] redefinition has been detected.
   ```
   
   My guess is that it is because of the array but I'm not a JSON-LD expert.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [I] how to debug LOADING_REMOTE_CONTEXT_FAILED problems? [jena]

Posted by "VladimirAlexiev (via GitHub)" <gi...@apache.org>.
VladimirAlexiev closed issue #2739: how to debug LOADING_REMOTE_CONTEXT_FAILED problems?
URL: https://github.com/apache/jena/issues/2739


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org