Class SolidContainer

All Implemented Interfaces:
Resource, SolidResource, AutoCloseable, Dataset, GraphLike<Quad>

public class SolidContainer extends SolidRDFSource
A Solid Container Object.
  • Constructor Details

    • SolidContainer

      public SolidContainer(URI identifier)
      Create a new SolidContainer.
      Parameters:
      identifier - the container's unique identifier
    • SolidContainer

      public SolidContainer(URI identifier, Dataset dataset)
      Create a new SolidContainer.
      Parameters:
      identifier - the container's unique identifier
      dataset - the dataset for this container, may be null
    • SolidContainer

      public SolidContainer(URI identifier, Dataset dataset, Metadata metadata)
      Create a new SolidContainer.
      Parameters:
      identifier - the container's unique identifier
      dataset - the dataset for this container, may be null
      metadata - the container's metadata, may be null
  • Method Details

    • getResources

      public Set<SolidResource> getResources()
      Get an immutable collection of resources contained in this SolidContainer.
      Returns:
      the contained resources
    • validate

      public ValidationResult validate()
      Description copied from class: RDFSource
      Validate the dataset for this object.

      Subclasses may override this method to perform validation on the provided dataset. By default, this method is a no-op.

      Overrides:
      validate in class RDFSource
      Returns:
      the validation result