Class 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 use com.apicatalog.jsonld.serialization.QuadsToJsonld instead.
    • Field Detail

      • document

        private final Document document
        Deprecated.
      • documentUri

        private final java.net.URI documentUri
        Deprecated.
    • Constructor Detail

      • FromRdfApi

        public FromRdfApi​(Document document)
        Deprecated.
      • FromRdfApi

        public FromRdfApi​(java.net.URI documentUri)
        Deprecated.
    • Method Detail

      • mode

        public FromRdfApi mode​(JsonLdVersion processingMode)
        Deprecated.
        Description copied from interface: CommonApi
        Set JSON-LD processing mode. JSON-LD 1.1 is set by default.
        Specified by:
        mode in interface CommonApi<FromRdfApi>
        Parameters:
        processingMode - to set
        Returns:
        builder instance
      • base

        public FromRdfApi base​(java.net.URI baseUri)
        Deprecated.
        Description copied from interface: CommonApi
        Set the base IRI. If set, this overrides the input document's IRI.
        Specified by:
        base in interface CommonApi<FromRdfApi>
        Parameters:
        baseUri - the base IRI, or null.
        Returns:
        builder instance
      • ordered

        public FromRdfApi ordered​(boolean enable)
        Deprecated.
        Description copied from interface: CommonApi
        If set to true, certain algorithm processing steps are ordered lexicographically. If false, order is not considered in processing.
        Specified by:
        ordered in interface CommonApi<FromRdfApi>
        Parameters:
        enable - true to enable ordered result
        Returns:
        builder instance
      • loader

        public FromRdfApi loader​(DocumentLoader loader)
        Deprecated.
        Description copied from interface: LoaderApi
        Set the loader to be used to retrieve remote documents and contexts, implementing the DocumentLoader. 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 interface LoaderApi<FromRdfApi>
        Parameters:
        loader - the DocumentLoader instance, never null.
        Returns:
        builder instance
      • nativeTypes

        public FromRdfApi nativeTypes()
        Deprecated.
      • nativeTypes

        public FromRdfApi nativeTypes​(boolean useNativeTypes)
        Deprecated.
      • get

        public jakarta.json.JsonArray get()
                                   throws JsonLdError
        Deprecated.
        Get JSON-LD representation of the provided RdfDataset.
        Returns:
        JsonArray representing JSON-LD document
        Throws:
        JsonLdError - if the document transformation fails