Class RdfDocument

    • Field Detail

      • contentType

        private final MediaType contentType
        Deprecated.
      • dataset

        private final RdfDataset dataset
        Deprecated.
      • profile

        private final java.lang.String profile
        Deprecated.
      • documentUrl

        private java.net.URI documentUrl
        Deprecated.
      • contentUrl

        private java.net.URI contentUrl
        Deprecated.
    • Constructor Detail

      • RdfDocument

        private RdfDocument​(MediaType type,
                            java.lang.String profile,
                            RdfDataset dataset)
        Deprecated.
    • Method Detail

      • of

        public static final RdfDocument of​(java.io.InputStream is)
                                    throws JsonLdError
        Deprecated.
        Create a new document from content provided by InputStream. Sets MediaType.N_QUADS as the content type.
        Parameters:
        is - representing parsed RDF content
        Returns:
        Document representing RDF document
        Throws:
        JsonLdError
      • of

        public static final Document of​(java.io.Reader reader)
                                 throws JsonLdError
        Deprecated.
        Create a new document from content provided by Reader. Sets MediaType.N_QUADS as the content type.
        Parameters:
        reader - providing RDF content
        Returns:
        Document representing RDF document
        Throws:
        JsonLdError
      • accepts

        public static final boolean accepts​(MediaType contentType)
        Deprecated.
      • assertContentType

        private static final void assertContentType​(MediaType contentType)
        Deprecated.
      • getContentType

        public MediaType getContentType()
        Deprecated.
        Description copied from interface: Document
        The Content-Type of the loaded document, exclusive of any optional parameters.
        Specified by:
        getContentType in interface Document
        Returns:
        Content-Type of the loaded document, never null
      • getContextUrl

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

        public void setContextUrl​(java.net.URI contextUrl)
        Deprecated.
        Specified by:
        setContextUrl in interface Document
      • getDocumentUrl

        public java.net.URI getDocumentUrl()
        Deprecated.
        Description copied from interface: Document
        The final URI of the loaded document.
        Specified by:
        getDocumentUrl in interface Document
        Returns:
        URI of the loaded document or null if not available
      • setDocumentUrl

        public void setDocumentUrl​(java.net.URI documentUrl)
        Deprecated.
        Specified by:
        setDocumentUrl in interface Document
      • getProfile

        public java.util.Optional<java.lang.String> getProfile()
        Deprecated.
        Description copied from interface: Document
        The value of any profile parameter retrieved as part of the original Document.getContentType().
        Specified by:
        getProfile in interface Document
        Returns:
        document profile or Optional.empty()
      • getRdfContent

        public java.util.Optional<RdfDataset> getRdfContent()
        Deprecated.
        Description copied from interface: Document
        Retrieves the document content as a parsed RdfDataset.

        If the document content is not in the application/n-quads representation, Optional.empty() is returned.

        Specified by:
        getRdfContent in interface Document
        Returns:
        an Optional containing the RdfDataset if the content is valid, or Optional.empty() if the document content is not in application/n-quads format