Skip to content

Provide default language in Croissant JSON-LD context - #361

Merged
amercader merged 1 commit into
masterfrom
fix-language-croissant
Sep 24, 2025
Merged

Provide default language in Croissant JSON-LD context#361
amercader merged 1 commit into
masterfrom
fix-language-croissant

Conversation

@amercader

Copy link
Copy Markdown
Member

This was to fixed failures caused by the new version of the croissant package (introduced by mlcommons/croissant#932), but it seems like a good thing to do anyway.

Sadly this means that the output generated from rdflib changes, from this:

"description": "Test description"

to this:

"description": {
    "@value": "Test description"
}

While this is a bit less human readable is perfectly valid JSON-LD, and it will probably align better with multilingual metadata.

This was to fixed failures caused by the new version of the croissant
package (introduced by mlcommons/croissant#932),
but it seems like a good thing to do anyway.

Sadly this means that the output generated from rdflib changes, from
this:

```
"description": "Test description"
```

to this:

```
"description": {
    "@value": "Test description"
}
```

While this is a bit less human readable is perfectly valid JSON-LD, and
it will probably align better with multilingual metadata.
@amercader
amercader merged commit 7806786 into master Sep 24, 2025
6 checks passed
@amercader
amercader deleted the fix-language-croissant branch September 24, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant