diff --git a/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java b/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java index 7aaabcafdafec452f6cf13ed11f299dce27efbf5..db6fb5a18fc56cbf05f9b7722b0901be7f35dac0 100644 --- a/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java +++ b/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java @@ -320,7 +320,7 @@ public class ExporterGDF implements GraphExporter, CharacterExporter, LongTask { List cols = new ArrayList(); if (exportAttributes && graphModel != null) { for (Column column : graphModel.getNodeTable()) { - if (!isNodeDefaultColumn(column.getId())) { + if (!column.isProperty() && !isNodeDefaultColumn(column.getId())) { cols.add(column); } } @@ -332,7 +332,7 @@ public class ExporterGDF implements GraphExporter, CharacterExporter, LongTask { List cols = new ArrayList(); if (exportAttributes && graphModel != null) { for (Column column : graphModel.getEdgeTable()) { - if (!isEdgeDefaultColumn(column.getId())) { + if (!column.isProperty() && !isEdgeDefaultColumn(column.getId())) { cols.add(column); } } diff --git a/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGraphML.java b/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGraphML.java index 8e87b0980756aec7c94c320b89cf2ed7140acfdf..1092ad84bec9f1adead48f3c01d9912954ca8022 100644 --- a/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGraphML.java +++ b/modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGraphML.java @@ -441,10 +441,8 @@ public class ExporterGraphML implements GraphExporter, CharacterExporter, LongTa edgeE.setAttribute("source", e.getSource().getId().toString()); edgeE.setAttribute("target", e.getTarget().getId().toString()); - if (e.getId() != null && !e.getId().toString().isEmpty() && !String.valueOf(e.getId()).equals(e.getId())) { - Element idE = createEdgeId(document, e); - edgeE.appendChild(idE); - } + Element idE = createEdgeId(document, e); + edgeE.appendChild(idE); //Label if (e.getLabel() != null && !e.getLabel().isEmpty()) { diff --git a/modules/ImportPlugin/src/main/java/org/gephi/io/importer/plugin/file/ImporterGEXF.java b/modules/ImportPlugin/src/main/java/org/gephi/io/importer/plugin/file/ImporterGEXF.java index 40140380a4170a1b028114878dfe7f0384892405..ed616bee04e4669a9c0cfcac9657b4d7418aad59 100644 --- a/modules/ImportPlugin/src/main/java/org/gephi/io/importer/plugin/file/ImporterGEXF.java +++ b/modules/ImportPlugin/src/main/java/org/gephi/io/importer/plugin/file/ImporterGEXF.java @@ -931,9 +931,9 @@ public class ImporterGEXF implements FileImporter, LongTask { //Type Class attributeType = String.class; if (type.equalsIgnoreCase("boolean") || type.equalsIgnoreCase("bool")) { - attributeType = boolean.class; + attributeType = Boolean.class; } else if (type.equalsIgnoreCase("integer") || type.equalsIgnoreCase("int")) { - attributeType = int.class; + attributeType = Integer.class; } else if (type.equalsIgnoreCase("long")) { attributeType = Long.class; } else if (type.equalsIgnoreCase("float")) { @@ -948,13 +948,13 @@ public class ImporterGEXF implements FileImporter, LongTask { attributeType = BigInteger.class; } else if (type.equalsIgnoreCase("byte")) { attributeType = Byte.class; - } else if (type.equalsIgnoreCase("char")) { + } else if (type.equalsIgnoreCase("char") || type.equalsIgnoreCase("character")) { attributeType = Character.class; } else if (type.equalsIgnoreCase("short")) { attributeType = Short.class; } else if (type.equalsIgnoreCase("listboolean")) { attributeType = boolean[].class; - } else if (type.equalsIgnoreCase("listint")) { + } else if (type.equalsIgnoreCase("listint") || type.equalsIgnoreCase("listinteger")) { attributeType = int[].class; } else if (type.equalsIgnoreCase("listlong")) { attributeType = long[].class; @@ -970,7 +970,7 @@ public class ImporterGEXF implements FileImporter, LongTask { attributeType = BigInteger[].class; } else if (type.equalsIgnoreCase("listbyte")) { attributeType = byte[].class; - } else if (type.equalsIgnoreCase("listchar")) { + } else if (type.equalsIgnoreCase("listchar") || type.equalsIgnoreCase("listcharacter")) { attributeType = char[].class; } else if (type.equalsIgnoreCase("listshort")) { attributeType = short[].class;