JSON-LD macros

Hi everyone,

Assume I have:

"spatial": { "@type": "dct:Location", "geometry": "POLYGON((...))" }

Which is dictated by the ontology I need to use. Ideally though, I'd 
like to have:

"spatial": "POLYGON((...))"

and hide the rest somewhere but in such a way that it can be reconstructed.

I know that this is not possible with vanilla JSON-LD, but it may be 
related to the functionality of 
https://github.com/antoniogarrote/json-ld-macros which a client would 
have to use to reintroduce the inner nodes as given above. As a first 
question, is that right?

I have a feeling that this is not an uncommon use case. I had the idea 
of actually putting the transformation of JSON-LD Macros somehow into an 
extension section of the @context which certain clients that know the 
extension can use, and all others would fail. Bad idea I guess, for 
interoperability. Except it gets a popular extension and is implemented 
everywhere. How are your thoughts in general on this issue?

Cheers
Maik

Received on Friday, 5 June 2015 10:46:51 UTC