String[] parts = URIStringUtils.splitURI(path);
Identity parentId = recursePath(tg, parts[0]);
tg.identities = Arrays.copyOf(tg.identities, tg.identities.length+1);
- Identity childIdentity = new Identity(tg.resourceCount++, new External(parentId.resource, parts[1]));
+ Identity childIdentity = new Identity(tg.resourceCount++, new External(parentId.resource, URIStringUtils.unescape(parts[1])));
tg.identities[tg.identities.length-1] = childIdentity;
return childIdentity;
String[] parts = URIStringUtils.splitURI(ext.name);
Identity path = recursePath(tg, parts[0]);
- id.definition = new Internal(path.resource, parts[1]);
+ id.definition = new Internal(path.resource, URIStringUtils.unescape(parts[1]));
GraphStore store = TransferableGraphConversion.convert(tg);
- int rootId = store.identities.createPathToId(UriUtils.uriToPath(ext.name));
+ int rootId = store.identities.createPathToId(UriUtils.uriToPathUnescaped(ext.name));
propagateNewMarks(store.identities, rootId);
TransferableGraph1 tgNew = TransferableGraphConversion.convert(store);
tg.identities = tgNew.identities;
tg.values = tgNew.values;
tg.statements = tgNew.statements;
-
+
return;
+ } else if (ext.type.startsWith("http://")) {
+ String first = "http://Projects/Development%20Project";
+ Identity path = recursePath(tg, first);
+ id.definition = new Internal(path.resource, ext.name);
+
+ GraphStore store = TransferableGraphConversion.convert(tg);
+ int rootId = store.identities.createPathToId(UriUtils.uriToPathUnescaped(first + "/" + ext.name));
+ propagateNewMarks(store.identities, rootId);
+
+ TransferableGraph1 tgNew = TransferableGraphConversion.convert(store);
+
+ tg.resourceCount = tgNew.resourceCount;
+ tg.identities = tgNew.identities;
+ tg.values = tgNew.values;
+ tg.statements = tgNew.statements;
+
}
}
}