Portability | OverloadedStrings |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Safe Haskell | Safe-Infered |
This Module implements a Notation 3 formatter (see [1], [2] and [3]), for an RDFGraph value.
REFERENCES:
- http://www.w3.org/TeamSubmission/2008/SUBM-n3-20080114/ Notation3 (N3): A readable RDF syntax, W3C Team Submission 14 January 2008
- http://www.w3.org/DesignIssues/Notation3.html Tim Berners-Lee's design issues series notes and description
- http://www.w3.org/2000/10/swap/Primer.html Notation 3 Primer by Sean Palmer
TODO:
- Initial prefix list to include nested formulae; then don't need to update prefix list for these.
- correct output of strings containing unsupported escape
characters (such as
\q
) - more flexible terminator generation for formatted formulae (for inline blank nodes.)
- type NodeGenLookupMap = LookupMap (RDFLabel, Int)
- formatGraphAsText :: RDFGraph -> Text
- formatGraphAsLazyText :: RDFGraph -> Text
- formatGraphAsBuilder :: RDFGraph -> Builder
- formatGraphIndent :: Builder -> Bool -> RDFGraph -> Builder
- formatGraphDiag :: Builder -> Bool -> RDFGraph -> (Builder, NodeGenLookupMap, Int, [String])