public class MemoryContextManager extends Object implements ContextManager
| Constructor and Description |
|---|
MemoryContextManager() |
MemoryContextManager(Context summary) |
| 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() |
void |
loadFromClasspath() |
void |
loadFromFile(File source) |
public MemoryContextManager(Context summary)
public MemoryContextManager()
public Context getContextByURI(org.openrdf.model.URI contextURI)
getContextByURI in interface ContextManagerpublic Context getContextByURI(String contextURI)
getContextByURI in interface ContextManagerpublic void add(Context context)
add in interface ContextManagerpublic void loadFromClasspath()
throws IOException
IOExceptionpublic void loadFromFile(File source) throws IOException
IOExceptionpublic List<String> listContexts()
listContexts 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.