Wolfram Language

Convert Files between RDF Formats

RDF (the Resource Description Framework) defines various serializations, each with its particular advantages for different use cases.

FileConvert allows easy conversion between any of those formats.

Assume you have a file "fruits.nt" in the "NTriples" format. This is a line-based format, which means that one triple ("statement" in RDF) appears per line. This makes it useful for certain applications that rely on simple processing.

To save space and increase readability, convert the file into the "Turtle" format, which, among other abbreviations, groups statements about the same "subject".

For some applications you might prefer a format based on "JSON", so convert to "JSONLD".

Finally, "RDFXML" is a format based on "XML".

Related Examples

de es fr ja ko pt-br zh