Package com.inrupt.client.solid
Class SolidContainer
- java.lang.Object
-
- com.inrupt.rdf.wrapping.commons.WrapperDataset
-
- com.inrupt.client.RDFSource
-
- com.inrupt.client.solid.SolidRDFSource
-
- com.inrupt.client.solid.SolidContainer
-
- All Implemented Interfaces:
Resource
,SolidResource
,AutoCloseable
,Dataset
,GraphLike<Quad>
public class SolidContainer extends SolidRDFSource
A Solid Container Object.
-
-
Constructor Summary
Constructors Constructor Description SolidContainer(URI identifier)
Create a new SolidContainer.SolidContainer(URI identifier, Dataset dataset)
Create a new SolidContainer.SolidContainer(URI identifier, Dataset dataset, Metadata metadata)
Create a new SolidContainer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<SolidResource>
getResources()
Get an immutable collection of resources contained in this SolidContainer.ValidationResult
validate()
Validate the dataset for this object.-
Methods inherited from class com.inrupt.client.solid.SolidRDFSource
getMetadata
-
Methods inherited from class com.inrupt.client.RDFSource
close, getContentType, getEntity, getIdentifier, serialize
-
Methods inherited from class com.inrupt.rdf.wrapping.commons.WrapperDataset
add, add, clear, contains, contains, getGraph, getGraph, getGraphNames, remove, remove, size, stream, stream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inrupt.client.Resource
getContentType, getEntity, getIdentifier
-
-
-
-
Constructor Detail
-
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 identifierdataset
- the dataset for this container, may benull
-
-
Method Detail
-
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.
-
-