Github user stain commented on the issue:
https://github.com/apache/jena/pull/203
For unit tests you can use a JAR-cached context by using the
[jarcache.json](https://github.com/jsonld-java/jsonld-java#loading-contexts-from-classpathjar)
approach and put it together with the JSON schema file in
`src/test/resources/` - that would override the specified URL.
A similar approach can be used with `src/main/resources` - but then of
course you would have to keep the schema cache up to date, so that's more for
the end application to do to avoid external network dependencies.
Note that the actual [schema.org context
file](http://schema.org/docs/jsonldcontext.json) is [licensed as CC BY
SA](http://schema.org/docs/terms.html), but you could make a minimal version
made just for the test which would not infringe copyright.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---