rdf-0.1.0.5: Representation and Incremental Processing of RDF Data
CopyrightTravis Whitaker 2016
LicenseMIT
Maintainerpi.boy.travis@gmail.com
StabilityProvisional
PortabilityPortable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.RDF.Encoder.Common

Description

This module provides encoders 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.

Synopsis

Triple Components

Terms

encodeLiteral :: Literal -> Builder Source #

Encode a Literal, including the LiteralType.

IRIs

encodeIRI :: IRI -> Builder Source #

Encode an IRI.

encodeEscapedIRI :: IRI -> Builder Source #

Encode an escaped IRI, i.e. between angle brackets.

Utilities

quoteString :: Text -> Text Source #

Escape the double quotes in a quoted string literal.