swish-0.10.1.0: A semantic web toolkit.

Copyright | (c) 2003 Graham Klyne 2009 Vasili I Galchin 2011 2012 2013 2014 2015 2020 Doug Burke
License | GPL V2
Maintainer | Douglas Burke
Stability | experimental
Portability | OverloadedStrings
Safe Haskell | None
Language | Haskell2010

Swish.RDF.Formatter.NTriples

Description

This Module implements a NTriples formatter for a `RDFGraph`.

REFERENCES:

- "RDF Test Cases", W3C Recommendation 10 February 2004, http://www.w3.org/TR/rdf-testcases/#ntriples

NOTES:

- Update to the document "N-Triples. A line-based syntax for an RDF graph" W3C Working Group Note 09 April 2013, http://www.w3.org/TR/2013/NOTE-n-triples-20130409/

Synopsis

- formatGraphAsText :: RDFGraph -> Text
- formatGraphAsLazyText :: RDFGraph -> Text
- formatGraphAsBuilder :: RDFGraph -> Builder

# Documentation

formatGraphAsText :: RDFGraph -> Text Source #

Convert a RDF graph to NTriples format.

formatGraphAsLazyText :: RDFGraph -> Text Source #

Convert a RDF graph to NTriples format.

formatGraphAsBuilder :: RDFGraph -> Builder Source #

Convert a RDF graph to NTriples format.