Link Search Menu Expand Document
Start for Free

stardog file obfuscate


Obfuscates the contents of the given RDF file


stardog file obfuscate [ {-c | --config} <obfuscation configuration> ] [ {-f | --format} <rdf format> ] [--] <inputFile>


Name, shorthand Description
-c <obfuscation configuration>, --config <obfuscation configuration> Configuration file for obfuscation
-f <rdf format>, --format <rdf format> RDF Format for the output. The supported formats are NTRIPLES, RDF/XML, TURTLE, PRETTY_TURTLE, TRIG, N3, NQUADS, JSONLD. By default output files will have the same format as the first input file.
-- This option can be used to separate command-line options from the list of argument(s). (Useful when an argument might be mistaken for a command-line option)
<inputFile> Input file to obfuscate.


Obfuscates the contents of the file by replacing all URIs, bnodes, and string literals using a message digest algorithm. Non-string typed literals (integers, floats, dates, etc.) are left unchanged. The obfuscation is guided by a configuration file. Configurations can specify which URIs and strings will be obfuscated by defining inclusion and exclusion filters.


Obfuscate input file.

    $ stardog file obfuscate input.rdf

Obfuscate input file using a custom configuration and output in TURTLE format:

    $ stardog file obfuscate --config my_config.ttl --format turtle input.rdf