Class FromRdfApi
java.lang.Object
no.hasmac.jsonld.api.FromRdfApi
- All Implemented Interfaces:
CommonApi<FromRdfApi>, LoaderApi<FromRdfApi>
public final class FromRdfApi
extends Object
implements CommonApi<FromRdfApi>, LoaderApi<FromRdfApi>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the baseIRI.jakarta.json.JsonArrayget()GetJSON-LDrepresentation of the providedRdfDataset.loader(DocumentLoader loader) Set the loader to be used to retrieve remote documents and contexts, implementing theDocumentLoader.mode(JsonLdVersion processingMode) SetJSON-LDprocessing mode.nativeTypes(boolean useNativeTypes) options(JsonLdOptions options) Override an existing settings withJsonLdOptions.ordered(boolean enable) If set totrue, certain algorithm processing steps are ordered lexicographically.
-
Field Details
-
document
-
documentUri
-
options
-
-
Constructor Details
-
FromRdfApi
-
FromRdfApi
-
-
Method Details
-
options
Description copied from interface:CommonApiOverride an existing settings withJsonLdOptions.- Specified by:
optionsin interfaceCommonApi<FromRdfApi>- Parameters:
options-JsonLdOptions- Returns:
- builder instance
-
mode
Description copied from interface:CommonApiSetJSON-LDprocessing mode. JSON-LD 1.1 is set by default.- Specified by:
modein interfaceCommonApi<FromRdfApi>- Parameters:
processingMode- to set- Returns:
- builder instance
-
base
Description copied from interface:CommonApiSet the baseIRI. If set, this overrides the input document's IRI.- Specified by:
basein interfaceCommonApi<FromRdfApi>- Parameters:
baseUri-- Returns:
- builder instance
-
ordered
Description copied from interface:CommonApiIf set totrue, certain algorithm processing steps are ordered lexicographically. Iffalse, order is not considered in processing.- Specified by:
orderedin interfaceCommonApi<FromRdfApi>- Parameters:
enable-- Returns:
- builder instance
-
loader
Description copied from interface:LoaderApiSet the loader to be used to retrieve remote documents and contexts, implementing theDocumentLoader. If specified, it is used to retrieve remote documents and contexts; otherwise, if not specified, the processor's built-in loader is used.- Specified by:
loaderin interfaceLoaderApi<FromRdfApi>- Parameters:
loader-- Returns:
- builder instance
-
nativeTypes
-
nativeTypes
-
get
GetJSON-LDrepresentation of the providedRdfDataset.- Returns:
JsonArrayrepresentingJSON-LDdocument- Throws:
JsonLdError
-