Update to latest jsonld.js.
--- a/playground/jsonld.js Thu Feb 28 16:12:18 2013 -0500
+++ b/playground/jsonld.js Thu Feb 28 16:20:16 2013 -0500
@@ -2450,10 +2450,10 @@
'@context must be a string or null.',
'jsonld.SyntaxError', {context: ctx});
}
- else if(!_isAbsoluteIri(base)) {
+ else if(base !== '' && !_isAbsoluteIri(base)) {
throw new JsonLdError(
'Invalid JSON-LD syntax; the value of "@base" in a ' +
- '@context must be an absolute IRI.',
+ '@context must be an absolute IRI or the empty string.',
'jsonld.SyntaxError', {context: ctx});
}
else {