swish-0.6.1.1: A semantic web toolkit.

PortabilityOverloadedStrings
Stabilityexperimental
MaintainerDouglas Burke

Swish.RDF.N3Formatter

Description

This Module implements a Notation 3 formatter (see [1], [2] and [3]), for an RDFGraph value.

REFERENCES:

  1. http://www.w3.org/TeamSubmission/2008/SUBM-n3-20080114/ Notation3 (N3): A readable RDF syntax, W3C Team Submission 14 January 2008
  2. http://www.w3.org/DesignIssues/Notation3.html Tim Berners-Lee's design issues series notes and description
  3. 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.)

Synopsis

Documentation

formatGraphDiagSource

Arguments

:: Builder

indentation

-> Bool

are prefixes to be generated?

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

Format graph and return additional information