| Copyright | Travis Whitaker 2016 |
|---|---|
| License | MIT |
| Maintainer | pi.boy.travis@gmail.com |
| Stability | Provisional |
| Portability | Portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.RDF.Parser.Common
Contents
Description
This module provides parsers for the primitive terms in the RDF abstract syntax as described in RDF 1.1 Concepts and Abstract Syntax. These should be useful for all RDF host languages.
Triple Components
parseSubject :: Parser Subject Source
Subject parser.
parsePredicate :: Parser Predicate Source
Predicate parser.
parseObject :: Parser Object Source
Object parser.
parseGraphLabel :: Parser (Maybe IRI) Source
Parser for graph labels, i.e. either an escaped IRI or the empty string.
Terms
parseBlankNode :: Parser BlankNode Source
Parse a blank node label, with the preceeding _:.
parseLiteral :: Parser Literal Source
Parse an RDF Literal, including the LiteralType if present.
IRIs
parseEscapedIRI :: Parser IRI Source
Parse an escaped IRI, i.e. an IRI enclosed in angle brackets.