According W3C specifications, "when two people communicate with one another, the conversation takes place in a shared environment, typically called "the context of the conversation". This shared context allows the individuals to use shortcut terms, like the first name of a mutual friend, to communicate more quickly but without losing accuracy. A context in JSON-LD works in the same way".
jsonld-context.io is a easy way to get your ontology in json-ld context.
Just click to "try it out" button in API section. You can also use this service into @Context and combine more than one ontology to build a context, just concatenating the property ontology with the corresponding values.
E.g.:
"@context": "https://jsonld-context.herokuapp.com/api/v1?ontology=http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core"
If you have any problems with or questions about this library, please contact us through a GitHub issue.