import org.simantics.databoard.accessor.error.AccessorException;
import org.simantics.databoard.adapter.AdaptException;
import org.simantics.databoard.binding.mutable.Variant;
+import org.simantics.databoard.util.URIStringUtils;
import org.simantics.db.ReadGraph;
import org.simantics.db.Resource;
import org.simantics.db.WriteOnlyGraph;
missingExternals.add(external);
}
- void prepare(ReadGraph graph) throws DatabaseException {
+ public void prepare(ReadGraph graph) throws DatabaseException {
findBuiltins(graph);
Resource[] resources = new Resource[tg.resourceCount];
if(child == null) {
String uri = graph.getPossibleURI(parent);
if(uri == null) {
- addMissing(NameUtils.getSafeName(graph, parent) + " /" + def.name);
+ addMissing(URIStringUtils.escape(NameUtils.getSafeName(graph, parent)) + " /" + URIStringUtils.escape(def.name));
} else {
- addMissing(graph.getURI(parent) + "/" + def.name);
+ addMissing(graph.getURI(parent) + "/" + URIStringUtils.escape(def.name));
}
}
resources[identity.resource] = child;
} else {
- addMissing(TransferableGraphUtils.getURI(tg, def.parent) + "/" + def.name);
+ addMissing(TransferableGraphUtils.getURI(tg, def.parent) + "/" + URIStringUtils.escape(def.name));
}
}
}
}
- void write(WriteOnlyGraph graph) throws DatabaseException {
+ public void write(WriteOnlyGraph graph) throws DatabaseException {
Resource[] resources = this.resources;