diff --git a/src/jsonldparser.js b/src/jsonldparser.js index 5fbc9503d..2fd81dbcf 100644 --- a/src/jsonldparser.js +++ b/src/jsonldparser.js @@ -22,7 +22,13 @@ export function jsonldObjectToTerm (kb, obj) { } if (Object.prototype.hasOwnProperty.call(obj, '@id')) { - return kb.rdfFactory.namedNode(obj['@id']) + if (obj['@id'].startsWith('_:')) { + // This object is a Blank Node + return kb.rdfFactory.blankNode(obj['@id']); + } else { + // This object is a Named Node + return kb.rdfFactory.namedNode(obj['@id']); + } } if (Object.prototype.hasOwnProperty.call(obj, '@language')) {