RDF Dumps
Dumps of the data stored in Tentris can be created using the dump subcommand.
Examples
Creating a full database dump as N-Quads
tentris dump > database-contents.nq
Dumping only a single graph
By default, all graphs are dumped. To dump a specific graph, the following command can be used.
tentris dump --graph "https://example.com#my-graph" > example-graph.nt
Note: Use
--graph "default"to dump only the default graph.
Single graphs can also be dumped as quad formats (N-Quads, TriG)
tentris dump --graph "https://example.com#my-graph" > example-graph.nq
Data Formats
The format is automatically detected based on the provided file's extension (.nt, .ttl, .nq, .trig), but it can also be manually specified.
The available formats are N-Triples, Turtle, N-Quads, and TriG.
Options
--format <FORMAT>: Manually specifies the format of the RDF file.tentris dump --format tri-g > ./graph.trig--graph <GRAPH_IRI>: Dump only the specified graph.tentris dump --graph "http://example.com#graph" > ./graph.nt