[conradL@qimr13054 ~]$ stardog-admin role add ngRoleSuccessfully added role ngRole.[conradL@qimr13054 ~]$ stardog-admin user add ngUser -N 1234Successfully created user ngUser.[conradL@qimr13054 ~]$ stardog-admin user addrole -R ngRole -- ngUserRole ngRole has been successfully assigned to user ngUser.[conradL@qimr13054 namedGraphTesting]$ stardog-admin role list -v+--------+-----------+| Role | Users |+--------+-----------+| ngRole | ngUser || reader | anonymous |+--------+-----------+
[conradL@qimr13054 ~]$ cat foo.trig @prefix ex: <http://example.org/> .
ex:a { ex:b ex:c ex:d}[conradL@qimr13054 ~]$ cat bar.trig @prefix ex: <http://example.org/> .
ex:e { ex:f ex:g ex:h}[conradL@qimr13054 ~]$ stardog-admin db create -n test -o security.named.graphs=true -- foo.trig bar.trigBulk loading data to new database test.Loaded 2 triples to test from 2 file(s) in 00:00:00.397 @ 0.0K triples/sec.Successfully created database 'test'.
[conradL@qimr13054 namedGraphTesting]$ stardog query test "SELECT * WHERE { GRAPH ?g {?s ?p ?o} }"+-------+-------+-------+-------+| g | s | p | o |+-------+-------+-------+-------+| ex:a | ex:b | ex:c | ex:d || ex:e | ex:f | ex:g | ex:h |+-------+-------+-------+-------+
[conradL@qimr13054 ~]$ stardog-admin role grant -a read -o db:test ngRoleSuccessfully granted the permission.
[conradL@qimr13054 ~]$ stardog-admin role grant -a read -o named-graph:test\\http://example.org/a ngRoleSuccessfully granted the permission.
[conradL@qimr13054 ~]$ stardog-admin user permission -v ngUser+---------------+---------------------------+-------------+----------+| Resource Type | Resource Name | Permissions | Source |+---------------+---------------------------+-------------+----------+| db | test | --R---- | ngRole || named-graph | test\http://example.org/a | --R---- | ngRole || user | ngUser | --R---- | [ngUser] |+---------------+---------------------------+-------------+----------+
[conradL@qimr13054 ~]$ stardog query -u ngUser -p 1234 test "SELECT * FROM <http://example.org/a> WHERE {?s ?p ?o}"+-------+-------+-------+| s | p | o |+-------+-------+-------++-------+-------+-------+
[conradL@qimr13054 ~]$ stardog-admin user grant -a read -o named-graph:test\\http://example.org/a ngUserSuccessfully granted the permission.
[conradL@qimr13054 ~]$ stardog-admin user permission -v ngUser+---------------+---------------------------+-------------+-----------------+| Resource Type | Resource Name | Permissions | Source |+---------------+---------------------------+-------------+-----------------+| db | test | --R---- | ngRole || named-graph | test\http://example.org/a | --R---- | [ngUser],ngRole || user | ngUser | --R---- | [ngUser] |+---------------+---------------------------+-------------+-----------------+
[conradL@qimr13054 ~]$ stardog query -u ngUser -p 1234 test "SELECT * FROM <http://example.org/a> WHERE {?s ?p ?o}"+-------+-------+-------+| s | p | o |+-------+-------+-------+| ex:b | ex:c | ex:d |+-------+-------+-------+
--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en