[
https://issues.apache.org/jira/browse/JENA-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15059980#comment-15059980
]
Osma Suominen commented on JENA-1098:
-------------------------------------
+1
Python rdflib uses triple quotes if the literal contains a newline.
See https://github.com/RDFLib/rdflib/blob/master/rdflib/term.py#L1100
> Print """ strings in pretty form of Turtle.
> -------------------------------------------
>
> Key: JENA-1098
> URL: https://issues.apache.org/jira/browse/JENA-1098
> Project: Apache Jena
> Issue Type: Wish
> Components: RIOT
> Reporter: Andy Seaborne
> Priority: Minor
>
> The Turtle pretty writer could print long strings using """.
> This can be done using a specialist (subclass of) {{NodeFormatterTTL}} in the
> pretty writer {{TurtleShell}}. This will cover TriG as well.
> The simple string, @ and ^^ forms need to be considered.
> Other turtle forms should not be affected - they are fro convenient text text
> processing and the all-on-one-line effect is desirable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)