Database.HaSparqlClient.Values
Contents
Description
This module provides some convenience functions to get values from BindingValue.
- languageValue :: BindingValue -> Maybe String
- datatypeValue :: BindingValue -> Maybe String
- uriValue :: BindingValue -> Maybe String
- literalValue :: BindingValue -> Maybe String
- bnodeValue :: BindingValue -> Maybe String
- value :: BindingValue -> Maybe String
- showsparql :: ShowQuery a => a -> String
Getting values
languageValue :: BindingValue -> Maybe StringSource
Get the language value for a BindingValue. Return Nothing if BindingValue is not LangLiteral.
datatypeValue :: BindingValue -> Maybe StringSource
Get the datatype value for a BindingValue. Return Nothing if BindingValue is not TypedLiteral.
uriValue :: BindingValue -> Maybe StringSource
Get the URI value for a BindingValue. Return Nothing if BindingValue is not URI.
literalValue :: BindingValue -> Maybe StringSource
Get the literal value for a BindingValue. Return Nothing if not is of the any literal type.
bnodeValue :: BindingValue -> Maybe StringSource
Get the BNode value for a BindingValue. Return Nothing if BindingValue is not BNode.
value :: BindingValue -> Maybe StringSource
Get the value for a BindingValue. Return Nothing if BindingValue is Unbound.
XML representation
showsparql :: ShowQuery a => a -> StringSource