<commit_before>Dydra.com Software Development Kit (SDK) for JavaScript
=======================================================

.. image:: https://travis-ci.org/dydra/dydra.js.png?branch=master
   :target: https://travis-ci.org/dydra/dydra.js
   :align: right
   :alt: Travis CI build status

This is the official JavaScript software development kit (SDK) for
Dydra.com_, the cloud-hosted RDF_ & SPARQL_ database service.

Examples
--------

::

   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);<commit_msg>Updated the Travis CI build status badge URL.<commit_after>Dydra.com Software Development Kit (SDK) for JavaScript
=======================================================

.. image:: https://api.travis-ci.org/dydra/dydra.js.svg?branch=master
   :target: https://travis-ci.org/dydra/dydra.js
   :alt: Travis CI build status

This is the official JavaScript software development kit (SDK) for
Dydra.com_, the cloud-hosted RDF_ & SPARQL_ database service.

Examples
--------

::

   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);
{'fraction_non_alphanumeric': 0.19063733784545966, 'fraction_numerical': 0.0022560631697687537, 'mean_word_length': 3.807588075880759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2160902', 'n_tokens_mistral': 569, 'n_tokens_neox': 537, 'n_words': 134}