The PUT method can be used to replace or create resources. This is explicitly allowable under both LDP and HTTP.
What does the Solid specification say about PUT to create resources (MAY, SHOULD or MUST)?
Specifically, if a resource is created via PUT, what is the expectation about how this operation interacts with LDP containment?
For example, if a client creates a resource via PUT at /foo/bar/baz, should an ldp:contains triple be added to the container /foo/bar?
What if /foo/bar does not exist? Should the server create the container automatically or should the server reject the operation?
What if /foo/bar is a non-container resource (ldp:RDFSource or ldp:NonRDFSource)?
The
PUTmethod can be used to replace or create resources. This is explicitly allowable under both LDP and HTTP.What does the Solid specification say about
PUTto create resources (MAY,SHOULDorMUST)?Specifically, if a resource is created via
PUT, what is the expectation about how this operation interacts with LDP containment?For example, if a client creates a resource via
PUTat/foo/bar/baz, should anldp:containstriple be added to the container/foo/bar?What if
/foo/bardoes not exist? Should the server create the container automatically or should the server reject the operation?What if
/foo/baris a non-container resource (ldp:RDFSourceorldp:NonRDFSource)?