CLI reference

The rudof command line tool has one subcommand per task:

rudof [OPTIONS] <COMMAND> [ARGS]

Run rudof --help for the list of commands, and rudof <command> --help for the options of one command.

Global options

OptionDescription
-d, --debugIncrease the logging verbosity. Repeat it for more detail (-dd).
-h, --helpPrint the help.
-V, --versionPrint the version.

Common command options

Most commands accept these options:

OptionDescription
-c, --config-file <FILE>A configuration file.
-o, --output-file <FILE>Write the result to a file instead of the terminal.
--force-overwriteOverwrite the output file if it exists.
-r, --result-format <FORMAT>The format of the result. The values depend on the command.
--backend <BACKEND>, -e, --endpoint <URL_OR_NAME>Where the RDF data is: in memory (default), QLever or a SPARQL endpoint. See RDF backends.

Input arguments accept a file path, a URL, or - for stdin.

Commands

Session and setup

CommandDescription
configShow the configuration that rudof uses, as TOML.
shellStart an interactive session.
mcpStart rudof as an MCP (Model Context Protocol) server.

RDF data and queries

CommandDescription
dataShow information about RDF data, convert it, or draw it.
nodeShow the neighborhood of a node in an RDF graph.
queryRun a SPARQL query.
sparqlShow information about a SPARQL query.
serviceShow the description of a SPARQL service.

ShEx

CommandDescription
shexShow information about a ShEx schema.
shex-checkMake sure that a ShEx schema is well-formed.
shex-pathSelect elements of a ShEx schema with a ShExPath.
shapemapShow information about a ShapeMap.
shex-validateValidate RDF data with a ShEx schema.
materializeBuild an RDF graph from a ShEx schema with Map semantic actions.

SHACL

CommandDescription
shaclShow information about SHACL shapes.
shacl-validateValidate RDF data with SHACL shapes.
validateValidate RDF data with ShEx or SHACL.

Property graphs

CommandDescription
pgschemaShow information about a PG-Schema.
pgschema-validateValidate property graph data with a PG-Schema.
connectConnect to (or create) a LadybugDB property graph database.
loadLoad RDF data into a LadybugDB database.
ddlGenerate property graph DDL (Cypher or GQL) from RDF data.

Schemas and data models

CommandDescription
convertConvert between data modeling languages, or to UML, HTML and SPARQL.
compareCompare two schemas, or two RDF graphs.
dctapShow information about a DCTAP profile.
rdf-configShow information about an rdf-config document.
generateGenerate synthetic data from ShEx, SHACL or PG-Schema schemas.

Shell completions

rudof-completions generates completion scripts for bash, zsh, fish, PowerShell and other shells. See Shell completions.