Package com.apicatalog.jsonld.api
Class FromRdfApi
- java.lang.Object
-
- com.apicatalog.jsonld.api.FromRdfApi
-
- All Implemented Interfaces:
CommonApi<FromRdfApi>,LoaderApi<FromRdfApi>
public final class FromRdfApi extends Object implements CommonApi<FromRdfApi>, LoaderApi<FromRdfApi>
-
-
Constructor Summary
Constructors Constructor Description FromRdfApi(Document document)FromRdfApi(URI documentUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FromRdfApibase(URI baseUri)Set the baseIRI.jakarta.json.JsonArrayget()GetJSON-LDrepresentation of the providedRdfDataset.FromRdfApiloader(DocumentLoader loader)Set the loader to be used to retrieve remote documents and contexts, implementing theDocumentLoader.FromRdfApimode(JsonLdVersion processingMode)SetJSON-LDprocessing mode.FromRdfApinativeTypes()FromRdfApinativeTypes(boolean useNativeTypes)FromRdfApioptions(JsonLdOptions options)Override an existing settings withJsonLdOptions.FromRdfApiordered(boolean enable)If set totrue, certain algorithm processing steps are ordered lexicographically.
-
-
-
Method Detail
-
options
public FromRdfApi options(JsonLdOptions options)
Description copied from interface:CommonApiOverride an existing settings withJsonLdOptions.- Specified by:
optionsin interfaceCommonApi<FromRdfApi>- Parameters:
options-JsonLdOptions- Returns:
- builder instance
-
mode
public FromRdfApi mode(JsonLdVersion processingMode)
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
public FromRdfApi base(URI baseUri)
Description copied from interface:CommonApiSet the baseIRI. If set, this overrides the input document's IRI.- Specified by:
basein interfaceCommonApi<FromRdfApi>- Returns:
- builder instance
-
ordered
public FromRdfApi ordered(boolean enable)
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>- Returns:
- builder instance
-
loader
public FromRdfApi loader(DocumentLoader 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>- Returns:
- builder instance
-
nativeTypes
public FromRdfApi nativeTypes()
-
nativeTypes
public FromRdfApi nativeTypes(boolean useNativeTypes)
-
get
public jakarta.json.JsonArray get() throws JsonLdErrorGetJSON-LDrepresentation of the providedRdfDataset.- Returns:
JsonArrayrepresentingJSON-LDdocument- Throws:
JsonLdError
-
-