Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
An RdfParser
implementation for the Turtle format
http://www.w3.org/TeamSubmission/turtle/.
Synopsis
- data TurtleParser = TurtleParser (Maybe BaseUrl) (Maybe Text)
- data TurtleParserCustom = TurtleParserCustom (Maybe BaseUrl) (Maybe Text) Parser
- parseTurtleDebug :: String -> IO (RDF TList)
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.
Instances
RdfParser TurtleParser Source # |
|
Defined in Text.RDF.RDF4H.TurtleParser parseString :: Rdf a => TurtleParser -> Text -> Either ParseFailure (RDF a) Source # parseFile :: Rdf a => TurtleParser -> String -> IO (Either ParseFailure (RDF a)) Source # parseURL :: Rdf a => TurtleParser -> String -> IO (Either ParseFailure (RDF a)) Source # |
data TurtleParserCustom Source #
Instances
RdfParser TurtleParserCustom Source # |
|
Defined in Text.RDF.RDF4H.TurtleParser parseString :: Rdf a => TurtleParserCustom -> Text -> Either ParseFailure (RDF a) Source # parseFile :: Rdf a => TurtleParserCustom -> String -> IO (Either ParseFailure (RDF a)) Source # parseURL :: Rdf a => TurtleParserCustom -> String -> IO (Either ParseFailure (RDF a)) Source # |