Create this file to use as the ACL: @prefix acl: <http://www.w3.org/ns/auth/acl#> .
<> a acl:Authorization ;
acl:agentGroup <http://localhost:8080/rest/groups/Editors> ;
acl:mode acl:Read, acl:Write ;
acl:accessTo <http://localhost:8080/rest/box/bag/collection> . |
Create this file to define the Editors group: @prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
<> a vcard:Group ;
vcard:hasMember <http://example.org/agent/jones456> |
Run the following commands: curl -XPUT http://localhost:8080/rest/box/bag/collection
curl -XPUT http://localhost:8080/rest/groups/Editors -H 'Content-Type: text/turtle' --data-binary @group.ttl
curl -XPUT http://localhost:8080/rest/box/bag/collection/fcr:acl -H 'Content-Type: text/turtle' --data-binary @acl.ttl |
|