\r
@Override\r
public Resource createRoot(WriteOnlyGraph graph, Root root) throws DatabaseException {\r
+ \r
Layer0 l0 = graph.getService(Layer0.class);\r
- this.root = graph.newResource();\r
- graph.claim(library, l0.ConsistsOf, l0.PartOf, this.root);\r
+\r
+ Resource rootResource = graph.newResource();\r
+ graph.claim(library, l0.ConsistsOf, l0.PartOf, rootResource);\r
String name = root.name;\r
String newName = nameMappings.get(name);\r
- graph.addLiteral(this.root, l0.HasName, l0.NameOf, l0.String, newName, Bindings.STRING);\r
- return this.root;\r
+ graph.addLiteral(rootResource, l0.HasName, l0.NameOf, l0.String, newName, Bindings.STRING);\r
+ \r
+ addRootInfo(root, newName, rootResource);\r
+\r
+ return rootResource;\r
\r
}\r
\r