Class SolidRDFSource

All Implemented Interfaces:
Resource, SolidResource, AutoCloseable, Dataset, GraphLike<Quad>
Direct Known Subclasses:
SolidContainer

public class SolidRDFSource extends RDFSource implements SolidResource
A Solid Resource Object.
  • Constructor Details

    • SolidRDFSource

      public SolidRDFSource(URI identifier)
      Create a Solid resource.
      Parameters:
      identifier - the Solid Resource identifier
    • SolidRDFSource

      public SolidRDFSource(URI identifier, Dataset dataset)
      Create a Solid resource.
      Parameters:
      identifier - the Solid Resource identifier
      dataset - the resource dataset, may be null
    • SolidRDFSource

      @Deprecated public SolidRDFSource(URI identifier, Dataset dataset, Metadata metadata)
      Deprecated.
      Create a Solid resource.
      Parameters:
      identifier - the Solid Resource identifier
      dataset - the resource dataset, may be null
      metadata - metadata associated with this resource, may be null
    • SolidRDFSource

      public SolidRDFSource(URI identifier, Dataset dataset, Headers headers)
      Create a Solid resource.
      Parameters:
      identifier - the Solid Resource identifier
      dataset - the resource dataset, may be null
      headers - headers associated with this resource, may be null
  • Method Details

    • getMetadata

      public Metadata getMetadata()
      Description copied from interface: SolidResource
      Get the associated metadata about this resource.

      Typically, this metadata will be populated with information from response headers. For manually created SolidResource objects, this will generally be empty.

      Specified by:
      getMetadata in interface SolidResource
      Returns:
      the metadata