diff --git a/CHANGELOG.md b/CHANGELOG.md index a58d438e3..60b28a87e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Add SPARQL JSON (`srj`) output format for results in [`query`] + ## [1.9.11] - 2026-10-01 ### Added diff --git a/robot-core/src/main/java/org/obolibrary/robot/QueryOperation.java b/robot-core/src/main/java/org/obolibrary/robot/QueryOperation.java index 6c0a888e7..f0122ffba 100644 --- a/robot-core/src/main/java/org/obolibrary/robot/QueryOperation.java +++ b/robot-core/src/main/java/org/obolibrary/robot/QueryOperation.java @@ -539,6 +539,9 @@ public static Lang getFormatLang(String formatName) { case "sxml": format = ResultSetLang.SPARQLResultSetXML; break; + case "srj": + format = ResultSetLang.SPARQLResultSetJSON; + break; default: format = null; }