Skip to main content

Module loss

Module loss 

Source
Expand description

What a typed value did not keep of the document it was read from.

Reading is tolerant: a value that is not the shape its property allows is read as absent, and a property the vocabulary does not define is not read at all, so that one odd property does not cost the whole object. That tolerance is silent unless something says what it cost. This compares the normalised document with the value written back, and lists what the document said that the value does not.

The comparison is by meaning, not spelling: one value and an array of one are the same, a JSON-LD value object is the value it wraps, a number and its decimal string are one number, and a node that is only an id is that IRI. A value the document gave as null, or an empty array, is no value, and nothing is lost by not keeping it.

Structs§

Loss
Something the document said that the value read from it does not.

Functions§

losses
What input says that output does not.