Skip to content

Make qlever get-data for UniProt fail on errors and convert ChEBI and Rhea - #359

Open
hannahbast wants to merge 1 commit into
mainfrom
fix-uniprot-qleverfile
Open

hannahbast wants to merge 1 commit into
mainfrom
fix-uniprot-qleverfile

Conversation

@hannahbast

Copy link
Copy Markdown
Collaborator

So far, qlever get-data for UniProt could download all 1.5 TB of RDF/XML and then fail every conversion to Turtle without reporting an error. The conversion runs rdfxml from Apache Jena for each file in parallel, and its errors only went to the .stderr file next to each output. When rdfxml was not on the PATH, all 552 conversions failed and left empty .ttl.gz files, while get-data finished as if it had succeeded. With this change, get-data first checks that all required commands exist and that rdfxml runs. A failed conversion or download now makes get-data fail, and running get-data again continues an interrupted download.

The conversion also never handled the ChEBI and Rhea files, which are compressed with gzip instead of xz. So chebi.ttl.gz and rhea.ttl.gz were missing, although MULTI_INPUT_JSON uses them. With recent Java versions, Rhea also fails because its RDF/XML exceeds the default XML entity size limit of the JDK, so the conversion now lifts these limits for rdfxml. In addition, DATE is updated to the current release, and the unused raptor2-utils is dropped from the install instructions.

…nd Rhea

So far, `qlever get-data` for UniProt could download all 1.5 TB of RDF/XML and then fail every conversion to Turtle without reporting an error. The conversion runs `rdfxml` from Apache Jena for each file in parallel, and its errors only went to the `.stderr` file next to each output. When `rdfxml` was not on the `PATH`, all 552 conversions failed and left empty `.ttl.gz` files, while `get-data` finished as if it had succeeded. With this change, `get-data` first checks that all required commands exist and that `rdfxml` runs. A failed conversion or download now makes `get-data` fail, and running `get-data` again continues an interrupted download.

The conversion also never handled the ChEBI and Rhea files, which are compressed with `gzip` instead of `xz`. So `chebi.ttl.gz` and `rhea.ttl.gz` were missing, although `MULTI_INPUT_JSON` uses them. With recent Java versions, Rhea also fails because its RDF/XML exceeds the default XML entity size limit of the JDK, so the conversion now lifts these limits for `rdfxml`. In addition, `DATE` is updated to the current release, and the unused `raptor2-utils` is dropped from the install instructions.
Copilot AI balanced review requested due to automatic review settings October 25, 2026 22:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
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