read

suspend fun <T : SolidResource> read(webId: String, resourceUrl: String, clazz: Class<T>): T

Reads a resource from the pod for webId.

Parameters

clazz

The expected resource type; must extend RDFResource or NonRDFResource.

Throws

on failure.