Copyright | Travis Whitaker 2016 |
---|---|
License | MIT |
Maintainer | [email protected] |
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.
- parseSubject :: Parser Subject
- parsePredicate :: Parser Predicate
- parseObject :: Parser Object
- parseGraphLabel :: Parser (Maybe IRI)
- parseBlankNode :: Parser BlankNode
- parseLiteral :: Parser Literal
- parseIRI :: Parser IRI
- parseEscapedIRI :: Parser IRI
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.