This is the official JavaScript software development kit (SDK) for Dydra.com, the cloud-hosted RDF & SPARQL database service.
var mySession = new Dydra.Session({token: "MY_SECRET_TOKEN"}); var myRepository = mySession.open("my_account/my_repository"); myRepository.query("SELECT * WHERE {?s ?p ?o} LIMIT 10", { success: function(data) { console.log("SPARQL query succeeded and returned:"); console.log(data); }, failure: function(xhr) { console.log("SPARQL query failed."); console.log(xhr); } });
For more examples of using this library, see the doc/examples directory.
To use this library from your own code, the only runtime dependency is jQuery (>= 1.9).
To contribute to this library, the development dependencies are:
- NPM for package and dependency management
- Grunt (>= 0.4) for task execution (static analysis and the test harness)
- Jasmine (>= 2.0) for unit testing
Note: the instructions in this README implicitly assume a Unix system (Mac OS X, Linux, or BSD) at present. Patches improving Windows support are most welcome.
- Do your best to adhere to the existing coding conventions and idioms.
- Don't use hard tabs, and don't leave trailing whitespace on any line.
- Don't touch the
VERSION
orAUTHORS
files. If you need to change them, do so on your private branch only. - Do feel free to add yourself to the
CREDITS
file and the corresponding list in theREADME
. Alphabetical order applies.
This is free and unencumbered public domain software. For more information,
see http://unlicense.org/ or the accompanying UNLICENSE
file.