Skip to content

GH-93 Allow non streaming output formats in rdf from-jelly#148

Merged
niegrzybkowski merged 12 commits intomainfrom
GH-93/rdf-from-jelly-allow-non-streaming-output-formats
Jul 8, 2025
Merged

GH-93 Allow non streaming output formats in rdf from-jelly#148
niegrzybkowski merged 12 commits intomainfrom
GH-93/rdf-from-jelly-allow-non-streaming-output-formats

Conversation

@niegrzybkowski
Copy link
Contributor

Closes #93

I add StreamRdfBatchSink which implements StreamRDF. The class builds a Jena Model while receiving events, and when finishing, serializes the model into a selected format and streams it out. This is plugged into the from-jelly command with a new format RdfFormat.Jena.BatchWriteable, and by moving the writer initialization out of jellyToLang to the call-sites. I add tests for checking graph isomorphism for both rdfxml and jsonld, and remove the test for the non-streaming format error, as there are no longer any non-writeable formats defined.

@niegrzybkowski niegrzybkowski self-assigned this Jul 7, 2025
@niegrzybkowski niegrzybkowski linked an issue Jul 7, 2025 that may be closed by this pull request
@niegrzybkowski niegrzybkowski requested a review from Ostrzyciel July 7, 2025 11:51
Copy link
Member

@Ostrzyciel Ostrzyciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also:

  • document in command help that the conversion is done frame-by-frame (not for the entire stream by default)
  • introduce an option to write the entire stream as one Dataset/Model (one batch)

@niegrzybkowski niegrzybkowski requested a review from Ostrzyciel July 8, 2025 11:35
Copy link
Member

@Ostrzyciel Ostrzyciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@niegrzybkowski niegrzybkowski merged commit 844a26b into main Jul 8, 2025
7 checks passed
@niegrzybkowski niegrzybkowski deleted the GH-93/rdf-from-jelly-allow-non-streaming-output-formats branch July 8, 2025 11:38
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.

rdf from-jelly: allow non-streaming output formats

2 participants