- From: Karol Szczepański via GitHub <sysbot+gh@w3.org>
- Date: Mon, 21 Sep 2020 19:24:03 +0000
- To: public-hydra-logs@w3.org
I was experimenting and my conclusion is: 1. Context that could be published at `http://www.w3.org/ns/hydra/error.context.jsonld` should look like this: ```json { "hydra": "http://www.w3.org/ns/hydra/core#", "type": "@type", "title": "hydra:title", "detail": "hydra:description", "status": "hydra:statusCode", "instance": "hydra:instance" } ``` We shall also add these statements to the vocabulary itself so the resulting RDF is fully transformed into _hydra_ based statements: ```json ..., { "@id": "hydra:instance", "@type": "hydra:Link", "label": "instance", "comment": "Identifies the specific occurrence of the problem.", "domain": "hydra:Error", "vs:term_status": "testing" }, ... ``` Example available [here](https://json-ld.org/playground/#startTab=tab-expanded&json-ld=%7B%22%40context%22%3A%7B%22hydra%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fhydra%2Fcore%23%22%2C%22type%22%3A%22%40type%22%2C%22title%22%3A%22hydra%3Atitle%22%2C%22detail%22%3A%22hydra%3Adescription%22%2C%22status%22%3A%22hydra%3AstatusCode%22%7D%2C%22type%22%3A%22https%3A%2F%2Fexample.com%2Fprobs%2Fout-of-credit%22%2C%22title%22%3A%22You%20do%20not%20have%20enough%20credit.%22%2C%22detail%22%3A%22Your%20current%20balance%20is%2030%2C%20but%20that%20costs%2050.%22%2C%22status%22%3A300%2C%22instance%22%3A%22%2Faccount%2F12345%2Fmsgs%2Fabc%22%2C%22balance%22%3A30%2C%22accounts%22%3A%5B%22%2Faccount%2F12345%22%2C%22%2Faccount%2F67890%22%5D%7D&frame=%7B%22instance%22%3A%7B%22%40default%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fhydra%2Fcore%23test%22%7D%7D&context=%7B%22hydra%22%3A%22http%3A%2F%2Fwww.w3.org%2Fns%2Fhydra%2Fcore%23%22%2C%22type%22%3A%22%40type%22%2C%22title%22%3A%22hydra%3Atitle%22%2C%22detail%22%3A%22hydra%3Adescription%22%2C%22status%22%3A%22hydra%3AstatusCode%22%7D). -- GitHub Notification of comment by alien-mcl Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/178#issuecomment-696321050 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 21 September 2020 19:24:05 UTC