Package com.apicatalog.jsonld.api
Class FromRdfApi
- java.lang.Object
-
- com.apicatalog.jsonld.api.FromRdfApi
-
- All Implemented Interfaces:
CommonApi<FromRdfApi>,LoaderApi<FromRdfApi>
@Deprecated public final class FromRdfApi extends java.lang.Object implements CommonApi<FromRdfApi>, LoaderApi<FromRdfApi>
Deprecated.since 1.7.0 - use an alternative RDF primitives library.This class is deprecated as of version 1.7.0. Please usecom.apicatalog.jsonld.serialization.QuadsToJsonldinstead.
-
-
Field Summary
Fields Modifier and Type Field Description private DocumentdocumentDeprecated.private java.net.URIdocumentUriDeprecated.private JsonLdOptionsoptionsDeprecated.
-
Constructor Summary
Constructors Constructor Description FromRdfApi(Document document)Deprecated.FromRdfApi(java.net.URI documentUri)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FromRdfApibase(java.net.URI baseUri)Deprecated.Set the baseIRI.jakarta.json.JsonArrayget()Deprecated.GetJSON-LDrepresentation of the providedRdfDataset.FromRdfApiloader(DocumentLoader loader)Deprecated.Set the loader to be used to retrieve remote documents and contexts, implementing theDocumentLoader.FromRdfApimode(JsonLdVersion processingMode)Deprecated.SetJSON-LDprocessing mode.FromRdfApinativeTypes()Deprecated.FromRdfApinativeTypes(boolean useNativeTypes)Deprecated.FromRdfApioptions(JsonLdOptions options)Deprecated.Override an existing settings withJsonLdOptions.FromRdfApiordered(boolean enable)Deprecated.If set totrue, certain algorithm processing steps are ordered lexicographically.
-
-
-
Field Detail
-
document
private final Document document
Deprecated.
-
documentUri
private final java.net.URI documentUri
Deprecated.
-
options
private JsonLdOptions options
Deprecated.
-
-
Constructor Detail
-
FromRdfApi
public FromRdfApi(Document document)
Deprecated.
-
FromRdfApi
public FromRdfApi(java.net.URI documentUri)
Deprecated.
-
-
Method Detail
-
options
public FromRdfApi options(JsonLdOptions options)
Deprecated.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)
Deprecated.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(java.net.URI baseUri)
Deprecated.Description copied from interface:CommonApiSet the baseIRI. If set, this overrides the input document's IRI.- Specified by:
basein interfaceCommonApi<FromRdfApi>- Parameters:
baseUri- the base IRI, ornull.- Returns:
- builder instance
-
ordered
public FromRdfApi ordered(boolean enable)
Deprecated.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-trueto enable ordered result- Returns:
- builder instance
-
loader
public FromRdfApi loader(DocumentLoader loader)
Deprecated.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- theDocumentLoaderinstance, nevernull.- Returns:
- builder instance
-
nativeTypes
public FromRdfApi nativeTypes()
Deprecated.
-
nativeTypes
public FromRdfApi nativeTypes(boolean useNativeTypes)
Deprecated.
-
get
public jakarta.json.JsonArray get() throws JsonLdErrorDeprecated.GetJSON-LDrepresentation of the providedRdfDataset.- Returns:
JsonArrayrepresentingJSON-LDdocument- Throws:
JsonLdError- if the document transformation fails
-
-