3lbits / CIM4NoUtility

CIM for the Norwegian Power Utility
Creative Commons Attribution Share Alike 4.0 International
20 stars 7 forks source link

JSON-LD: streaming or canonicalization? #332

Open VladimirAlexiev opened 6 months ago

VladimirAlexiev commented 6 months ago

@Sveino We need to decide whether we want our JSON-LD to have one of these two desirable features:

I vote for streaming because CIM Differential models express the delta between two models explicitly. c14n does not help in computing the delta of two models, and is not needed for comparison: the delta expresses richer information than "two models are different".

ericstephan commented 6 months ago

Great point about the benefits of streaming versus canonicalization. The priority has always seemed to be integrity and change detection. Are you aware of use cases where performance is an issue in the energy sector?

VladimirAlexiev commented 6 months ago

AFAIK, Nordic44 comes to 850Mb RDF/XML. I guess the JSON-LD can be of a similar size. To answer this question, we need to define what is acceptable performance. Eg is 10s parsing time acceptable or not?