swish-0.10.0.2: A semantic web toolkit.

Copyright(c) 2003 Graham Klyne 2009 Vasili I Galchin
2011 2012 2013 2014 2018 2019 Douglas Burke
LicenseGPL V2
MaintainerDouglas Burke
Stabilityexperimental
PortabilityCPP, OverloadedStrings
Safe HaskellNone
LanguageHaskell98

Swish.RDF.Formatter.Turtle

Description

This Module implements a Turtle formatter for an RDFGraph value.

REFERENCES:

NOTES:

Synopsis

Documentation

type NodeGenLookupMap = Map RDFLabel Word32 Source #

Node name generation state information that carries through and is updated by nested formulae.

formatGraphAsText :: RDFGraph -> Text Source #

Convert the graph to text.

formatGraphAsLazyText :: RDFGraph -> Text Source #

Convert the graph to text.

formatGraphAsBuilder :: RDFGraph -> Builder Source #

Convert the graph to a Builder.

formatGraphIndent Source #

Arguments

:: Builder

indentation text

-> Bool

are prefixes to be generated?

-> RDFGraph

graph

-> Builder 

Convert the graph to a builder using the given indentation text.

formatGraphDiag Source #

Arguments

:: Builder

indentation

-> Bool

are prefixes to be generated?

-> RDFGraph 
-> (Builder, NodeGenLookupMap, Word32, [String]) 

Format graph and return additional information.