swish-0.7.0.1: A semantic web toolkit.

PortabilityOverloadedStrings
Stabilityexperimental
MaintainerDouglas Burke
Safe HaskellSafe-Infered

Swish.RDF.Parser.Turtle

Description

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

REFERENCES:

NOTES:

Synopsis

Documentation

type ParseResult = Either String RDFGraphSource

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

parseTurtleSource

Arguments

:: Text

input in N3 format.

-> Maybe URI

optional base URI

-> ParseResult 

Parse a string with an optional base URI.

Unlike parseN3 we treat the base URI as a URI and not a QName.

parseTurtlefromTextSource

Arguments

:: Text

input in N3 format.

-> ParseResult 

Parse as Turtle (with no real base URI).

See parseTurtle if you need to provide a base URI.