Portability | H98 |
---|---|
Stability | experimental |
Maintainer | Douglas Burke |
Support for the RDF Parsing modules.
- type SpecialMap = LookupMap (String, ScopedName)
- mapPrefix :: NamespaceMap -> String -> String
- prefixTable :: [Namespace]
- specialTable :: Maybe ScopedName -> [(String, ScopedName)]
- type ParseResult = Either String RDFGraph
- type RDFParser a b = GenParser Char a b
- n3Style :: LanguageDef st
- n3Lexer :: TokenParser st
- ignore :: Monad m => m a -> m ()
- annotateParsecError :: Int -> [String] -> ParseError -> String
- mkTypedLit :: ScopedName -> String -> RDFLabel
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.
type ParseResult = Either String RDFGraphSource
n3Style :: LanguageDef stSource
The language definition for N3-style formats.
n3Lexer :: TokenParser stSource
The lexer for N3 style languages.
:: 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)