Package no.hasmac.jsonld.api
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.JsonArray
get()
GetJSON-LD
representation of the providedRdfDataset
.loader
(DocumentLoader loader) Set the loader to be used to retrieve remote documents and contexts, implementing theDocumentLoader
.mode
(JsonLdVersion processingMode) SetJSON-LD
processing 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:CommonApi
Override an existing settings withJsonLdOptions
.- Specified by:
options
in interfaceCommonApi<FromRdfApi>
- Parameters:
options
-JsonLdOptions
- Returns:
- builder instance
-
mode
Description copied from interface:CommonApi
SetJSON-LD
processing mode. JSON-LD 1.1 is set by default.- Specified by:
mode
in interfaceCommonApi<FromRdfApi>
- Parameters:
processingMode
- to set- Returns:
- builder instance
-
base
Description copied from interface:CommonApi
Set the baseIRI
. If set, this overrides the input document's IRI.- Specified by:
base
in interfaceCommonApi<FromRdfApi>
- Parameters:
baseUri
-- Returns:
- builder instance
-
ordered
Description copied from interface:CommonApi
If set totrue
, certain algorithm processing steps are ordered lexicographically. Iffalse
, order is not considered in processing.- Specified by:
ordered
in interfaceCommonApi<FromRdfApi>
- Parameters:
enable
-- Returns:
- builder instance
-
loader
Description copied from interface:LoaderApi
Set 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:
loader
in interfaceLoaderApi<FromRdfApi>
- Parameters:
loader
-- Returns:
- builder instance
-
nativeTypes
-
nativeTypes
-
get
GetJSON-LD
representation of the providedRdfDataset
.- Returns:
JsonArray
representingJSON-LD
document- Throws:
JsonLdError
-