swish-0.6.0.1: A semantic web toolkit.

PortabilityFlexibleInstances, MultiParamTypeClasses
Stabilityexperimental
MaintainerDouglas Burke

Swish.RDF.SwishMonad

Description

Composed state and IO monad for Swish

Synopsis

Documentation

data SwishState Source

The State for a Swish "program".

Constructors

SwishState 

Fields

format :: SwishFormat

format to use for I/O

base :: Maybe QName

base to use rather than file name

graph :: RDFGraph

current graph

graphs :: NamedGraphMap

script processor named graphs

rules :: RDFRuleMap

script processor named rules

rulesets :: RDFRulesetMap

script processor rulesets

infomsg :: Maybe String

information message, or Nothing

errormsg :: Maybe String

error message, or Nothing

exitcode :: SwishStatus

current status message

data SwishStatus Source

Status of the processor

Constructors

SwishSuccess

successful run

SwishGraphCompareError

graphs do not compare

SwishDataInputError

input data problem (ie format/syntax)

SwishDataAccessError

data access error

SwishArgumentError

command-line argument error

SwishExecutionError

error executing a Swish script

data SwishFormat Source

The supported input and output formats.

Constructors

N3

N3 format

NT

NTriples format

data NamedGraph Source

The graphs dictionary contains named graphs and/or lists of graphs that are created and used by script statements.

Constructors

NamedGraph 

swishError :: String -> SwishStatus -> SwishStateIO ()Source

Report error and set exit status code

reportLines :: [String] -> SwishStateIO ()Source

Output text to the standard error stream

Each string in the supplied list is a line of text to be displayed.