swish-0.6.0.1: A semantic web toolkit.

PortabilityH98
Stabilityexperimental
MaintainerDouglas Burke

Swish.RDF.SwishMain

Description

I anticipate that this module may be used as a starting point for creating new programs rather then as a complete program in its own right. The functionality built into this code is selected with a view to testing the Haskell modules for handling RDF rather than for performing any particular application processing (though development as a tool with some broader utility is not ruled out).

This module is likely to be moved to the Swish module.

Synopsis

Documentation

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 SwishAction Source

Represent a Swish action.

runSwish :: String -> IO ExitCodeSource

Parse and run the given string as if given at the command line. The "quiet", "version" and "help" options are ignored.

runSwishActions :: [SwishAction] -> IO SwishStatusSource

Execute the given set of actions.

displaySwishHelp :: IO ()Source

Write out the help for Swish

splitArguments :: [String] -> ([String], [String])Source

Return any arguments that need processing immediately, namely the "help", "quiet" and "version" options.

validateCommands :: [String] -> Either (String, SwishStatus) [SwishAction]Source

Given a list of command-line arguments create the list of actions to perform or a string and status value indicating an input error.