- componentDumps.put(r, dump.toString());
- }
- }
- }
-
- private void readSCLModules(ReadGraph graph) throws DatabaseException {
- Layer0 L0 = Layer0.getInstance(graph);
- for(Resource container : containers) {
- for(Resource r : CommonDBUtils.objectsWithType(graph, container, L0.ConsistsOf, L0.SCLModule)) {
- String code = graph.getPossibleRelatedValue(r, L0.SCLModule_definition, Bindings.STRING);
- if(code != null) {
- moduleCodes.put(r, code);
- }
- modules.add(r);
- readNameAndParent(graph, container, r);
- }
- }
- }
-
- private void readPGraphs(ReadGraph graph) throws DatabaseException {
- Layer0 L0 = Layer0.getInstance(graph);
- for(Resource container : containers) {
- for(Resource r : CommonDBUtils.objectsWithType(graph, container, L0.ConsistsOf, L0.PGraph)) {
- String code = graph.getPossibleRelatedValue(r, L0.PGraph_definition, Bindings.STRING);
- if(code != null) {
- pgraphCodes.put(r, code);
- }
- pgraphs.add(r);
- readNameAndParent(graph, container, r);
- }
- }
- }
-
- private void readGraphFiles(ReadGraph graph) throws DatabaseException {
- Layer0 L0 = Layer0.getInstance(graph);
- GraphFileResource GF = GraphFileResource.getInstance(graph);
- for(Resource container : containers) {
- for(Resource r : CommonDBUtils.objectsWithType(graph, container, L0.ConsistsOf, GF.File)) {
- byte[] bytes = graph.getPossibleRelatedValue(r, GF.HasFiledata, Bindings.BYTE_ARRAY);
- if(bytes != null) {
- graphFileBytes.put(r, bytes);
- }
- graphFiles.add(r);
- readNameAndParent(graph, container, r);