rdf4h-5.1.0: A library for RDF processing in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.RDF.RDF4H.TurtleParser

Description

An RdfParser implementation for the Turtle format http://www.w3.org/TeamSubmission/turtle/.

Synopsis

Documentation

data TurtleParser Source #

An RdfParser implementation for parsing RDF in the Turtle format. It is an implementation of W3C Turtle grammar rules at http://www.w3.org/TR/turtle/#sec-grammar-grammar . It takes optional arguments representing the base URL to use for resolving relative URLs in the document (may be overridden in the document itself using the @base directive), and the URL to use for the document itself for resolving references to <> in the document. To use this parser, pass a TurtleParser value as the first argument to any of the parseString, parseFile, or parseURL methods of the RdfParser type class.

Constructors

TurtleParser (Maybe BaseUrl) (Maybe Text) 

Instances

Instances details
RdfParser TurtleParser Source #

TurtleParser is an instance of RdfParser using a parsec based parser.

Instance details

Defined in Text.RDF.RDF4H.TurtleParser

data TurtleParserCustom Source #

Instances

Instances details
RdfParser TurtleParserCustom Source #

TurtleParser is an instance of RdfParser using either a parsec or an attoparsec based parser.

Instance details

Defined in Text.RDF.RDF4H.TurtleParser