Skip to content

Could not create a Policy #88

Answered by ndr-brt
Akshay-a-j asked this question in Q&A
Discussion options

You must be logged in to vote

please try to add the odrl.jsonld file as context:

{
  "@context": {
    "edc": "https://w3id.org/edc/v0.0.1/ns/",
    "odrl": "http://www.w3.org/ns/odrl/2/"
  },
  "@id": "cPolicy",
  "policy": {
    "@context": "http://www.w3.org/ns/odrl.jsonld",
    "@type": "set",
    "permission": [
      {
        "action": "USE",
        "constraint": [
          {
            "leftOperand": "ids:absoluteSpatialPosition",
            "operator": "EQ",
            "rightOperand": "eu"
          }]
      }
    ],
    "prohibition": [],
    "obligation": []
  }
}

(PS: please use triple backtick block to monospaced code, otherwise it will become unreadable ;) )

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ndr-brt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants