diff --git a/src/model/dataintegration/DataIntegrator.java b/src/model/dataintegration/DataIntegrator.java index 9bc54a5..47a2c28 100644 --- a/src/model/dataintegration/DataIntegrator.java +++ b/src/model/dataintegration/DataIntegrator.java @@ -245,10 +245,13 @@ public void attemptCorrelationOfHeaders(){ for (Entry header : headers.entrySet()){ for (Vertex klass : classes){ - boolean isExactMatch = header.getKey().equals(klass.getName()); + String headerComparable = + header.getKey().charAt(0) == '\uFEFF' ? header.getKey().substring(1) : header.getKey(); + + boolean isExactMatch = headerComparable.equals(klass.getName()); boolean isCloseMatch = !klass.isIri() && klass.getElementType() == CLASS - && header.getKey().equalsIgnoreCase(klass.getName().split(":", 2)[1]); + && headerComparable.equalsIgnoreCase(klass.getName().split(":", 2)[1]); if (isExactMatch || isCloseMatch){ csvTtlCorrelations.add(new Correlation(header.getValue(), header.getKey(), klass));