Create a new pcdm:Object, "cover/", that is also an ldp:BasicContainer within the "pages/" DirectContainer. Image Added Code Block |
---|
curl -i -XPUT -H"Content-Type: text/turtle" --data-binary @pcdm-object.ttl localhost:8080/rest/objects/raven/pages/cover/ |
Where "pcdm-object.ttl" follows: Code Block |
---|
| @prefix pcdm: <http://pcdm.org/models#>
<> a pcdm:Object . |
As described in the previous step, the addition of "cover/" automatically creates the following new triple on "raven/" No Format |
---|
<http://localhost:8080/rest/objects/raven/> pcdm:hasMember <http://localhost:8080/rest/objects/raven/pages/cover/> |
Restating from the previous step, - the subject of the triple comes from the "ldp:membershipResource" defined on "pages/"
- the predicate of the triple comes from the "ldp:hasMemberRelation" defined on "pages/", and
- the object of the triple is the new resource ("cover/") that was added to the ldp:DirectContainer ("pages/")
|