Skip to content

Comments

Fix BASE resolution for formats that support it#222

Merged
Karolina-Bogacka merged 1 commit intomainfrom
piotr/separate-iri-resolution-and-term-validation
Sep 14, 2025
Merged

Fix BASE resolution for formats that support it#222
Karolina-Bogacka merged 1 commit intomainfrom
piotr/separate-iri-resolution-and-term-validation

Conversation

@Ostrzyciel
Copy link
Member

Previously we lumped together IRI resolution with literal validation in the --validate-terms option, which is not great. For formats like TTL, JSON-LD and RDF/XML supporting BASE resolution is pretty much mandatory so as not to lose information specified in the file, and we were not doing that by default.

This introduces a new option, enabled by default for formats that support BASE, to resolve IRIs properly.

I've also despaghettified the validate-terms option a bit.

This will make parsing of RDF/XML, JSON-LD, and Turtle a bit slower by default, but you can restore previous performance with --resolve-iris=false.

@Karolina-Bogacka Karolina-Bogacka merged commit 0b94e56 into main Sep 14, 2025
8 checks passed
@Karolina-Bogacka Karolina-Bogacka deleted the piotr/separate-iri-resolution-and-term-validation branch September 14, 2025 15:11
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.

2 participants