swish-0.9.0.4: A semantic web toolkit.

PortabilityH98
Stabilityexperimental
MaintainerDouglas Burke
Safe HaskellNone

Swish.RDF.Parser.NTriples

Description

This Module implements a NTriples parser, returning a new RDFGraph consisting of triples and namespace information parsed from the supplied NTriples input string, or an error indication.

REFERENCES:

NOTES:

  • If the URI is actually an IRI (Internationalized Resource Identifiers) then the parser will fail since parseURI fails.
  • The case of language tags is retained.
  • 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

Documentation

type ParseResult = Either String RDFGraphSource

The result of a parse, which is either an error message or a graph.

parseNTSource

Arguments

:: Text

input in NTriples format.

-> ParseResult 

Parse a string.