report.logIssue(issue);
continue;
}
final NodeDraft startNode = container.getNode(start.getId().toString());
final NodeDraft endNode = container.getNode(end.getId().toString());
final EdgeDraft gephiEdge = container.factory().newEdgeDraft();
gephiEdge.setSource(startNode);
gephiEdge.setTarget(endNode);
container.addEdge(gephiEdge);
for (final String propertyKey : edge.getPropertyKeys()) {
final Object propertyValue = edge.getProperty(propertyKey);
AttributeColumn attributeColumn;
if (attributeModel.getEdgeTable().hasColumn(propertyKey)) {
attributeColumn = attributeModel.getEdgeTable().getColumn(propertyKey);
} else {
final AttributeType attributeType = AttributeTypeMapper.map(propertyValue);
attributeColumn = attributeModel.getEdgeTable().addColumn(propertyKey, attributeType);
}
gephiEdge.addAttributeValue(attributeColumn, propertyValue);
report.log(NbBundle.getMessage(GraphDbImporter.class,
"Report_RelAttributeAdded", propertyKey, propertyValue));
}
}
}