Resource
The root of the resource model used throughout the SDK.
A Resource is anything addressable by a URI on a Solid pod. The Solid Protocol builds on the W3C Linked Data Platform (LDP), which classifies resources into two kinds, mirrored by the two direct subtypes here:
RDFResource — an RDF source: a document whose content is a set of RDF triples (e.g. Turtle or JSON-LD). Its triples can be read and edited individually.
NonRDFResource — a non-RDF source (a "binary"): an opaque byte stream such as an image or PDF, handled only as raw bytes.
The Solid… subtypes (SolidRDFResource, SolidNonRDFResource, SolidContainer) additionally expose server-supplied SolidMetadata via SolidResource.
Instances are Parcelable so they can cross process boundaries over AIDL IPC, and AutoCloseable because getEntity backs the representation with a stream — use them in a use { } block, or call close, to release it.
See the Solid Protocol (https://solidproject.org/TR/protocol) and LDP (http://www.w3.org/TR/ldp/) for the underlying resource model.
Inheritors
Functions
The media type of the resource representation (the value of its Content-Type).
Returns the resource representation as a byte stream.
The HTTP headers associated with this resource (empty when constructed locally).
The URI that identifies this resource on the pod.