---
name: "oxigraph-convert"
section: "1"
platform: "linux"
package: "oxigraph"
version: "0.4.9-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/oxigraph-convert"
---

# oxigraph-convert(1)

Convert a RDF serialization from one format to an other

## NAME

oxigraph-convert - Convert a RDF serialization from one format to an other

## SYNOPSIS

**oxigraph convert** \[**-f**\|**--from-file**\] \[**--from-format**\] \[**--from-base**\] \[**-t**\|**--to-file**\] \[**--to-format**\] \[**--to-base**\] \[**--lenient**\] \[**--from-graph**\] \[**--from-default-graph**\] \[**--to-graph**\] \[**-h**\|**--help**\]

## DESCRIPTION

Convert a RDF serialization from one format to an other

## OPTIONS

- **-f**, **--from-file**=*FROM\_FILE*

  File to convert from

  If no file is given, stdin is read.

- **--from-format**=*FROM\_FORMAT*

  The format of the file(s) to convert from

  It can be an extension like "nt" or a MIME type like "application/n-triples".

  By default the format is guessed from the input file extension.

- **--from-base**=*FROM\_BASE*

  Base IRI of the file to read

- **-t**, **--to-file**=*TO\_FILE*

  File to convert to

  If no file is given, stdout is written.

- **--to-format**=*TO\_FORMAT*

  The format of the file(s) to convert to

  It can be an extension like "nt" or a MIME type like "application/n-triples".

  By default the format is guessed from the target file extension.

- **--to-base**=*TO\_BASE*

  Base IRI of the file to write

- **--lenient**

  Attempt to keep converting even if the data file is invalid

- **--from-graph**=*FROM\_GRAPH*

  Only load the given named graph from the input file

  By default all graphs are loaded.

- **--from-default-graph**

  Only load the default graph from the input file

- **--to-graph**=*TO\_GRAPH*

  Name of the graph to map the default graph to

  By default the default graph is used.

- **-h**, **--help**

  Print help (see a summary with '-h')
