diff --git a/Database/HSparql/Connection.hs b/Database/HSparql/Connection.hs
--- a/Database/HSparql/Connection.hs
+++ b/Database/HSparql/Connection.hs
@@ -17,6 +17,8 @@
     askQueryRaw,
     updateQueryRaw,
     describeQueryRaw,
+    -- * parse query results
+    structureContent
   )
 where
 
@@ -36,6 +38,7 @@
 import Network.HTTP.Types.Header
 import Text.RDF.RDF4H.TurtleParser
 import Text.XML.Light
+import Text.XML.Light.Lexer (XmlSource)
 
 -- | URI of the SPARQL endpoint.
 type EndPoint = String
@@ -54,7 +57,7 @@
 
 -- | Transform the 'String' result from the HTTP request into a two-dimensional
 --   table storing the bindings for each variable in each row.
-structureContent :: String -> Maybe [[BindingValue]]
+structureContent :: XmlSource a => a -> Maybe [[BindingValue]]
 structureContent s =
   do
     e <- doc
diff --git a/Database/HSparql/QueryGenerator.hs b/Database/HSparql/QueryGenerator.hs
--- a/Database/HSparql/QueryGenerator.hs
+++ b/Database/HSparql/QueryGenerator.hs
@@ -147,6 +147,7 @@
     strstarts,
     strends,
     contains,
+    containsWith,
     strbefore,
     strafter,
     abs_,
@@ -793,6 +794,9 @@
 contains :: BuiltinFunc2
 contains = builtinFunc2 ContainsFunc
 
+containsWith :: BuiltinFunc2
+containsWith = builtinFunc2 ContainsWithFunc
+
 -- | strbefore ( string x ) - return the string preceding a match to x
 strbefore :: BuiltinFunc2
 strbefore = builtinFunc2 StrBeforeFunc
@@ -1015,6 +1019,7 @@
   | StrStartsFunc
   | StrEndsFunc
   | ContainsFunc
+  | ContainsWithFunc 
   | StrBeforeFunc
   | StrAfterFunc
   | ConcatFunc
@@ -1229,6 +1234,7 @@
   qshow StrStartsFunc = "STRSTARTS"
   qshow StrEndsFunc = "STARTENDS"
   qshow ContainsFunc = "CONTAINS"
+  qshow ContainsWithFunc= "bif:contains"
   qshow StrBeforeFunc = "STRBEFORE"
   qshow StrAfterFunc = "STRAFTER"
   qshow ConcatFunc = "CONCAT"
diff --git a/hsparql.cabal b/hsparql.cabal
--- a/hsparql.cabal
+++ b/hsparql.cabal
@@ -1,5 +1,5 @@
 Name:          hsparql
-Version:       0.3.7
+Version:       0.3.8
 Synopsis:      A SPARQL query generator and DSL, and a client to query a SPARQL server.
 Category:      Database
 Description:
