diff --git a/package.json b/package.json index 8678c5f..d49ffbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ldp-service", - "version": "0.0.2", + "version": "0.0.4", "description": "An Express middleware for LDP that uses MongoDB for persistence of JSON-LD resources", "license": "Apache-2.0", "main": "service.js", diff --git a/turtle.js b/turtle.js index 11b1471..87e5d15 100644 --- a/turtle.js +++ b/turtle.js @@ -47,7 +47,7 @@ exports.parse = function(req, resourceURI, callback) { callback(err); } else if (triple) { triple.subject = normalize(triple.subject); - if (N3.Util.isUri(triple.object)) { + if (N3.Util.isIRI(triple.object)) { triple.object = normalize(triple.object); } triples.push(triple);