rdf-0.1.0.2: Representation and Incremental Processing of RDF Data

CopyrightTravis Whitaker 2016
LicenseMIT
Maintainerpi.boy.travis@gmail.com
StabilityProvisional
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Data.RDF.ToRDF

Description

This module provides a simple DSL for mapping Haskell data to RDF graphs.

Synopsis

Documentation

class ToRDF a where Source #

Minimal complete definition

triples

Methods

triples :: a -> RDFGen Triples Source #

toTriples :: ToRDF a => IRI -> a -> [Triple] Source #

type RDFGen a = ReaderT IRI (State Word64) a Source #

RDF generator monad. Provides ReaderT for the base IRI, and StateT for a monotonically increasing blank node identifier.

runRDFGen :: RDFGen a -> IRI -> a Source #