kbss-cvut / jb4jsonld

JSON-LD serialization and deserialization for Java REST services.
GNU Lesser General Public License v3.0
10 stars 3 forks source link

MultilingualString values without language tag are not supported #36

Closed ledsoft closed 2 years ago

ledsoft commented 2 years ago

Currently, MultilingualString values without language (represented by a null language tag value) are serialized as

{
  "null": "Language-less value"
}

This is not correct w.r.t. the JSON-LD 1.1 specification and while jsonld-java, which we are using for processing JSON-LD, works under JSON-LD 1.0, this causes issues with integration with client-side libraries like jsonld.js. The aforementioned input should be serialized as:

{
  "@none": "Language-less value"
}
ledsoft commented 2 years ago

Fixed in 0.8.9.