swish-0.9.0.1: 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.

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.