Cayley
Search…
Convert Linked Data files
Linked Data has multiple representations. The Cayley CLI includes a utility to convert Linked Data files from one format to another.

Convert from one format to another

1
$ cayley convert -i data.jsonld -o data.nquads
Copied!
-i is the input file to be converted. In this example it is a JSON-LD file named data.jsonld.
-o is the file to be created in the desired format. In this example it is a N-Quads file named data.nquads.

Explicitly specify formats

The formats of the input and output files are detected automatically by the file extension. In case a specific format should be used for input or output use --load_format and --dump_format respectively.
1
$ cayley convet -i data.jsonld -o data --dump_format pquads
Copied!
--dump_format is set to the P-Quads format, a binary format used internally in Cayley.
Last modified 1yr ago