Portability | OverloadedStrings |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | None |
This Module implements a Turtle formatter
for an RDFGraph
value.
REFERENCES:
- "Turtle, Terse RDF Triple Language", W3C Working Draft 09 August 2011 (http://www.w3.org/TR/2011/WD-turtle-20110809/) http://www.w3.org/TR/turtle/
- type NodeGenLookupMap = Map RDFLabel Word32
- formatGraphAsText :: RDFGraph -> Text
- formatGraphAsLazyText :: RDFGraph -> Text
- formatGraphAsBuilder :: RDFGraph -> Builder
- formatGraphIndent :: Builder -> Bool -> RDFGraph -> Builder
- formatGraphDiag :: Builder -> Bool -> RDFGraph -> (Builder, NodeGenLookupMap, Word32, [String])
Documentation
type NodeGenLookupMap = Map RDFLabel Word32Source
Node name generation state information that carries through and is updated by nested formulae.
formatGraphAsText :: RDFGraph -> TextSource
Convert the graph to text.
formatGraphAsLazyText :: RDFGraph -> TextSource
Convert the graph to text.
formatGraphAsBuilder :: RDFGraph -> BuilderSource
Convert the graph to a Builder.
Convert the graph to a builder using the given indentation text.