public class ClasspathContextManager extends Object implements ContextManager
For example, the JSON-LD context whose URL is "http://example.com/ctx/somecontext" would be accessed from the classpath at:
jsonld/context/http/example.com/ctx/somecontext
| Constructor and Description |
|---|
ClasspathContextManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Context context) |
Context |
getContextByMediaType(String mediaType) |
Context |
getContextByURI(String contextURI) |
Context |
getContextByURI(org.openrdf.model.URI contextURI) |
Context |
getContextByVersionNumber(long versionNumber) |
Context |
getUniversalContext()
Get a JSON-LD context which contains simple terms for every namespace, class, property, and taxon.
|
List<String> |
listContexts() |
public List<String> listContexts()
listContexts in interface ContextManagerpublic void add(Context context)
add in interface ContextManagerpublic Context getContextByURI(org.openrdf.model.URI contextURI)
getContextByURI in interface ContextManagerpublic Context getContextByURI(String contextURI)
getContextByURI in interface ContextManagerpublic Context getContextByMediaType(String mediaType)
getContextByMediaType in interface ContextManagerpublic Context getContextByVersionNumber(long versionNumber)
getContextByVersionNumber in interface ContextManagerpublic Context getUniversalContext()
ContextManagergetUniversalContext in interface ContextManagerCopyright © 2019. All rights reserved.