Copyright | Travis Whitaker 2016 |
---|---|
License | MIT |
Maintainer | pi.boy.travis@gmail.com |
Stability | Provisional |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- encodeSubject :: Subject -> Builder
- encodePredicate :: Predicate -> Builder
- encodeObject :: Object -> Builder
- encodeBlankNode :: BlankNode -> Builder
- encodeLiteral :: Literal -> Builder
- encodeIRI :: IRI -> Builder
- encodeEscapedIRI :: IRI -> Builder
- quoteString :: Text -> Text
- maybeBuilder :: Maybe Builder -> Builder
Triple Components
Terms
encodeLiteral :: Literal -> Builder Source #
Encode a Literal
, including the LiteralType
.
IRIs
Utilities
quoteString :: Text -> Text Source #
Escape the double quotes in a quoted string literal.