Update to latest jsonld.js.
--- a/playground/jsonld.js Thu Apr 17 16:08:20 2014 -0400
+++ b/playground/jsonld.js Thu Apr 17 19:44:29 2014 -0400
@@ -285,7 +285,7 @@
catch(ex) {
return callback(new JsonLdError(
'Could not retrieve a JSON-LD document from the URL. URL ' +
- 'derefencing not implemented.', 'jsonld.LoadDocumentError', {
+ 'dereferencing not implemented.', 'jsonld.LoadDocumentError', {
code: 'loading document failed',
cause: ex,
remoteDoc: remoteDoc
@@ -506,7 +506,7 @@
catch(ex) {
return callback(new JsonLdError(
'Could not retrieve a JSON-LD document from the URL. URL ' +
- 'derefencing not implemented.', 'jsonld.LoadDocumentError', {
+ 'dereferencing not implemented.', 'jsonld.LoadDocumentError', {
code: 'loading document failed',
cause: ex,
remoteDoc: remoteDoc
@@ -954,8 +954,8 @@
*/
jsonld.documentLoader = function(url, callback) {
var err = new JsonLdError(
- 'Could not retrieve a JSON-LD document from the URL. URL derefencing not ' +
- 'implemented.', 'jsonld.LoadDocumentError',
+ 'Could not retrieve a JSON-LD document from the URL. URL ' +
+ 'dereferencing not implemented.', 'jsonld.LoadDocumentError',
{code: 'loading document failed'});
if(_nodejs) {
return callback(err, {contextUrl: null, documentUrl: url, document: null});
@@ -5877,7 +5877,7 @@
// ensure ctx is an object
if(err) {
err = new JsonLdError(
- 'Derefencing a URL did not result in a valid JSON-LD object. ' +
+ 'Dereferencing a URL did not result in a valid JSON-LD object. ' +
'Possible causes are an inaccessible URL perhaps due to ' +
'a same-origin policy (ensure the server uses CORS if you are ' +
'using client-side JavaScript), too many redirects, a ' +
@@ -5888,7 +5888,7 @@
}
else if(!_isObject(ctx)) {
err = new JsonLdError(
- 'Derefencing a URL did not result in a JSON object. The ' +
+ 'Dereferencing a URL did not result in a JSON object. The ' +
'response was valid JSON, but it was not a JSON object.',
'jsonld.InvalidUrl',
{code: 'invalid remote context', url: url, cause: err});