SERDI(1)

NAME
serdi - Read and write RDF syntax

SYNOPSIS
serdi [OPTION]... INPUT...

OPTIONS

-I  Set input base URI.

-V  Validate inputs. All necessary data, including schemas, must be passed as inputs. Output will only be written if validation succeeds. Combine with -o empty to suppress output and only show validation errors.

-a  Write ASCII output if possible.

-b  Fast bulk output for large serialisations.

-c PREFIX
    Chop PREFIX from matching blank node IDs.

-e  Eat input one character at a time, rather than a page at a time which is the default. This is useful when reading from a pipe since output will be generated immediately as input arrives, rather than waiting until an entire page of input has arrived. With this option serdi uses one page less memory, but will likely be significantly slower.

-f  Keep full URIs in input (don't qualify with namespace prefixes or make URIs relative).

-h  Print the command line options.

-i SYNTAX
    Read input as SYNTAX. Valid values (case-insensitive): “turtle”, “ntriples”, “trig”, “nquads”.

-k BYTES
    Parser stack size.

-l  Lax (non-strict) parsing.

-m  Build and serialise a model. This loads the complete input data into memory before writing the output. This will normalize statement order, at the cost of performance and memory consumption.

-n  Normalise literals. This normalises supported XSD literals to their canonical form. Normalisation is conservative in that malformed literals are passed through unmodified. Supported types: decimal and all its subtypes, boolean, float, and double. Note that this is not a validator, and it will not, for example, guarantee that a nonNegativeInteger is actually non-negative.

-o SYNTAX
    Write output as SYNTAX. Valid values (case-insensitive): “turtle”, “ntriples”, “trig”, “nquads”, “empty”. When “empty” is given, output is suppressed, so only errors will be printed.

-p PREFIX
    Add PREFIX to blank node IDs.

-q  Suppress all output except data.

-r ROOT_URI
    Keep relative URIs within ROOT_URI.

-S  Stream model quickly without inlining. This only has an effect when a model is used, and disables searching and statement reordering for pretty printing. Statements will be written in simple sorted order, which is faster, but may result in less readable output in Turtle or TriG.

-s INPUT
    Parse INPUT as a string.

-t  Write terser output without newlines.

-v  Display version information and exit.

-w FILENAME
    Write output to the given FILENAME instead of stdout.

-x  Support parsing variable nodes. Variables can be written in SPARQL style, for example “?var” or “$var”.

AUTHOR
Serdi was written by David Robillard <d@drobilla.net>

COPYRIGHT
Copyright © 2011-2020 David Robillard.
License: <http://www.opensource.org/licenses/isc>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
<http://drobilla.net/software/serd>