Class ActiveContext
java.lang.Object
no.hasmac.jsonld.context.ActiveContext
A context that is used to resolve terms while the processing algorithm is
running.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate URIprivate URIprivate DirectionTypeprivate Stringprivate InverseContextprivate final JsonLdOptionsprivate final List<ActiveContext.CachedPrefix> private ActiveContextprivate final Map<String, TermDefinition> private String -
Constructor Summary
ConstructorsConstructorDescriptionActiveContext(URI baseUri, URI baseUrl, ActiveContext previousContext, JsonLdOptions options) ActiveContext(URI baseUri, URI baseUrl, JsonLdOptions options) ActiveContext(ActiveContext origin) ActiveContext(JsonLdOptions options) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsTerm(String term) voidgetTermNullable(String value) getTerms()booleaninMode(JsonLdVersion version) protected Optional<TermDefinition> removeTerm(String term) voidsetBaseUri(URI baseUri) protected voidsetBaseUrl(URI baseUrl) protected voidsetDefaultBaseDirection(DirectionType defaultBaseDirection) protected voidsetDefaultLanguage(String defaultLanguage) protected voidsetInverseContext(InverseContext inverseContext) protected voidsetPreviousContext(ActiveContext previousContext) protected voidsetTerm(String term, TermDefinition definition) protected voidsetVocabularyMapping(String vocabularyMapping) termSelector(String variable, Collection<String> containerMapping, String typeLanguage) toString()
-
Field Details
-
terms
-
baseUri
-
baseUrl
-
inverseContext
-
previousContext
-
vocabularyMapping
-
defaultLanguage
-
defaultBaseDirection
-
options
-
prefixCache
-
-
Constructor Details
-
ActiveContext
-
ActiveContext
-
ActiveContext
public ActiveContext(URI baseUri, URI baseUrl, ActiveContext previousContext, JsonLdOptions options) -
ActiveContext
-
-
Method Details
-
createInverseContext
public void createInverseContext() -
containsTerm
-
containsProtectedTerm
public boolean containsProtectedTerm() -
removeTerm
-
getTerm
-
getTermNullable
-
getDefaultBaseDirection
-
getDefaultLanguage
-
getBaseUri
-
getVocabularyMapping
-
inMode
-
getPreviousContext
-
getBaseUrl
-
setBaseUri
-
getInverseContext
-
getTermsMapping
-
getTerms
-
newContext
-
uriExpansion
-
valueExpansion
-
uriCompaction
-
valueCompaction
-
newTerm
public TermDefinitionBuilder newTerm(jakarta.json.JsonObject localContext, Map<String, Boolean> defined) -
termSelector
public TermSelector termSelector(String variable, Collection<String> containerMapping, String typeLanguage) -
getOptions
-
setDefaultBaseDirection
-
setDefaultLanguage
-
setVocabularyMapping
-
setBaseUrl
-
setPreviousContext
-
setInverseContext
-
setTerm
-
toString
-
getPrefix
-