An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          



Corese-Command-logo



Command-line tool for the Semantic Web of Linked Data

[![License: CECILL-C](https://img.shields.io/badge/License-CECILL--C-blue.svg)](https://cecill.info/licences/Licence_CeCILL-C_V1-en.html) [![Discussions](https://img.shields.io/badge/Discussions-GitHub-blue)](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


Get it on Flathub

```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.


Get it on GitHub


Get it on Maven Central

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`