RDFResource
An RDF source: a resource whose representation is a set of RDF triples.
The triples are held in memory as a list of RdfQuads and serialized to JSON-LD by getEntity. You read and edit individual properties with findProperty / findAllProperties (and their per-subject variants) and addQuad / addQuadLiteral / clearProperties, rather than manipulating raw RDF text.
By convention the resource's own primary subject is the document URI with the fragment #it; the per-subject query/mutation overloads default to that subject.
For resources fetched from a Solid server, prefer the SolidRDFResource subtype, which also exposes the response SolidMetadata. Use this base type for RDF documents you construct locally.
See the Solid Protocol (https://solidproject.org/TR/protocol) and LDP (http://www.w3.org/TR/ldp/) for the RDF source model.
Inheritors
Functions
Returns the object values of every triple with the given predicate, across all subjects.
Returns the object value of the first triple with the given predicate, or null if none.
Returns a snapshot copy of all triples held by this resource.
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.