Advanced transforms

Hi,

I’m wondering if there is some way of doing the following kind of transform with framing or something similar:

### FROM ###
{
  "@context": {
    "status": {
      "@id": "http://example.com/status"
    },
    "label": "http://example.com/label"
  },
  "@graph": [
    {
      "@id": "https://example.com/doc1",
      "status": {
        "@id": "http://example.com/valid",
        "label": "Valid status!"
      }
    }
  ]
}
############

### TO ###
{

  "@graph": [
    {
      "@id": "https://example.com/doc1",
      "status": "Valid status!"
    }
  ]
}
##########


Essentially embedding the status label as the actual status.

I realize that this is a one-way transform, but it would be useful for making jsonld more accessible in frontend development.

Regards,
Håvard M. Ottestad

Received on Friday, 18 March 2016 13:20:17 UTC