This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Support JSON-LD ACL docs #45
Comments
michielbdejong
added
bug
Something isn't working
LDP
Related to the LDP parts
WAC
Related to the WAC parts
and removed
LDP
Related to the LDP parts
labels
Apr 30, 2019
Blocked by solid/web-access-control-spec#45 but it may work if i use rdflib.js instead of rdf-ext. |
Most applications don't have to fetch the vocab, could you please share example of you ACL in JSON-LD? I would like to take a look at your |
This is what I was testing with: {
"@context": "http://www.w3.org/ns/auth/acl#",
"@type": "http://www.w3.org/ns/auth/acl#Authorization",
"agent": [
"https://michielbdejong.inrupt.net/profile/card#me",
"mailto:[email protected]"
],
"accessTo": "/",
"default": "/",
"mode": [
"http://www.w3.org/ns/auth/acl#Read",
"http://www.w3.org/ns/auth/acl#Write",
"http://www.w3.org/ns/auth/acl#Control"
]
} |
Please try {
"@context": {
"wac": "http://www.w3.org/ns/auth/acl#",
"agent": {"@id": "wac:agent", "@type": "@id"},
"accessTo": {"@id": "wac:accessTo"},
"default": {"@id": "wac:default"},
"mode": {"@id": "wac:mode", "@type": "@vocab"},
"Read": {"@id": "wac:Read"},
"Write": {"@id": "wac:Write"},
"Control": {"@id": "wac:Control"}
},
"@type": "http://www.w3.org/ns/auth/acl#Authorization",
"agent": [
"https://michielbdejong.inrupt.net/profile/card#me",
"mailto:[email protected]"
],
"accessTo": "/",
"default": "/",
"mode": [
"Read",
"Write",
"Control"
]
} see N-Triples in JSON-LD playground One can't just use vocab namespace as JSON-LD |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: