You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Osma Suominen (JIRA)" <ji...@apache.org> on 2015/12/16 14:42:46 UTC

[jira] [Commented] (JENA-1098) Print """ strings in pretty form of Turtle.

    [ 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)