swish-0.3.1.0: A semantic web toolkit.

PortabilityH98
Stabilityexperimental
MaintainerDouglas Burke

Swish.RDF.RDFParser

Description

Support for the RDF Parsing modules.

Synopsis

Documentation

type SpecialMap = LookupMap (String, ScopedName)Source

Type for special name lookup table

mapPrefix :: NamespaceMap -> String -> StringSource

Lookup prefix in table and return URI or 'prefix:'

prefixTable :: [Namespace]Source

Define default table of namespaces

specialTable :: Maybe ScopedName -> [(String, ScopedName)]Source

Define default special-URI table. The optional argument defines the initial base URI.

n3Style :: LanguageDef stSource

The language definition for N3-style formats.

n3Lexer :: TokenParser stSource

The lexer for N3 style languages.

ignore :: Monad m => m a -> m ()Source

annotateParsecErrorSource

Arguments

:: Int

the number of extra lines to include in the context (<=0 is ignored)

-> [String]

text being parsed

-> ParseError

the parse error

-> String

Parsec error with additional context

Annotate a Parsec error with the local context - i.e. the actual text that caused the error and preceeding/succeeding lines (if available)

mkTypedLitSource

Arguments

:: ScopedName

the type

-> String

the value

-> RDFLabel 

Create a typed literal.