Package no.hasmac.jsonld.context
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 URI
private URI
private DirectionType
private String
private InverseContext
private final JsonLdOptions
private final List
<ActiveContext.CachedPrefix> private ActiveContext
private 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 TypeMethodDescriptionboolean
boolean
containsTerm
(String term) void
getTermNullable
(String value) getTerms()
boolean
inMode
(JsonLdVersion version) protected Optional
<TermDefinition> removeTerm
(String term) void
setBaseUri
(URI baseUri) protected void
setBaseUrl
(URI baseUrl) protected void
setDefaultBaseDirection
(DirectionType defaultBaseDirection) protected void
setDefaultLanguage
(String defaultLanguage) protected void
setInverseContext
(InverseContext inverseContext) protected void
setPreviousContext
(ActiveContext previousContext) protected void
setTerm
(String term, TermDefinition definition) protected void
setVocabularyMapping
(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
-