shexSpec / shex

ShEx language issues, including new features for e.g. ShEx2.1
25 stars 8 forks source link

@context and shexc for ShapeResults #60

Open ericprud opened 7 years ago

ericprud commented 7 years ago

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.

gkellogg commented 7 years ago

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.