Package com.inrupt.client.solid
Class SolidRDFSource
java.lang.Object
com.inrupt.rdf.wrapping.commons.WrapperDataset
com.inrupt.client.RDFSource
com.inrupt.client.solid.SolidRDFSource
- All Implemented Interfaces:
Resource
,SolidResource
,AutoCloseable
,Dataset
,GraphLike<Quad>
- Direct Known Subclasses:
SolidContainer
A Solid Resource Object.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSolidRDFSource
(URI identifier) Create a Solid resource.SolidRDFSource
(URI identifier, Dataset dataset) Create a Solid resource.SolidRDFSource
(URI identifier, Dataset dataset, Headers headers) Create a Solid resource.SolidRDFSource
(URI identifier, Dataset dataset, Metadata metadata) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGet the associated metadata about this resource.Methods inherited from class com.inrupt.client.RDFSource
close, getContentType, getEntity, getHeaders, getIdentifier, serialize, validate
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
-
SolidRDFSource
Create a Solid resource.- Parameters:
identifier
- the Solid Resource identifier
-
SolidRDFSource
Create a Solid resource.- Parameters:
identifier
- the Solid Resource identifierdataset
- the resource dataset, may benull
-
SolidRDFSource
Deprecated.useSolidRDFSource(URI, Dataset, Headers)
insteadCreate a Solid resource.- Parameters:
identifier
- the Solid Resource identifierdataset
- the resource dataset, may benull
metadata
- metadata associated with this resource, may benull
-
SolidRDFSource
Create a Solid resource.- Parameters:
identifier
- the Solid Resource identifierdataset
- the resource dataset, may benull
headers
- headers associated with this resource, may benull
-
-
Method Details
-
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 interfaceSolidResource
- Returns:
- the metadata
-
SolidRDFSource(URI, Dataset, Headers)
instead