package DataReader;

import DataModel.Attribute;
import DataModel.EntityProfile;
import DataReader.EntityReader.EntityCSVReader;
import java.util.List;

/**
 *
 * @author G.A.P. II
 */

public class TestEntityCSVReader {
    public static void main(String[] args) {
        String filePath = "C:\\Users\\G.A.P. II\\Downloads\\cd.csv";
        EntityCSVReader csvReader = new EntityCSVReader(filePath);
        csvReader.setAttributeNamesInFirstRow(true);
        csvReader.setSeparator(';');
        csvReader.setAttributesToExclude(new int[]{1});
        csvReader.setIdIndex(0);
        List<EntityProfile> profiles = csvReader.getEntityProfiles();
//        for (EntityProfile profile : profiles) {
//            System.out.println("\n\n" + profile.getEntityUrl());
//            for (Attribute attribute : profile.getAttributes()) {
//                System.out.println(attribute.toString());
//            }
//        }
        csvReader.storeSerializedObject(profiles, "C:\\Users\\G.A.P. II\\Downloads\\cddbProfiles");
    }
}
@@ -306,41 +306,87 @@
  %22C:
-%5C%5C
+/
 Users
-%5C%5CG.A.P. II%5C%5CDownloads%5C%5Ccd
+/Manos/workspaceMars/JedAIgitFinal/JedAIgitFinal/datasets/converter/DBLP2
 .csv
@@ -707,26 +707,24 @@
 rofiles();%0D%0A
-//
         for 
@@ -757,26 +757,24 @@
 rofiles) %7B%0D%0A
-//
             
@@ -823,26 +823,24 @@
 ityUrl());%0D%0A
-//
             
@@ -894,18 +894,16 @@
 s()) %7B%0D%0A
-//
         
@@ -953,18 +953,16 @@
 ng());%0D%0A
-//
         
@@ -972,10 +972,8 @@
  %7D%0D%0A
-//
     
@@ -1036,60 +1036,248 @@
  %22C:
-%5C%5C
+/
 Users
-%5C%5CG.A.P. II%5C%5CDownloads%5C%5CcddbProfiles
+/Manos/workspaceMars/JedAIgitFinal/JedAIgitFinal/datasets/converter/DBLP2prof%22);%0D%0A        csvReader.convertToRDFfile(profiles, %22C:/Users/Manos/workspaceMars/JedAIgitFinal/JedAIgitFinal/datasets/converter/DBLP2toRDFxml.xml
 %22);%0D%0A
+%0D%0A
     %7D%0D%0A
-
 %7D
+%0D%0A

Update Test for csv to RDF converter