Portability | H98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
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)
- formatGraphAsStringNl :: RDFGraph -> String
- formatGraphAsString :: RDFGraph -> String
- formatGraphAsShowS :: RDFGraph -> ShowS
- formatGraphIndent :: String -> Bool -> RDFGraph -> ShowS
- formatGraphDiag :: RDFGraph -> (ShowS, NodeGenLookupMap, Int, [String])
Documentation
type NodeGenLookupMap = LookupMap (RDFLabel, Int)Source
formatGraphDiag :: RDFGraph -> (ShowS, NodeGenLookupMap, Int, [String])Source
Format graph and return additional information