Add CLI tools for SPARQL parsers, generators, and algebra transformers#106
Draft
Add CLI tools for SPARQL parsers, generators, and algebra transformers#106
Conversation
Copilot
AI
changed the title
[WIP] Add CLI for parsers, transformers, and generators
Add CLI tools for SPARQL parsers, generators, and algebra transformers
Feb 13, 2026
jitsedesmet
reviewed
Feb 16, 2026
packages/cli-utils/lib/io.ts
Outdated
Comment on lines
+31
to
+39
| /** | ||
| * Format output as JSON with proper indentation. | ||
| * @param data - The data to format | ||
| * @param pretty - Whether to pretty print (default: true) | ||
| * @returns Formatted JSON string | ||
| */ | ||
| export function formatJson(data: any, pretty = true): string { | ||
| return JSON.stringify(data, null, pretty ? 2 : undefined); | ||
| } |
jitsedesmet
requested changes
Feb 16, 2026
Member
jitsedesmet
left a comment
There was a problem hiding this comment.
@copilot Overall I believe the current approach with the util package does not cut it since the package does not really do anything. Furthermore, you should sync this branch with main. I have provided some more reviews. I think this is version is a starting point but requires more attention. Specifically to how we can generalize enough for the sparql based CLI components.
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot stopped work on behalf of
jitsedesmet due to an error
March 26, 2026 12:26
Copilot stopped work on behalf of
jitsedesmet due to an error
March 26, 2026 12:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan: SPARQL 1.1 CLI and System Service Implementation
Starting from clean main branch to implement:
Phase 1: CLI Utilities Package
@traqula/cli-utilspackagePhase 2: SPARQL 1.1 Parser CLI
@traqula/parser-sparql-1-1bin/directory with executable--help,--rule,--base,--prefix,--skip-validationPhase 3: SPARQL 1.1 Generator CLI
@traqula/generator-sparql-1-1Phase 4: SPARQL 1.1 Algebra CLI
@traqula/algebra-sparql-1-1--to-algebra(SPARQL/AST → Algebra)--to-ast(Algebra → AST)--to-sparql(Algebra → SPARQL)--quads,--blank-to-variablePhase 5: System Service Implementation
/parse- Parse SPARQL to AST/generate- Generate SPARQL from AST/algebra/to-algebra- Convert to algebra/algebra/to-ast- Convert from algebra/algebra/to-sparql- Convert algebra to SPARQLPhase 6: Documentation & Testing
This will enable efficient cross-language integration by reusing parser instances across invocations.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.