Closed nichtich closed 2 years ago
Sounds good. In short: All empty array and object values on the top level of any kind of entity will be removed before sending the data, if closedWorldAssumption
is set to false
, right? I was wondering if this could have any negative consequences, but as far as I can tell, there isn't any.
To-Dos:
By default jskos-server uses closed world assumption, e.g. when a concept scheme has no concepts in the server instance, than its field
concepts
is returned with value[]
indicating that no concept exist at all. The jskos-server instance of BARTOC should better be run under open world assumption.Add a configuration option
closedWorldAssumption
with defaulttrue
. If set tofalse
, the methodcleanJSON
should remove all fields with empty array or empty object values. In example 12 of the JSKOS spec this would removealtLabel
andnotation
.