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
ConstructorDescriptionSolidContainer
(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.SolidContainer
(URI identifier, Dataset dataset, Metadata metadata) Deprecated. -
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
getMetadata
Methods inherited from class com.inrupt.client.RDFSource
close, getContentType, getEntity, getHeaders, 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, 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
Deprecated.useSolidContainer(URI, Dataset, Headers)
insteadCreate a new SolidContainer.- Parameters:
identifier
- the container's unique identifierdataset
- the dataset for this container, may benull
metadata
- the container's metadata, may benull
-
SolidContainer
Create a new SolidContainer.- Parameters:
identifier
- the container's unique identifierdataset
- the dataset for this container, may benull
headers
- 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: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.
-
SolidContainer(URI, Dataset, Headers)
instead