Class FromRdfApi

    • Field Detail

      • document

        private final Document document
      • documentUri

        private final java.net.URI documentUri
    • Constructor Detail

      • FromRdfApi

        public FromRdfApi​(Document document)
      • FromRdfApi

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

      • mode

        public FromRdfApi mode​(JsonLdVersion processingMode)
        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)
        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>
        Returns:
        builder instance
      • ordered

        public FromRdfApi ordered​(boolean enable)
        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>
        Returns:
        builder instance
      • loader

        public FromRdfApi loader​(DocumentLoader loader)
        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>
        Returns:
        builder instance
      • nativeTypes

        public FromRdfApi nativeTypes​(boolean useNativeTypes)
      • get

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