From a93ed395912130c4a91cfad19861b3fb3fd5371e Mon Sep 17 00:00:00 2001 From: Baojing Zuo Date: Fri, 21 Apr 2017 19:35:40 +0800 Subject: [PATCH] should not double encode blank node primaryKey --- lib/util/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/Util.js b/lib/util/Util.js index b270d24..285b71f 100644 --- a/lib/util/Util.js +++ b/lib/util/Util.js @@ -122,10 +122,10 @@ class Util { let primaryKey = item.primaryKey; delete item.primaryKey; - if (!primaryKey.startsWith('<')) { + if (!primaryKey.startsWith('<') && !primaryKey.startsWith('_:')) { primaryKey = '<' + primaryKey; } - if (!primaryKey.endsWith('>')) { + if (!primaryKey.endsWith('>') && !primaryKey.startsWith('_:')) { primaryKey += '>'; }