Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Graph Store and SPARQL Protocol
JavaScript XQuery
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
setup
src
.gitignore
LICENSE.txt
README.md

README.md

Graph Store and SPARQL Protocol (grasp)

The name grasp comes from combing GRAph Store Protocol plus And Sparql Protocol but also implies that you use the XQuery and XProc libraries here-in to get a hold of (grasp) RDF Graphs from a triple store and/or results from running SPARQL queries againts a Graph Store.

The libraries provide means of managing and querying Graph Stores using the W3C's Graph Store HTTP and SPARQL protocols respectively.

Both these specifications are currently (2012-01-11) working drafts so are liable to change.

There are two XQuery library modules:

  • src/main/xquery/lib-gsp.xqy - Graph Store Protocol
  • src/main/xquery/lib-spq.xqy - SPARQL Protocol

that both have a dependency upon:

src/main/xquery/lib-ml.xqy - MarkLogic specific utility functions.

There is also the XProc library that defines a set of pipeline steps for managing a Graph Store using that implements the Graph Store Protocol.

src/main/xproc/lib-gsp.xpl

All the libraries support accessing the defaul graph in the Graph Store and have been tested against Jena's Fuseki SPARQL server.

http://openjena.org/wiki/Fuseki

There are a series of tests in:

  • src/test/xproc/gsp
  • src/test/xquery/gsp
  • src/test/xquery/spq

which I tend to run manually, or as a group, in the oXygen XML IDE. For the XQuery tests you'll need to set-up a XDBC server who's 'root' points to the 'src' directory of your working copy of this repository. These test will give you some examples of how to use the libraries.

All comments observations and criticisms welcome.

Errors and ommissions excepted.

Something went wrong with that request. Please try again.