rdf-0.1.0.6: Representation and Incremental Processing of RDF Data
CopyrightTravis Whitaker 2016
LicenseMIT
Maintainerpi.boy.travis@gmail.com
StabilityProvisional
PortabilityPortable
Safe HaskellSafe-Inferred
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 #

Methods

triples :: a -> RDFGen Triples Source #

class ToObject a where Source #

Methods

object :: a -> RDFGen Object Source #

Instances

Instances details
ToObject Int16 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Int32 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Int64 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Int8 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Word16 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Word32 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Word64 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Word8 Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Text Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Text Source #

Forces the lazy Text.

Instance details

Defined in Data.RDF.ToRDF

ToObject String Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Integer Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Double Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Float Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Int Source # 
Instance details

Defined in Data.RDF.ToRDF

ToObject Word Source # 
Instance details

Defined in Data.RDF.ToRDF

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 #