- Fixed erroneous IRIREF production #8—thanks paulwilton!
- Add
defaultParams
andrequestDefaults
options
- Fixed crash when response contains empty body.
- Added support for alternate query and update endpoints
(specified on the client as
{ updateEndpoint: '...' }
- Added explicit support for HTTP Error messages. Errors are patched
with
.httpStatus
to indicate status code.
- Query mechanism refactored.
Query#bind()
is very exception happy method; the opinion of this module is anything that looks unsafe should be dealt with immediately.- Tried darnedest not to throw weird errors on
execute()
from within the module. - Better mapping of JavaScript numbers to SPARQL doubles (or
xsd:double
). - Added
SPARQL
template tag (ECMAScript 2015).
- Fixed #6—thanks pheyvaer!
- Fixed #11—thanks dkrantsberg!
- Fixed erroneously turning a query (
ASK
,SELECT
,CONSTRUCT
,DESCRIBE
) into an update ifDELETE
orINSERT DATA
is present anywhere in the query. - Updated API (breaks backwards-compatibility):
- Add URI prefixes: both globally and per query using
#register()
and#registerCommon()
- Escape bindings to attempt to prevent SPARQL injection!
- Apply formatting with
{format: { resource: 'binding_name' } }
instead of{format: 'resource', resource: 'binding_name'}
- Multiple binds supported in one call to
#bind()
- Support binding SPARQL 1.1 literals; breaks backwards compatibility since this is dependent on the type of arguments, whereas before, everything would be silently coerced into a string.
#execute
supports Promises/A+ API.- API has a "fail-fast" attitude and complains bitterly if given suspicious input.
- Added a whackload of Jasmine specs, though by no means does this constitute a comprehensive test suite.
- Added formatting feature
- Fixed error when sparql endpoint is not reachable
- Version bump.
- Updated dependencies.
- Changed underscore dep to lodash.
- removed querystring, as it is in core.
- Merge pull request #4 from MtnFranke/master
- Validated package.json file.
- Added 'DELETE' functionality.
- Fixed typo.
- Updated README.md and package.json.
- Added Fuseki INSERT DATA compability.
- Changed return type to work with the latest version of fuseki.
- Added support for binding variables
- Initial commit