hasparql-client-0.1: This package enables to write SPARQL queries to remote endpoints.

Database.HaSparqlClient.Values

Contents

Description

This module provides some convenience functions to get values from BindingValue.

Synopsis

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.

value :: BindingValue -> Maybe StringSource

Get the value for a BindingValue. Return Nothing if BindingValue is Unbound.

XML representation

showsparql :: ShowQuery a => a -> StringSource