You can read and write resources on the file system with the
This is the type of the exceptions that are raised when a resource is queried, but it does not exist on the file system.
When you request a resource representation with a certain content-type, but that content-type does not exist, this error is raised.
Check that error is of type
A resource has different linked data types. The most important types are http://www.w3.org/ns/ldp#Resource, which is the base type of a resource, and http://www.w3.org/ns/ldp#BasicContainer, for containers.
Return the list of type URIs of a resource identified by path. path should be the path of an URI.
Set the types (a list of URIs) of the resource identified by path.
If the resource is a container, you might want to get the list of contained resources.
Return the list of resource paths that are contained within the resource identified by path.
In fact, resources can contain other resources regardless of their types. This means that there is a natural hierarchy of resources.
Return the resource path of the resource that contains the resource identified by path.
If you want to create a resource under a container, you need not edit anything for the container, just create the resource.
Create a new resource with the given types under the parent container. The resource is named slug. If such a resource already exists, simply update its types.
Delete the resource identified by path, and every resource contained within that resource.
In order to know who has access to the resource, each one has an access control list (ACL), whose format is not specified here. This is a simple file, that you can open for reading or writing. Every resource has an ACL. If you want to simulate that a resource inherits the ACL of its parent, just write that in the ACL.
Open the ACL of the resource identified by path with the given
mode (and pass the further args to
The resource in itself can have multiple different representation, each with its own content type.
Return a list of content types of the resource identified by
path. The content types are symbols, like
set-content, create a new representation with the given
content-type for the resource identified by path, or
replace the representation with that content-type. For
get-content, open the representation with the given
content-type. Return a new open port to that file, opened in
textual mode or binary mode.
Remove the representation of the resource identified by path with the given content-type.
Resource representations have an “ETag”, which is a small piece of information that is updated every time the resource representation changes.
Get the ETag of the representation with the given content-type of the resource identified by path.
Change the ETag of the representation with the given content-type of the resource identified by path. It is a new random value.