Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jan 9, 2015
Commits on Jan 8, 2015
  1. @alexander-b

    README.org: Fix typo TODO's -> TODOs

    alexander-b authored
    Signed-off-by: Alexander Berntsen <alexander@plaimi.net>
Commits on Sep 6, 2014
Commits on Sep 1, 2014
Commits on Aug 24, 2014
  1. Merge pull request #11 from haroldcarr/master

    authored
    Added LIMIT handling.
  2. @haroldcarr

    Added LIMIT handling.

    haroldcarr authored
Commits on Aug 23, 2014
  1. Merge pull request #10 from haroldcarr/master

    authored
    Restrict version of wai so test will pass.
  2. @haroldcarr
Commits on Aug 17, 2014
  1. Merge pull request #9 from haroldcarr/master

    authored
    Enable programmatic construction of triples.
Commits on Aug 16, 2014
  1. @haroldcarr
Commits on Jan 14, 2014
Commits on Jan 10, 2014
  1. Another bump to 0.2.4

    authored
    A version tagged 0.2.3 is already on hackage.
  2. bumped version to 0.2.3

    authored
  3. Removed RDFLiteral function constructors

    authored
    They were based on obsolete types.
  4. Merge branch 'master' of github.com:robstewart57/hsparql

    authored
    Conflicts:
    	Database/HSparql/QueryGenerator.hs
  5. Merge pull request #7 from haroldcarr/master

    authored
    Added support for SPARQL UPDATE.
  6. Added two more function constructors for RDFLiteral

    authored
    There are 'litRef' and 'litLangRef'
  7. @haroldcarr

    Added support for SPARQL UPDATE.

    haroldcarr authored
    An example update:
    
    u :: Query UpdateQuery
    u = do
        dc <- prefix "dc" (iriRef "http://purl.org/dc/elements/1.1/")
        ex <- prefix "ex" (iriRef "http://example/")
    
        ut1 <- updateTriple (ex .:. "book1")  (dc .:. "title") (T.pack "A HASKELL book")
        ut2 <- updateTriple (ex .:. "book1")  (dc .:. "title") (T.pack "Another HASKELL book")
        ut3 <- updateTriple (ex .:. "book1")  (dc .:. "title") (T.pack "Yet another HASKELL book")
    
        return UpdateQuery { queryUpdate = [ut1,ut2,ut3] }
    
    du :: IO ()
    du = do
        res <- updateQuery "http://localhost:3030/ds/update" u
        putStrLn $ "result: " ++ show (res::Bool)
    
    On the wire this look like:
    
    POST /ds/update HTTP/1.1
    Connection: close
    Host: 127.0.0.1:3030
    Content-Length: 217
    Content-Type: application/sparql-update
    User-Agent: hsparql-client
    
    PREFIX ex: <http://example/> PREFIX dc: <http://purl.org/dc/elements/1.1/> INSERT DATA { ex:book1 dc:title "A HASKELL book" . ex:book1 dc:title "Another HASKELL book" . ex:book1 dc:title "Yet another HASKELL book" . }
    
    The response looks like (using Jena Fuseki):
    
    HTTP/1.1 204 No Content
    Fuseki-Request-ID: 27
    Access-Control-Allow-Origin: *
    Server: Fuseki (1.0.0)
    Connection: close
    
    Doing a query shows that all three triples have been added.
    
    TODO:
    - QueryGenerator.updateTriple : only allow Terms (right now accepts variables resulting in  request time errors
    - Support DELETE
Commits on Jan 30, 2013
  1. resolved merge conflicts

    authored
Commits on Dec 15, 2012
  1. @cordawyn

    some DRYing

    cordawyn authored
  2. @cordawyn
Commits on Dec 14, 2012
  1. @cordawyn

    IRIRef is back?

    cordawyn authored
Commits on Dec 13, 2012
  1. @cordawyn
  2. @cordawyn
  3. @cordawyn
  4. @cordawyn
Commits on Nov 13, 2012
  1. bumped to 0.2.2

    authored
Commits on Nov 2, 2012
Commits on Nov 1, 2012
Commits on Oct 25, 2012
  1. Added NumericLiteralTerm qshow pattern,

    authored
    Added a .travis.yml file,
    Bumped to 0.2.1
  2. Merge pull request #5 from cordawyn/master

    authored
    A few fixes for literals in the queries
Commits on Oct 24, 2012
  1. @cordawyn
  2. @cordawyn
  3. @cordawyn
Something went wrong with that request. Please try again.