public class BasicContext extends Object implements Context
| Constructor and Description |
|---|
BasicContext(String iri) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Term term) |
Term |
addTerm(String key,
String id) |
String |
alias(String keyword) |
List<Term> |
asList() |
void |
compile() |
String |
expandIRI(String value) |
String |
getContextIRI() |
String |
getLanguage() |
Term |
getTerm(String key) |
String |
getVendorType()
Returns a vendor specific media type associated with this JSON-LD context, or null
if no such media type is known.
|
long |
getVersionNumber()
Get the version number for this context.
|
BasicContext |
inverse() |
void |
setContextIRI(String iri) |
void |
setVendorType(String mediaType) |
void |
setVersionNumber(long versionNumber) |
void |
sort() |
void |
toJson(com.fasterxml.jackson.core.JsonGenerator json) |
String |
toString() |
public BasicContext(String iri)
public String getLanguage()
getLanguage in interface Contextpublic String getContextIRI()
getContextIRI in interface Contextpublic void setContextIRI(String iri)
setContextIRI in interface Contextpublic BasicContext inverse()
public void toJson(com.fasterxml.jackson.core.JsonGenerator json)
throws IOException
toJson in interface ContextIOExceptionpublic String getVendorType()
ContextgetVendorType in interface Contextpublic void setVendorType(String mediaType)
setVendorType in interface Contextpublic long getVersionNumber()
ContextgetVersionNumber in interface Contextpublic void setVersionNumber(long versionNumber)
setVersionNumber in interface ContextCopyright © 2019. All rights reserved.