Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serializeTurtle appears not to use relative URIs #20

Open
melvincarvalho opened this issue May 4, 2016 · 0 comments
Open

serializeTurtle appears not to use relative URIs #20

melvincarvalho opened this issue May 4, 2016 · 0 comments

Comments

@melvincarvalho
Copy link
Member

When giving read access to everyone for a a file it generates:

@prefix n0: <#>.
@prefix n1: <http://www.w3.org/ns/auth/acl#>.
@prefix loc: <https://localhost:8443/>.
@prefix n2: <http://melvincarvalho.com/#>.
@prefix n3: <http://xmlns.com/foaf/0.1/>.

n0:policy0
    a    n1:Authorization;i wonder if setBase() would help here ...
    n1:accessTo
       <https://localhost:8443/checkacl.acl>, loc:checkacl;
    n1:agent
       n2:me;
    n1:mode
       n1:Control, n1:Read, n1:Write.
n0:policy1
    a    n1:Authorization;
    n1:accessTo
       loc:checkacl;
    n1:agentClass
       n3:Agent;
    n1:mode
       n1:Read.

but loc: should be </> as a relative path
and n1: accessTo should be loc:checkacl.acl

at the end it does

     var s = new $rdf.Serializer(g).toN3(g);

i wonder if setBase() would help here ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant