prttl 0.4.0

Pretty-printer for RDF Turtle
Documentation
@base <http://example.org/> . # test
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@prefix ex: <http://example.net/> . # Prefix

# SPDX-FileCopyrightText: Helsing GmbH
#
# SPDX-License-Identifier: Apache-2.0

# Plain
#Plain 2

#  Plain 3

<s> a ex:Foo ;
    <p> <http://example.com/o\u00E9> , ex:\-v\-\_v\.\. , "foo\u00E9\t\n\r'\"\u0022" , 'bar\U000000E9\'"' , "bar"@en-US , "test"^^<http://example.com/dt> , ( +01 +1.0 1.0e0 ) . # Foo
# Comment
[ ex:p ex:o , ex:o2 ; ex:p3 ex:o4 ; ex:p2 ex:o3 ; ex:p4 [ ex:p5 ex:o5 ] ] rdf:type ex:o6 . # Bar

# BASE  # Base
#     <http://example.org/test.ttl>
# @prefix ex: </new/> . # Prefix new

# Literal normalization
<s> <p> """ foo
    bar"\n\tbaz\"\"\"
\"""" .

<s> <p> '''foo'"bar''' .

<s> <p> "true"^^xsd:boolean , "false"^^<http://www.w3.org/2001/XMLSchema#boolean> , "+12"^^xsd:integer , "1.1"^^xsd:decimal  , "1.2e2"^^xsd:double .

( <s> <s2> <s3> ) ex:p ex:o .