https://github.com/corese-stack/corese-command
A command-line tool for converting, querying, and validating RDF data with SPARQL and SHACL using the Corese engine.
https://github.com/corese-stack/corese-command
cli command-line corese rdf rdf-canonicalization rdf-converter rdf-validation shacl sparql
Last synced: 5 months ago
JSON representation
A command-line tool for converting, querying, and validating RDF data with SPARQL and SHACL using the Corese engine.
- Host: GitHub
- URL: https://github.com/corese-stack/corese-command
- Owner: corese-stack
- Created: 2024-09-10T12:41:32.000Z (almost 2 years ago)
- Default Branch: develop
- Last Pushed: 2025-10-22T14:47:36.000Z (8 months ago)
- Last Synced: 2025-10-22T15:40:43.731Z (8 months ago)
- Topics: cli, command-line, corese, rdf, rdf-canonicalization, rdf-converter, rdf-validation, shacl, sparql
- Language: Java
- Homepage: https://corese-stack.github.io/corese-command/
- Size: 82.1 MB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Command-line tool for the Semantic Web of Linked Data
[](https://cecill.info/licences/Licence_CeCILL-C_V1-en.html) [](https://github.com/orgs/corese-stack/discussions)
## Features
- Convert RDF data formats (Turtle, RDF/XML, N-Triples, etc.)
- Execute SPARQL queries on local or remote files
- Query SPARQL endpoints
- Validate RDF graphs using SHACL
- Canonicalize RDF data
## Getting Started
Install Corese-Command using your preferred platform:
### Linux
```shell
curl -fsSL https://raw.githubusercontent.com/corese-stack/corese-command/main/packaging/scripts/install-linux.sh -o /tmp/corese.sh && bash /tmp/corese.sh
```
### macOS
```shell
curl -fsSL https://raw.githubusercontent.com/corese-stack/corese-command/main/packaging/scripts/install-macos.sh -o /tmp/corese.sh && bash /tmp/corese.sh
```
### Windows (PowerShell)
```powershell
iwr -useb https://raw.githubusercontent.com/corese-stack/corese-command/main/packaging/scripts/install-windows.ps1 | iex
```
### Manual Installation (cross-platform)
You can also use Corese-Command as a standalone `.jar` file or add it to a Java project via Maven.
> Requires Java 21 or higher.
Run manually with:
```shell
java -jar corese-command-standalone.jar
```
## Example Usage
```shell
# Run a simple SPARQL query on an RDF file
corese query -q 'SELECT * WHERE {?s ?p ?o}' -i data.ttl
```
```shell
# Convert RDF from Turtle to RDF/XML
corese convert -i data.ttl -of rdfxml
```
```shell
# Validate RDF data with SHACL shapes
corese validate -i data.ttl -s shapes.ttl
```
```shell
# Canonicalize RDF using RDFC 1.0 with SHA-256
corese canonicalize -i data.ttl -of rdfc-1.0-sha256
```
```shell
# Query a SPARQL endpoint
corese query-endpoint -q 'SELECT * WHERE {?s ?p ?o}' -e "https://dbpedia.org/sparql"
```
## Documentation
- [Getting Started Guide](https://corese-stack.github.io/corese-command/v4.6.2/user_guide.html)
## Contributing
We welcome contributions! Here’s how to get involved:
- [GitHub Discussions](https://github.com/orgs/corese-stack/discussions)
- [Issue Tracker](https://github.com/corese-stack/corese-command/issues)
- [Pull Requests](https://github.com/corese-stack/corese-command/pulls)
## Useful Links
- [Corese Website](https://corese-stack.github.io/corese-command/)
- Mailing List:
- Subscribe: Send an email to with the subject: `subscribe`