From 1fd33e0a85bdf6bcc4f8138940462c4a4a391175 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Oct 2019 23:26:41 +0200 Subject: Add support for converting literals to canonical form --- doc/serdi.1 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'doc/serdi.1') diff --git a/doc/serdi.1 b/doc/serdi.1 index 888dab03..fcd58535 100644 --- a/doc/serdi.1 +++ b/doc/serdi.1 @@ -6,7 +6,7 @@ .Nd read and write RDF syntax .Sh SYNOPSIS .Nm serdi -.Op Fl abefhlqv +.Op Fl Cabefhlqv .Op Fl I Ar base .Op Fl c Ar prefix .Op Fl i Ar syntax @@ -43,6 +43,23 @@ the URI of the file is automatically used as the base URI. This option can be used to override that, or to provide a base URI for input from stdin or a string. .Pp +.It Fl C +Convert literals to canonical form. +Literals with supported XSD datatypes will be parsed and rewritten canonically. +All numeric datatypes are supported, as well as +.Vt boolean , +.Vt duration , +.Vt datetime , +.Vt time , +.Vt hexBinary , +and +.Vt base64Binary . +.Pp +.It Fl 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. +.Pp .It Fl V Validate inputs. All necessary data, including schemas, must be passed as inputs. -- cgit v1.2.1