3

I am attempting to create a JSON-LD context which can be used in a closed / intranet environment with no access to the internet.

To this end I am trying to create my own context as there may be licensing issues copying schema.org wholesale and redistributing it.

I've seen that creating your own context is possible but I can't see anywhere that explains what the definition of that context should be. Can someone explain what it should be or point me at a description of an existing context as a starting point?

1 Answer 1

1

The official JSON-LD specification should tell you everything you need. Don't be scared by the word specification, it's written more like a tutorial than a typical spec.

Sign up to request clarification or add additional context in comments.

3 Comments

I've been there and it is a good reference but all elements in it seem to ultimately go back to schema.org which is what I need to avoid.
I just noticed this comment in that spec In JSON-LD documents, contexts may also be specified inline. This has the advantage that documents can be processed even in the absence of a connection to the Web. Ultimately, this is a modeling decision and different use cases may require different handling. Suddenly it makes sense, the URLs are not meant to be dereferenced to understand the vocabulary.
Exactly. You can also define your own vocabulary if you prefer (but you prevent reuse and inhibit interoperability by doing so) and host it internally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.