Maintainer | defanor <defanor@uberspace.net> |
---|---|
Stability | unstable |
Portability | non-portable (GHC extensions are used) |
Safe Haskell | Safe |
Language | Haskell2010 |
Utility functions based on mid-level bindings.
- withHash :: ForeignPtr RedlandWorld -> String -> [(String, String)] -> (ForeignPtr RedlandHash -> IO a) -> IO a
- withStatements :: ForeignPtr RedlandWorld -> ForeignPtr RedlandModel -> Triple -> ([Triple] -> IO a) -> IO a
- data LiteralNodeType
- data Node
- redlandNodeToNode :: ForeignPtr RedlandNode -> IO Node
- nodeToRedlandNode :: ForeignPtr RedlandWorld -> Node -> Initializer RedlandNode
- guessingParseStringIntoModel :: ForeignPtr RedlandWorld -> ForeignPtr RedlandModel -> ForeignPtr RedlandURI -> String -> IO ()
- withQuery :: ForeignPtr RedlandWorld -> ForeignPtr RedlandModel -> String -> String -> Maybe (ForeignPtr RedlandURI) -> (QueryResults -> IO a) -> IO a
- type QueryResults = [[(String, Node)]]
- queryResultsToList :: ForeignPtr RedlandQueryResults -> IO QueryResults
- data Triple = Triple {}
- statementToTriple :: ForeignPtr RedlandStatement -> IO Triple
- tripleToStatement :: ForeignPtr RedlandWorld -> Triple -> Initializer RedlandStatement
- streamToList :: ForeignPtr RedlandStream -> IO [Triple]
- withWSMU :: String -> [(String, String)] -> String -> String -> String -> (ForeignPtr RedlandWorld -> ForeignPtr RedlandStorage -> ForeignPtr RedlandModel -> ForeignPtr RedlandURI -> IO a) -> IO a
Hashes
withHash :: ForeignPtr RedlandWorld -> String -> [(String, String)] -> (ForeignPtr RedlandHash -> IO a) -> IO a Source #
Mostly a conversion function.
RDF Graph (librdf_model)
withStatements :: ForeignPtr RedlandWorld -> ForeignPtr RedlandModel -> Triple -> ([Triple] -> IO a) -> IO a Source #
Wrapper around modelFindStatements
.
RDF term (librdf_node)
data LiteralNodeType Source #
Haskell representation of RedlandNode
.
redlandNodeToNode :: ForeignPtr RedlandNode -> IO Node Source #
A conversion function.
nodeToRedlandNode :: ForeignPtr RedlandWorld -> Node -> Initializer RedlandNode Source #
A conversion function.
Parsers
guessingParseStringIntoModel Source #
:: ForeignPtr RedlandWorld | |
-> ForeignPtr RedlandModel | |
-> ForeignPtr RedlandURI | base URI |
-> String | string to parse |
-> IO () |
Guesses a parser name, and applies it.
Querying
:: ForeignPtr RedlandWorld | |
-> ForeignPtr RedlandModel | |
-> String | query language |
-> String | query string |
-> Maybe (ForeignPtr RedlandURI) | base URI |
-> (QueryResults -> IO a) | |
-> IO a |
Querying helper.
Query results
type QueryResults = [[(String, Node)]] Source #
queryResultsToList :: ForeignPtr RedlandQueryResults -> IO QueryResults Source #
A conversion function.
RDF Triple (librdf_statement)
Haskell representation of RedlandStatement
.
statementToTriple :: ForeignPtr RedlandStatement -> IO Triple Source #
A conversion function.
tripleToStatement :: ForeignPtr RedlandWorld -> Triple -> Initializer RedlandStatement Source #
A conversion function.
Stream of triples (librdf_statement)
streamToList :: ForeignPtr RedlandStream -> IO [Triple] Source #
A conversion function.
Other
:: String | storage factory |
-> [(String, String)] | storage options |
-> String | storage identifier |
-> String | model options |
-> String | base URI |
-> (ForeignPtr RedlandWorld -> ForeignPtr RedlandStorage -> ForeignPtr RedlandModel -> ForeignPtr RedlandURI -> IO a) | |
-> IO a |
Initializes world, storage, model, and base URI at once.