SolidSourceReference
data class SolidSourceReference(val identifier: String, val types: List<String>, val size: Long? = null, val modified: String? = null, val mtime: Long? = null, val contentType: String? = null, val headMetadata: SolidMetadata? = null) : Parcelable
A lightweight reference to a resource contained inside a SolidContainer. Populated from the container's RDF dataset, which Solid servers SHOULD enrich with stat metadata per https://solidproject.org/TR/protocol (section on container contained resource metadata).
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Returns true if types includes any LDP container type. This is the reliable check, but only works when the container listing enriched this reference with the child's rdf:type; use isContainerByUri as a fallback when types is empty.
Link copied to clipboard
Returns true if the identifier ends with /, the Solid convention for a container URI. A cheap heuristic for when types is unavailable.
Link copied to clipboard