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>
A Solid Container Object.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSolidContainer(URI identifier) Create a new SolidContainer.SolidContainer(URI identifier, Dataset dataset) Create a new SolidContainer.SolidContainer(URI identifier, Dataset dataset, Headers headers) Create a new SolidContainer. -
Method Summary
Modifier and TypeMethodDescriptionGet an immutable collection of resources contained in this SolidContainer.validate()Validate the dataset for this object.Methods inherited from class com.inrupt.client.solid.SolidRDFSource
getMetadataMethods inherited from class com.inrupt.client.RDFSource
close, getContentType, getEntity, getHeaders, getIdentifier, serializeMethods inherited from class com.inrupt.rdf.wrapping.commons.WrapperDataset
add, add, clear, contains, contains, getGraph, getGraph, getGraphNames, remove, remove, size, stream, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inrupt.client.Resource
getContentType, getEntity, getHeaders, getIdentifier
-
Constructor Details
-
SolidContainer
Create a new SolidContainer.- Parameters:
identifier- the container's unique identifier
-
SolidContainer
Create a new SolidContainer.- Parameters:
identifier- the container's unique identifierdataset- the dataset for this container, may benull
-
SolidContainer
Create a new SolidContainer.- Parameters:
identifier- the container's unique identifierdataset- the dataset for this container, may benullheaders- headers associated with this resource, may benull
-
-
Method Details
-
getResources
Get an immutable collection of resources contained in this SolidContainer.- Returns:
- the contained resources
-
validate
Description copied from class:RDFSourceValidate 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.
-