Interface Document

    • Method Detail

      • getContentType

        MediaType getContentType()
        The Content-Type of the loaded document, exclusive of any optional parameters.
        Returns:
        Content-Type of the loaded document, never null
      • getContextUrl

        java.net.URI getContextUrl()
        The value of the HTTP Link header when profile attribute matches http://www.w3.org/ns/json-ld#context.
        Returns:
        attached URI referencing document context or null if not available
      • setContextUrl

        void setContextUrl​(java.net.URI contextUrl)
      • getDocumentUrl

        java.net.URI getDocumentUrl()
        The final URI of the loaded document.
        Returns:
        URI of the loaded document or null if not available
      • setDocumentUrl

        void setDocumentUrl​(java.net.URI documentUrl)
      • getProfile

        java.util.Optional<java.lang.String> getProfile()
        The value of any profile parameter retrieved as part of the original getContentType().
        Returns:
        document profile or Optional.empty()
      • getJsonContent

        default java.util.Optional<jakarta.json.JsonStructure> getJsonContent()
        Get the document content as parsed JsonStructure.
        Returns:
        JsonStructure or Optional.empty() if document content is not JSON based
      • getRdfContent

        default java.util.Optional<RdfDataset> getRdfContent()
        Get the document content as parsed RdfDataset.
        Returns:
        RdfDataset or Optional.empty() if document content is not in application/n-quads representation