Skip to content

fix(rdfa): align list context lifecycle with RDFa Core 1.1 specification - #628

Merged
remiceres merged 1 commit into
feature/corese-nextfrom
feature/rdfa-core-1.1-conformance
Oct 2, 2026
Merged

remiceres merged 1 commit into
feature/corese-nextfrom
feature/rdfa-core-1.1-conformance

Conversation

@remiceres

Copy link
Copy Markdown
Contributor

Summary

Aligns Corese's RDFa 1.1 processor with the normative RDFa Core 1.1 specification:

  • Step 8 list context: Compares new subject against the inherited parent object (rather than parent subject) to preserve list mappings when subject matches the relation target.
  • Step 13/14 descendants & relations: Isolates child list mappings for relation descendants and emits list triples cleanly once descendants contribute.
  • Empty prefix declarations: Prevents empty prefix declarations (e.g. @prefix="") from overriding default vocabulary.
  • Regression testing: Adds regression tests in RDFaParserTest covering list scoping, prefix overrides, and W3C conformance scenarios.

Validation

  • All unit tests in RDFaParserTest pass.
  • 0 SonarLint issues on modified production files.

- Fix step 8 to compare new subject against parent object instead of parent subject
- Isolate child list mappings for relation descendants in step 13
- Emit list triples once descendants contribute in step 14
- Prevent empty prefix declarations from overriding default vocabulary
- Add regression tests covering list scoping and reproducer scenarios
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Overall Project 55.8% 🍏
Files changed 98.47% 🍏

File Coverage
RDFaProcessingContext.java 71.56% 🍏
RDFaParser.java 71.47% -0.11% 🍏

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

Test Results

  448 files    448 suites   22s ⏱️
3 181 tests 3 181 ✅ 0 💤 0 ❌
3 200 runs  3 200 ✅ 0 💤 0 ❌

Results for commit 40dd03f.

@remiceres
remiceres merged commit 6b6fd8d into feature/corese-next Oct 2, 2026
2 checks passed
@remiceres
remiceres deleted the feature/rdfa-core-1.1-conformance branch October 2, 2026 14:02
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