Skip to content

GH-2131: Add quad support to rdfdiff - #4361

Open
saahmadnejad wants to merge 1 commit into
apache:mainfrom
saahmadnejad:rdfdiff-quad-support-gh2131
Open

saahmadnejad wants to merge 1 commit into
apache:mainfrom
saahmadnejad:rdfdiff-quad-support-gh2131

Conversation

@saahmadnejad

@saahmadnejad saahmadnejad commented Oct 28, 2026 •

Copy link
Copy Markdown

Add --quads flag to rdfdiff to support dataset (quad) level diffing. When --quads is specified, the tool reads two datasets (supporting formats such as N-Quads and TriG), compares them for isomorphism using IsoMatcher, and outputs a quad-level diff.

  • Add --quads command-line flag (backward compatible with triple mode)
  • Support dataset isomorphism checking with IsoMatcher
  • Quad closure algorithm across graph, subject, and object positions
  • Fix blank node handling in both quad and triple modes
  • Add rdfdiff.exec() returning exit codes without calling System.exit
  • Add JUnit tests in Test_rdfdiff and test datasets in testing/diff/

GitHub issue resolved #

Pull request Description:


  • Tests are included.
  • Documentation change and updates are provided for the Apache Jena website
  • Commits have been squashed to remove intermediate development commit messages.
  • Key commit messages start with the issue number (GH-xxxx)

By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.


See the Apache Jena "Contributing" guide.

Add --quads flag to rdfdiff to support dataset (quad) level diffing.
When --quads is specified, the tool reads two datasets (supporting
formats such as N-Quads and TriG), compares them for isomorphism
using IsoMatcher, and outputs a quad-level diff.

- Add --quads command-line flag (backward compatible with triple mode)
- Support dataset isomorphism checking with IsoMatcher
- Quad closure algorithm across graph, subject, and object positions
- Fix blank node handling in both quad and triple modes
- Add rdfdiff.exec() returning exit codes without calling System.exit
- Add JUnit tests in Test_rdfdiff and test datasets in testing/diff/
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