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 #
Subject
parser.
parsePredicate :: Parser Predicate #
Predicate
parser.
parseObject :: Parser Object #
Object
parser.
parseGraphLabel :: Parser (Maybe IRI) #
Parser for graph labels, i.e. either an escaped IRI
or the empty string.
Terms
parseBlankNode :: Parser BlankNode #
Parse a blank node label, with the preceeding _:
.
parseLiteral :: Parser Literal #
Parse an RDF Literal
, including the LiteralType
if present.
IRIs
parseEscapedIRI :: Parser IRI #
Parse an escaped IRI
, i.e. an IRI enclosed in angle brackets.