shex icon indicating copy to clipboard operation
shex copied to clipboard

@context and shexc for ShapeResults

Open ericprud opened this issue 8 years ago • 1 comments

It seems like low-haning fruit to have the results be available in RDF. We should at least do the engineering for that so that if we add it later, we have backwards-compatibility.

ericprud avatar Apr 26 '17 07:04 ericprud

This could be done by making ShapeResults be serializable as JSON-LD, something like the following:

{
  "@context": "http://w3.org/ns/shex.jsonld",
  "@type": "ShapeResults",
  "results": {
    "http://example.com/node1": {
      "@type": "ShapeResult",
      "shape": "http://example.org/S",
      "result": true,
      "reason": "Just because"
  }
}

That requires a small update to the ShapeResults Type definition.

Same could be said for ShExError.

gkellogg avatar Apr 26 '17 16:04 gkellogg